Reference
get/v7/certs/{id}
Get cert by id
Optional params
fetch-request
1await fetch("https://api.vercel.com/v7/certs/SOME_STRING_VALUE?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
Path Parameter | Description |
---|---|
id | string requiredThe cert id |
autoRenewbooleanRequired cnsarrayRequired createdAtnumberRequired expiresAtnumberRequired idstringRequired
Code | Description |
---|---|
200 | |
400 | One of the provided values in the request query is invalid. |
401 | |
403 | You do not have permission to access this resource. |
404 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v7/certs/SOME_STRING_VALUE?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "get"6})
post/v7/certs
Issue a new cert
Optional params
fetch-request
1await fetch("https://api.vercel.com/v7/certs?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "cns": "SOME_ARRAY OF STRING_VALUE"4 },5 "headers": {6 "Authorization": "Bearer <TOKEN>"7 },8 "method": "post"9})
Query Parameter | Description |
---|---|
slug | string The Team slug to perform the request on behalf of. |
teamId | string The Team identifier to perform the request on behalf of. |
autoRenewbooleanRequired cnsarrayRequired createdAtnumberRequired expiresAtnumberRequired idstringRequired
Code | Description |
---|---|
200 | |
400 | One of the provided values in the request body is invalid. |
401 | |
402 |
|
403 | You do not have permission to access this resource. |
404 | |
449 | |
500 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v7/certs?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "cns": "SOME_ARRAY OF STRING_VALUE"4 },5 "headers": {6 "Authorization": "Bearer <TOKEN>"7 },8 "method": "post"9})
delete/v7/certs/{id}
Remove cert
Optional params
fetch-request
1await fetch("https://api.vercel.com/v7/certs/SOME_STRING_VALUE?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "delete"6})
Path Parameter | Description |
---|---|
id | string requiredThe cert id to remove |
object
Code | Description |
---|---|
200 | |
400 | One of the provided values in the request query is invalid. |
401 | |
403 | You do not have permission to access this resource. |
404 |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v7/certs/SOME_STRING_VALUE?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "headers": {3 "Authorization": "Bearer <TOKEN>"4 },5 "method": "delete"6})
put/v7/certs
Upload a cert
Optional params
fetch-request
1await fetch("https://api.vercel.com/v7/certs?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "ca": "SOME_STRING_VALUE",4 "cert": "SOME_STRING_VALUE",5 "key": "SOME_STRING_VALUE",6 "skipValidation": true7 },8 "headers": {9 "Authorization": "Bearer <TOKEN>"10 },11 "method": "put"12})
Query Parameter | Description |
---|---|
slug | string The Team slug to perform the request on behalf of. |
teamId | string The Team identifier to perform the request on behalf of. |
autoRenewbooleanRequired cnsarrayRequired createdAtnumberRequired expiresAtnumberRequired idstringRequired
Code | Description |
---|---|
200 | |
400 | One of the provided values in the request body is invalid. |
401 | |
402 | This feature is only available for Enterprise customers. |
403 | You do not have permission to access this resource. |
Optional params
fetch-request
1await fetch("https://api.vercel.com/v7/certs?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {2 "body": {3 "ca": "SOME_STRING_VALUE",4 "cert": "SOME_STRING_VALUE",5 "key": "SOME_STRING_VALUE",6 "skipValidation": true7 },8 "headers": {9 "Authorization": "Bearer <TOKEN>"10 },11 "method": "put"12})
Last updated on November 14, 2024
Was this helpful?