Skip to main content
POST
/
api
/
auth
/
cdp-session
Create a CDP wallet session
curl --request POST \
  --url https://mag3nt.com/api/auth/cdp-session \
  --header 'Content-Type: application/json' \
  --data '
{
  "cdp_token": "eyJhbGciOiJFUzI1NiIs...",
  "wallet_address": "0x1234567890abcdef1234567890abcdef12345678"
}
'
{
  "token": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "wallet_address": "<string>",
  "chain": "eip155"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mag3nt.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
cdp_token
string
required

CDP access token from Coinbase wallet

Example:

"eyJhbGciOiJFUzI1NiIs..."

wallet_address
string
required
Example:

"0x1234567890abcdef1234567890abcdef12345678"

Response

Session created

token
string
expires_at
string<date-time>
wallet_address
string
chain
string
Example:

"eip155"