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>"
}
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//) 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.
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>"
}
OK
The response is of type object
.