Skip to main content
POST
Create API key

Authorizations

Authorization
string
header
required

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body

name
string
required

Name of the API key

Example:

"Entities scanner"

roles
object[]
required

Roles assigned to the API key

Roles assigned to the API key

description
string

Description of the API key

Example:

"API Key used for entities scanner script"

expirationDate
string<date-time>

Expiration date of the API key. Format: ISO8601 with timezone offset

Response

Successfully created API key

apiKey
string
required

Value of the API key created. You will not be able to see this key again

Example:

"3WpQ3WpQ3WpQ3WpQ"

roles
object[]
required

Roles assigned to the API key

Roles assigned to the API key

description
string

Description of the API key

Example:

"API Key used for entities scanner script"

expirationDate
string<date-time>

Expiration date of the API key

name
string

Name of the API key

Example:

"Entities scanner"

Last modified on September 24, 2026