Subscriptions
Get Current Subscription
Retrieve the current user subscription status and credit balance
GET
Documentation Index
Fetch the complete documentation index at: https://gtmapis.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Your API key (format:
gtm_test_... or gtm_live_...)Response
Stripe subscription ID (format:
sub_...)Current subscription status:
active: Subscription is active and credits availabletrialing: In trial periodpast_due: Payment failed, retryingcanceled: Subscription canceledincomplete: Awaiting payment confirmation
Plan name:
starter or agencyTotal credits included in current billing period (20,000 or 50,000)
Number of credits consumed in current period
Remaining credits for current period (calculated: included_credits - credits_used)
ISO 8601 timestamp of current billing period start
ISO 8601 timestamp of current billing period end
Whether the subscription is set to cancel at the end of the current period
Usage Notes
Credit Tracking
Credits are tracked per billing period:- Reset: Credits reset to full amount at period start (e.g., Jan 7 → Feb 7)
- No Rollover: Unused credits do NOT carry over to next period
- Real-time Deduction: Credits deducted immediately after validation
Checking Before Validation
Before running large bulk validations, check your remaining credits:Status Interpretations
| Status | Meaning | Can Validate? |
|---|---|---|
active | All good, credits available | ✅ Yes |
trialing | Free trial period | ✅ Yes |
past_due | Payment retry in progress | ✅ Yes (grace period) |
canceled | Subscription ended | ❌ No |
incomplete | Awaiting payment confirmation | ❌ No |
Error Responses
404 Not Found
User has no subscription:401 Unauthorized
Invalid or missing API key:Related Endpoints
Create Subscription
Start a new subscription plan
Cancel Subscription
Cancel at end of current period