Agent BillingGet agent billing statusget

Get agent billing status

Returns free-credit, checkout, and portal status for the authenticated third-party agent organization.

curl -X GET "https://public-api.textmine.com/v3/agent-billing/status" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (TextMine tm_ API key)"
{
  "organizationId": 123,
  "platformEnabled": true,
  "billingStatus": "example_string",
  "stripeSubscriptionStatus": "example_string",
  "contactEmail": "user@example.com",
  "currency": "example_string",
  "freeCreditsPerPeriod": 42,
  "usedCreditsCurrentPeriod": 42,
  "remainingFreeCredits": 42,
  "monthlySpendCapCents": 42,
  "checkoutRequired": true,
  "stripePriceId": "example_string",
  "gettingStarted": {},
  "setupChecklist": [
    {
      "key": "example_string",
      "label": "example_string",
      "description": "example_string",
      "required": true,
      "complete": true
    }
  ]
}
GET
/v3/agent-billing/status
GET
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

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

organizationIdinteger
platformEnabledboolean
billingStatusstring
stripeSubscriptionStatusstring
contactEmailstring
currencystring
freeCreditsPerPeriodinteger
usedCreditsCurrentPeriodinteger
remainingFreeCreditsinteger
monthlySpendCapCentsinteger
checkoutRequiredboolean
stripePriceIdstring
gettingStartedobject
setupChecklistarray