Skip to main content
POST
/
v1
/
widget-sessions
Create a chat payment session
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.

Authorizations

Authorization
string
header
required

Enter your API key: mvn_test_xxx or mvn_live_xxx

Body

application/json
project
string
required

Project UUID or slug

amount_cents
integer
required

Charge amount in cents. For mode='tokenize' may be 0.

Required range: x >= 0
gateway
string
required

stripe | authorizenet | braintree | shift4

mode
string
default:charge
Pattern: ^(charge|tokenize)$
description
string | null

Response

Successful Response