Agent BillingCreate an agent billing portal sessionpost

Create an agent billing portal session

Creates a Stripe billing portal session so a third-party agent organization can manage payment details and subscription state.

curl -X POST "https://public-api.textmine.com/v3/agent-billing/portal" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (TextMine tm_ API key)" \
  -d '{
  "returnUrl": "example_string"
}'
{
  "portalUrl": "example_string"
}
POST
/v3/agent-billing/portal
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
returnUrlstring
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.

Body

application/json

Responses

portalUrlstring