Skip to content
Docs

Get cert by id

GEThttps://api.vercel.com/v8/certs/{id}
Get cert by id
https://api.vercel.com/v8/certs/{id}
const response = await fetch('https://api.vercel.com/v8/certs/id?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
{
"id": "icfg_1234567890",
"createdAt": "123",
"expiresAt": "123",
"autoRenew": "false",
"cns": []
}
AuthorizationbearerToken

Default authentication mechanism

idstringRequired
The cert id
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
idstringRequired
createdAtnumberRequired
expiresAtnumberRequired
autoRenewbooleanRequired
cnsarrayRequired
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