Create Api Key

Provide a long-lived API key for making API requests. The API key is irretrievable after initial creation.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
apiKeyNamestringRequired

The name of the API key to create.

expiresAfterDayslongOptional

The number of days after which the API key will expire. If omitted, the API key will not expire.

Response

This endpoint returns an object.
apiKeyMetadataobject
apiKeyValuestring