Create a session
Create a session token to initialize a connection
Documentation Index
Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Secret key authentication via the X-Api-Key header.
Example: X-Api-Key: <secretKey>
Body
The IP address of the user's device to ensure the integrity of the session. Both IPv4 and IPv6 values are supported.
"0.0.0.0"
A unique identifier for the customer from your system.
1 - 255"user_01AN4Z07BY"
The customer's email address. Must be a valid email. If provided, phoneNumber must also be provided.
5 - 255"user@example.com"
The customer's phone number in E.164 format. If provided, email must also be provided.
^\+[1-9]\d{1,14}$"+14155551234"
Response
The request has succeeded.
An opaque session token used to set up a connection on your frontend. This token is single-use and must be generated each time the customer visits your app.
Token expires 24 hours after issuance.
1 - 8192"c2Vzc2lvbi50b2tlbg"