Skip to navigation

Create an API key for a sub-account

View as Markdown

This endpoint will generate an API v3 key for a sub-account

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

OR
AuthorizationBearer

OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app’s client_id/client_secret for a short-lived Bearer token.

Request

This endpoint expects an object.
idlongRequired

Id of the sub-account organization

namestringRequired
Name of the API key

Response

API key
keystring
API key
statusstring
Status of the API operation.

Errors

400
Bad Request Error