Overview
TextIn offers two independent read-only endpoints to monitor your account. Use them to check funds before a batch job, or to build low-balance alerts and quota dashboards.Both endpoints require your App ID and Secret Code. See Authentication to obtain your credentials and set the
TEXTIN_APP_ID and TEXTIN_SECRET_CODE environment variables used in the examples below.Account Balance
Your total prepaid balance and how much of it is currently available. Applies to pay-as-you-go usage.
Package Quota
Per-service package counts (total / remaining / used) and validity windows.
Balance vs. package quota — which one applies to you
The two endpoints answer different questions. Which one reflects your usable capacity depends on how you pay:Check your account balance
The balance endpoint takes no parameters.- cURL
- Python (requests)
balance equals available_balance plus unavailable_balance (funds pending activation). Spend against available_balance.
Check your package quota
The package endpoint requires anapi_path query parameter identifying the service. By default it returns only packages currently in effect; pass include_all=1 to include expired ones.
- cURL
- Python (requests)
api_path values:
The endpoint does not return an explicit “expired” or “exhausted” status. Determine it yourself: a package is expired when
end_time is earlier than now, and exhausted when remain_count is 0.Next steps
Balance API Reference
Full request and response schema for the balance endpoint.
Package API Reference
Full request and response schema for the package endpoint.

