Skip to main content
POST
/
v1
/
credits
Create checkout session
curl --request POST \
  --url https://api.vidjutsu.ai/v1/credits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "credits": 123,
  "email": "<string>"
}
'
{
  "url": "<string>",
  "sessionId": "<string>",
  "credits": 123,
  "amount": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
credits
integer<int32>
email
string

Response

200 - application/json

The request has succeeded.

url
string
required
sessionId
string
required
credits
integer<int32>
required
amount
integer<int32>
required