Create an API key owned by the project
post/v1/tenants/{tenant_id}/api-keys
Requires an API key
The team's owners, admins and developers reaching the project (keys:manage), and Ivora administrators. The key belongs to the project: it is allowed exactly its scopes here and keeps working when the person who made it leaves the team, until revoked. Project scopes only, each one you hold on the project. The secret is returned once. A project keeps 20 active keys. 402 payment_method_required while the team has no usable payment method.
Path parameters
- tenant_idintegerRequired
Request body
- labelstringRequired2–80 characters
- scopesarray of stringRequiredProject scopes only, each one you hold on the project yourself.
Returns · 201
- idstringRequired
- keystringRequiredThe secret; copy it now, it cannot be retrieved again.
- scopesarray of stringRequired
- tenant_idintegerRequired
- api_versionstringRequired
- ownerstringRequired
- messagestringRequired
POST /v1/tenants/{tenant_id}/api-keys
curl --fail-with-body -X POST "https://api.ivoracharge.com/v1/tenants/1042/api-keys" \
-H "Authorization: Bearer $IVORA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"label": "string",
"scopes": [
"string"
]
}'Response · 201
{
"id": "id_0123456789abcdef",
"key": "string",
"scopes": [
"string"
],
"tenant_id": 1042,
"api_version": "string",
"owner": "project",
"message": "string"
}Try it is not available here yetRequests from this page are off until the production API at
https://api.ivoracharge.com is public. Use the code samples from your application server; Ivora grants production access. Keys are created in Developer tools.