Prerequisites
Before you begin, ensure you have:- A valid email address to register for a Circle Mint sandbox account
- curl or another tool for making HTTP requests
Step 1: Create a sandbox account
The sandbox environment lets you test API integrations without processing real transactions. For more details on sandbox versus production environments, see Sandbox to Production.Sign up for a sandbox account
Go to app-sandbox.circle.com/signup
and complete the registration form.
Step 2: Generate an API key
Circle Mint uses API keys to authenticate all requests. Create and manage keys in the Mint Console.Open the Mint Console
You can add mutual TLS (mTLS) on top of API key authentication for an extra
layer of transport-level security. Opting in is optional for most customers
and required for entities operating under the EU Markets in Crypto-Assets
(MiCA) regulation. mTLS changes how you generate and rotate API keys. See How
mTLS authentication works.
Step 3: Test connectivity
Test raw connectivity by calling the/ping endpoint. This endpoint does not
require authentication, so it confirms that your application can reach the API.
Step 4: Verify your API key
Circle Mint uses Bearer token authentication. Include your API key in theAuthorization header of every request using the format Bearer YOUR_API_KEY.
Call the /v1/configuration endpoint to confirm that your API key is valid and
properly configured:
masterWalletId. The masterWalletId is the identifier for the primary wallet
associated with your Circle Mint account, used as the source or destination in
transfer and payout operations.
401 Unauthorized error:
Authorization header uses the Bearer
prefix and that you copied the full API key from the Mint Console.
Use the TypeScript SDK (optional)
Circle publishes a TypeScript SDK that wraps the Circle Mint API. Install it from the npm registry:circle-nodejs-sdk repository
for usage examples, type definitions, and instructions for filing issues or
contributing.