POST
/
api
/
organizations
/
{organizationId}
/
whitelabel
/
projects
/
{projectId}
/
apiKeys
White Label Admin - Add Project API key
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/whitelabel/projects/{projectId}/apiKeys \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "apiKey": "<string>",
  "ttl": 123
}'
{
  "success": true,
  "error": "<string>",
  "id": 123,
  "apiKey": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
integer
required

Organization ID

projectId
integer
required

Project ID

Body

application/json
name
string
required

Description of the key

apiKey
string

Optional: API key. This needs to start with ei_ and will need to be at least 32 characters long. If this field is not passed in, a new API key is generated for you.

ttl
integer

Time to live in seconds. If not set, the key will expire in 1 minute.

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

id
integer
required

ID of the new API key

apiKey
string
required

New API Key (starts with "ei_...") - this'll be shared only once.

error
string

Optional error description (set if 'success' was false)