White Label Admin - Add Project API key

White Label Admin - Add Project API key

post

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

Authorizations
Path parameters
organizationIdintegerRequired

Organization ID

projectIdintegerRequired

Project ID

Body
all ofOptional
Responses
200
OK
application/json
Responseall of
post
POST /v1/api/organizations/{organizationId}/whitelabel/projects/{projectId}/apiKeys HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "name": "text",
  "apiKey": "text",
  "ttl": 1
}
200

OK

{
  "success": true,
  "error": "text",
  "id": 1,
  "apiKey": "text"
}

Last updated

Was this helpful?