Internal site. Jolli authentication required to view.
Skip to Content
API ReferencePlatformPOST /v0/api_keys

Create API Key

POST/v0/api_keysPlatform

Try it

POST/v0/api_keys
Authentication
Request body (application/json)

Create a new API key with the specified name. The generated API key will be returned in the response and cannot be retrieved again later.

Authentication

  • JSON web token (JWT) or API keyBearer token

Request body

Content type: application/json

  • object
    Request to create a new API key.
    • namestringrequired
      Key name.

Response

201API key created successfullyapplication/json
  • object
    Response to a successful API key creation.
    • api_keystringrequired
      Generated secret API key. There is no way to retrieve this key again through the API, so store it securely.
    • idstring (uuid)required
      API key identifier.
    • namestringrequired
      API key name provided by the user.
409API key with that name already existsapplication/json
  • object
    Information returned by REST API endpoints on error.
    • detailsobjectrequired
      Detailed error metadata. The contents of this field is determined by `error_code`.
    • error_codestringrequired
      Error code is a string that specifies this error type.
    • messagestringrequired
      Human-readable error message.
Request
curl -X POST 'https://api.example.com/v0/api_keys' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -H 'Content-Type: application/json' \ -d '{}'
Response
{ "message": "An entity with this name already exists", "error_code": "DuplicateName", "details": null }