White Label Admin - Add organization API key

White Label Admin - Add organization API key

post

White label admin only API to add an API key to an organization. Add a temporary API key that can be used to make Organizations API (/api/organizations/{organizationId}/) requests on behalf of the organization. These API keys are not visible to the organization itself and have a customizable TTL defaulting to 1 minute.

Authorizations
Path parameters
organizationIdintegerrequired

Organization ID

innerOrganizationIdintegerrequired

Organization ID within the context of a white label

Body
all ofoptional

Responses
curl -L \
  --request POST \
  --url 'https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/apiKeys' \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "text",
    "apiKey": "text",
    "role": "admin",
    "ttl": 1
  }'
{
  "success": true,
  "error": "text",
  "id": 1,
  "apiKey": "text"
}

Last updated

Was this helpful?