Create API Key
Warning: This API has been deprecated. Please contact us to move to the latest Authentication system and transition to using Service Accounts.
POST /api-keys/
Instantiates a JWT token for a machine/service account, which must be securely persisted and passed in the request headers as a bearer token. The token is subject to policy engine controls, but can not approve policy control executions.
Required Permissions
ApiKeys:Create
Parameters
Request body
Request body fields | Required/Optional | Description | Type |
---|---|---|---|
| Required | A name for the API Key | String |
| Required | This field will soon be deprecated. Please pass "{}". | Pass an empty object: {} |
Request example
Sample request
Response
Response example
The response returns a token
. Note Dfns does not persist the token you receive, so you must save it securely. You will not be able to get this token again from the Dfns API.
Last updated