Agent BillingCreate an agent billing checkout sessionpost

Create an agent billing checkout session

Creates a Stripe checkout session so a third-party agent organization can upgrade from free credit to paid usage.

curl -X POST "https://public-api.textmine.com/v3/agent-billing/checkout" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (TextMine tm_ API key)" \
  -d '{
  "successUrl": "example_string",
  "cancelUrl": "example_string"
}'
{
  "checkoutUrl": "example_string",
  "sessionId": "example_string"
}
POST
/v3/agent-billing/checkout
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (TextMine tm_ API key)
Bearer Tokenstring
Required

Bearer token (TextMine tm_ API key) - just enter the token, "Bearer" prefix will be added automatically

Content-Typestring
Required

The media type of the request body

Options: application/json
successUrlstring
Format: uri
cancelUrlstring
Format: uri
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (TextMine tm_ API key). Authentication token required.

Responses

checkoutUrlstring
sessionIdstring