Create
Creates a new API key in the workspace.
Requires an API key with workspace access, or an access token. The new
key’s scope must be within the caller’s scope. Omit scope and an
API key copies its own scope onto the new key. An access token that
omits scope creates a key with access to every project and to
workspace management.
Authentication
AuthorizationBearer
Bearer authentication header of the form Bearer <PHONIC_API_KEY>. Manage your API keys here.
Request
This endpoint expects an object.
name
A name to identify the API key. Required, and unique within the workspace.
scope
Access granted to the new key. Must be within the caller's own scope. Omit it and an API key copies its own scope onto the new key.
Response
API key created
id
The API key ID.
name
The name of the API key.
api_key
The API key secret. Returned only in this response.
scope
The scope stored on the new key.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error