Management API
Create an API key
POST/api-keys
Create an API key in your workspace, authenticated with a management token.
This endpoint issues two kinds of key:
- Permanent key — a long-lived key for a project. Set
project_id(and optionallyname) and omitttl. Use this for a normal project API key. - Temporary key — a short-lived key that expires automatically. Set
ttlto the lifetime in seconds. Use temporary keys to authenticate end-user requests without exposing a long-lived key.
The au region supports Batch only, so it cannot be combined with type=rt.
Request
Responses
- 201
- 403
- 404
- 410
- 500
Created
Forbidden, project has maximum number of api keys already
Not Found
Gone
Internal Server Error