🚧 This integration is currently in preview and subject to change.
curl --request POST \
--url https://api.moonpay.com/platform/v1/session \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"externalCustomerId": "<string>",
"deviceIp": "0.0.0.0"
}
'{
"sessionToken": "<string>"
}Create a session token to initialize a connection
curl --request POST \
--url https://api.moonpay.com/platform/v1/session \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"externalCustomerId": "<string>",
"deviceIp": "0.0.0.0"
}
'{
"sessionToken": "<string>"
}Secret key provided as an Authorization header.
Example: Authorization: Api-Key <secretKey>
A unique identifier for the customer from your system.
1 - 255"user_01AN4Z07BY"
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"
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"