merchant_token cookie. Supported profile, wallet and withdrawal routes also accept the merchant’s own API key; they do not accept a consumer/admin session. Mainnet login can perform Circle wallet migration/liveness checks; a stale wallet or provider failure can block login with update/retry guidance. To sign out, call DELETE /api/merchant/me.
Endpoint
Request
Headers
No authentication is required — this endpoint is the authentication step.
Body Parameters
Response
The response also setsmerchant_token (HttpOnly, SameSite=Lax, 7-day expiry). Browsers store and resend it automatically on supported same-origin session routes. Server-side fetch does not automatically retain a browser cookie jar.
Logout
Signing out is handled byDELETE /api/merchant/me:
Examples
Success Response
Error Responses
Notes
Login is only possible after the account is verified. Unverified accounts receive
HTTP 403 with "Please verify your email first." — complete the code at POST /api/merchant/verify first.
