Skip to content
Docs

Retrieves a list of all the Log Drains (deprecated)

GEThttps://api.vercel.com/v1/log-drains
Retrieves a list of all the Log Drains owned by the account. This endpoint must be called with an account AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated account can be accessed.
https://api.vercel.com/v1/log-drains
const response = await fetch('https://api.vercel.com/v1/log-drains?projectId=string&projectIdOrName=string&includeMetadata=true&teamId=string&slug=string', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
[
{
"clientId": "example_id",
"configurationId": "example_id",
"createdFrom": "string",
"integrationConfigurationUri": "https://example.com",
"integrationIcon": "string",
"integrationWebsite": "string",
"projectsMetadata": [
{
"framework": "actix-web",
"id": "icfg_1234567890",
"latestDeployment": "string",
"name": "Example Name"
}
]
}
]
AuthorizationbearerToken

Default authentication mechanism

projectIdstringOptional
projectIdOrNamestringOptional
includeMetadatabooleanOptional
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
404Error
410Error