Skip to main content
POST
/
management
/
v2.0
/
organisations
/
{organisationId}
/
apikeys
Creates a new api-key.
curl --request POST \
  --url https://api-trial.cognigy.ai/new/management/v2.0/organisations/{organisationId}/apikeys \
  --header 'Authorization: Basic <encoded-value>'
{
  "name": "<string>",
  "_id": "<string>",
  "createdAt": 1527621049,
  "apiKey": "<string>"
}

Authorizations

Authorization
string
header
required

Basic Authentication used by routes designed for the Management-UI.

Headers

Accept
enum<string>

The default media type is application/hal+json. Use application/json for pure data results.

Available options:
application/json,
application/hal+json,
application/xml,
text/xml,
text/csv

Path Parameters

organisationId
string
required

The Id of the Organisation

Required string length: 24

Response

Returns the created api-key.

name
string
_id
string
Required string length: 24
createdAt
integer
Required range: 0 <= x <= 2147483647
Example:

1527621049

apiKey
string