Documentation Index
Fetch the complete documentation index at: https://docs.magic.link/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
All endpoints require the following headers unless otherwise noted:Bearer token (JWT) for end-user authentication. Format:
Bearer YOUR_JWT_TOKENYour Magic secret key for application-level authentication.
Sign Data
Sign data with the authenticated user’s Magic wallet.cURL
Request Parameters
A
0x-prefixed hex hash to sign directly. Provide either this or message.A plain text message to hash (keccak256) and sign. Provide either this or
raw_data_hash.Response Fields
Whether the signing operation completed successfully.
The hex-encoded signature.
The hash that was signed.
The user identifier from your application.
Withdraw to External Address
Send funds from the authenticated user’s Magic wallet to an external address.cURL
message is generated by the server (success text includes amount, token, and chain, and notes EIP-7702 gas-sponsored sends when applicable). tx_hash is an EVM transaction hash (0x…) or a Solana signature string depending on chain.
Request Parameters
The recipient wallet address. EVM destinations are normalized to checksummed hex; Solana addresses are validated as base58.
The amount to withdraw as a decimal string.
The token to withdraw. Values:
ETH, USDC, USDC.E, POL, SOLThe chain to withdraw on. Values:
ETH, ARB, POL, SOL, INKRequest gas-sponsored execution for EVM withdrawals when supported (Alchemy EIP-7702 path). Ignored for Solana (
should_sponsor_gas is false on SOL).Supported Token/Chain Combinations
| Chain | Supported Tokens |
|---|---|
| ETH | ETH, USDC |
| ARB | ETH, USDC, USDC.E |
| POL | POL, USDC, USDC.E |
| SOL | SOL, USDC |
| INK | ETH, USDC |
Response Fields
Whether the withdrawal was executed successfully.
The on-chain transaction identifier (EVM:
0x tx hash; Solana: base58 signature).The sender’s wallet address.
The recipient’s wallet address after server-side normalization.
The amount withdrawn.
The token that was withdrawn.
The chain the withdrawal was executed on.
Human-readable status message describing the completed withdrawal.