Skip to main content

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:
Package users often see a balance of 0 — this is expected. Their usable capacity lives in the package endpoint, not the balance endpoint. Always check the endpoint that matches your billing model.

Check your account balance

The balance endpoint takes no parameters.
balance equals available_balance plus unavailable_balance (funds pending activation). Spend against available_balance.

Check your package quota

The package endpoint requires an api_path query parameter identifying the service. By default it returns only packages currently in effect; pass include_all=1 to include expired ones.
Common 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.