cURL
curl --request POST \ --url https://dev.exante.app/api/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Production integration", "scopes": [ "invoices:read" ], "expires_in_days": 30 } '
{ "status": "success", "message": "API key created", "data": { "uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "Production integration", "key_snippet": "ex_live_...9AbC", "user_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "organization_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "scopes": [ "invoices:read" ], "last_used_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z", "revoked_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "key": "ex_live_xxxxxxxxxxxxxxxxx" } }
Create a new API key. The full key is returned only once.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Human-readable label for the key
"Production integration"
Optional scopes. If omitted, full access is used.
["invoices:read"]
Positive number of days until expiration
x >= 1
30
API key created
"success"
"API key created"
Show child attributes