curl --request POST \
--url https://api.trymaven.com/v1/widget-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project": "<string>",
"amount_cents": 1,
"gateway": "<string>",
"mode": "charge",
"description": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create a chat/web payment session.
Call this from your server with your secret API key. Hand the returned
session_id to your frontend and mount the widget:
Maven.createPayment({ sessionId }).mount("#slot").
Theme, labels, and fields are set once per project in the dashboard (Chat Payments tab → Customize) and applied automatically.
curl --request POST \
--url https://api.trymaven.com/v1/widget-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project": "<string>",
"amount_cents": 1,
"gateway": "<string>",
"mode": "charge",
"description": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.trymaven.com/llms.txt
Use this file to discover all available pages before exploring further.
Enter your API key: mvn_test_xxx or mvn_live_xxx
Successful Response