/api_keysCreate an API key
Creates an API key for the specified subject. Supply name and subject, and provide optional claims, scopes, creator, and expiration settings as needed. The response includes the key secret, so handle it as a credential.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
API key settings. name and subject are required.
A 400 indicates invalid request data; a 409 indicates a conflict. name and subject are required; name must contain at least 3 characters and have no leading or trailing whitespace, and subject must match the user_, org_, mch_, or scim_ identifier format followed by 27 word characters. type must contain 3 to 25 characters, description must not exceed 255 characters, created_by must match the user_ identifier format followed by 27 word characters, and seconds_until_expiration must be greater than 0.