Create API key for a subaccount

Creates a new API key for a subaccount linked to the authenticated parent account.

The operation must be authenticated with the parent account's API key. Subaccount key management must be temporarily enabled in the web interface, with the IP Whitelist active and the application's outbound IP authorized.

❗️

Store the key on creation

The access_token is returned only in the response of this operation and cannot be retrieved later.

If the credential is lost, you will need to create a new key.

Related content

Guides

Webhooks

Path Params
string
required

Unique subaccount identifier in Asaas

Body Params
string

API key name

date-time

API key expiration date

Responses

404

Not found

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json