Base URL
All API requests should be made to:Prerequisites
Before using Core API, you’ll need to:1
Create a Magic Account
Visit the Magic Dashboard and sign up for a Magic developer account.
2
Create an Application
In your dashboard, create a new application and obtain your API keys.
3
Use your Secret Key
Your
Secret Key will be used for all calls to the Core API.Authentication
Core API requires authentication using your Magic secret key for all requests:string
required
Your Magic secret key for service authentication. Format:
sk_live_XXXXXXXXv2 Authorization Model
In addition to the secret key, v2 operations require a short-lived operation JWT (op_jwt).
Wallet Creation
When creating a wallet, passauth_jwt — a JWT from your identity provider identifying the user. The enclave cryptographically binds the new wallet to this identity at creation time.
Signing Operations
Every signing request requires anop_jwt: a short-lived JWT for the specific user. The Nitro Enclave verifies this JWT offline against JWKS baked into the enclave image, confirms iss and sub exactly match the wallet’s binding, and authorizes the operation.
Supported Identity Providers
The enclave’s trust store is baked into the image at build time. The following provider families are supported:- Google (
https://accounts.google.com) - Google Firebase (
https://securetoken.google.com/<project>) - Auth0 (any tenant, e.g.
https://<tenant>.us.auth0.com/) - AWS Cognito (any user pool, e.g.
https://cognito-idp.<region>.amazonaws.com/<pool-id>) - Supabase (any project, e.g.
https://<project>.supabase.co/auth/v1) - Stytch (any project)
JWT Requirements
Bothauth_jwt (wallet creation) and op_jwt (signing) must satisfy the following: