Skip to main content
Create an API key

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
apiKeyType
enum<string> | null
default:generic

What the key is issued for. It serves as a label, with one functional consequence: a scim key is refused everywhere except by the SCIM provisioning endpoints.

Available options:
null,
generic,
msAddin,
scim,
external
Example:

"generic"

description
string | null

Human-readable note about what the key is for, shown next to it in the key list. Give every key one - it is the only way to tell your keys apart later.

Maximum string length: 255
Example:

"Integration with Accounting System"

Response

Returns the value of the newly created API key.

id
string

Value the request produced: the identifier of the object it created or acted upon, or - on the endpoints that issue one - the token it granted.

Example:

"e58cc1acbba3cd8056ce6adb44d46a11a113170e884509c179701270b915b59b"