Prerequisites
Before you begin, ensure that you’ve:- Obtained an API key for Digital Asset Accounts from your Circle representative.
- Onboarded the end customer and waited until KYB is approved. See
Onboard customers.
Keep their
clientEntityId. - Installed cURL on your development machine.
Create the account
Send a create request from your backend with the end customer’sclientEntityId. Generate the idempotency key first, so that you can reuse it
if you retry:
typeandpurpose: must bethird_partyandcustodyfor an end customer’s account.description: required, up to 255 characters. A label for the account, which you can show to the end customer. It must be unique, ignoring case, among the active accounts of all your end customers. A duplicate returns409.idempotencyKey: a UUID v4. Store it before you send the request, and reuse it if you retry.
accountId. custodyType is omnibus for a custodial account. Circle
creates a custodial account with status active, so it can receive funds
right away. For every field, see
Create an account.
See also
- To fund the account with a wire, see Wire deposits and withdrawals.
- To receive stablecoins onchain, see Create deposit addresses.