Create Api Key
POST/v1/user/authorization/keys/:organization_id/create
Creates a new API key with specified scope and permissions.
By default, API keys are scoped to an organization. Additionally, API keys can also be scoped to a specific dataset or a specific user.
If only key_name is provided in the request for creating an API key, the key will be scoped to the user's current organization.
To scope an API key to a specific organization by ID, set key_scope = "ORGANIZATION" and key_target_id with the UUID of the organization in the API key creation request.
To scope an API key to a specific dataset, set key_scope = "DATASET" and key_target_id with the UUID of the dataset in the API key creation request.
To scope an API key to a specific user, set key_scope = "USER" in the API key creation request.
Request
Responses
- 200
- 422
Successful Response
Validation Error