Skip to navigation

Create key

View as Markdown
Issue a key that connects a customer's AI app to your service, returned in full only once.

Authentication

x-api-keystring
Your API key, using a test key for the sandbox and a live key for production.

Path parameters

idstringRequired
Unique identifier of the resource.

Headers

Idempotency-KeystringOptional<=255 characters

Unique key used to safely retry the same state-changing request.

Request

This endpoint expects an object.
namestringRequired<=120 characters
A name that helps the customer tell their keys apart.
expires_atdatetimeOptional
When the key stops working. Leave it out for a key that never expires.

Response

Key created successfully.
messagestring
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error