cURL
curl --request POST \ --url https://api.staging-2tid4c.ezyshield.com.au/management/v1/entities/{entity}/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "abilities": [ "verification:read" ] } '
{ "data": { "id": "<string>", "name": "<string>", "abilities": [ "<string>" ], "creator": { "id": "<string>", "name": "<string>", "email": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }, "created_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z", "token": "<string>" } }
The plain text token is only returned once and should be stored securely.
Requires the entity_api_key:write ability.
entity_api_key:write
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The entity ID
The name of the API key.
255
The abilities/permissions for the API key.
verification:read
verification:write
check:read
check:write
ApiKeyResource
Show child attributes
The API key ID.
The user ID.
The name of the user.
The email address of the user.
ISO 8601 formatted date-time.
The plain text token, only shown once when created.