Create User API Key

Create a new API key for the specified user. Only superusers or the user themselves may create an API key.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired
ID of the user for whom to create an API key

Headers

X-API-KeystringRequired

Request

This endpoint expects an object.
namestringOptional
Name of the API key
descriptionstringOptional
Description of the API key

Response

Successful Response
resultsobject

Errors