Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Get Subscription

Get your current subscription status, including plan details, billing cycle, and credit caps.
Use this endpoint to check your billing status and what credits are available.
Subscription lifecycle: 1. After signup, status is none -- no data credits available. 2. After checkout, status is active -- full plan credits.
Request example
curl https://api.v2.dealmachine.com/v1/subscription \ -H "Authorization: Bearer dm_sk_live_xxx"
Response example
{ "status": "active", "plan": { "name": "Basic", "is_paid": true }, "trial": { "is_trialing": false, "trial_end": null, "enrichment_credits": 0 }, "billing_cycle": { "start": "2026-04-01T00:00:00.000Z", "end": "2026-05-01T00:00:00.000Z" }, "credits": { "base_enrichment_cap": 10000, "monthly_credit_grant_cap": 0, "monthly_enrichment_cap": 10000, "additional_enrichment_balance": 0, "enrichment_cap": 10000, "total_enrichment_cap": 10000, "total_enrichment_available": 9998, "ai_cap": 25000000, "base_ai_cap": 25000000, "monthly_ai_credit_grant_cap": 0, "monthly_ai_cap": 25000000 } }

Response Fields

FieldTypeDescription
statusstringSubscription status: none, trialing, active, past_due, canceled, incomplete, unpaid, paused
plan.namestringPlan name (e.g., "Basic", "Pro", "No plan")
plan.is_paidbooleantrue if the subscription is active and paid
trial.is_trialingbooleantrue only for legacy Stripe subscriptions still in pre-billing status
trial.trial_endstring | nullISO 8601 timestamp when that status ends (null otherwise)
trial.enrichment_creditsnumberData credits available in that status (0 otherwise)
billing_cycle.startstringISO 8601 start of the current billing cycle
billing_cycle.endstringISO 8601 end of the current billing cycle
credits.enrichment_capnumberMonthly data credits for this billing cycle
credits.total_enrichment_capnumberTotal current-cycle capacity, including additional credits
credits.total_enrichment_availablenumberLive spendable data credits remaining
credits.ai_capnumberMax AI credits (tokens) for this billing cycle
Use credits.total_enrichment_available for eligibility checks. It is a live remaining balance. credits.total_enrichment_cap and credits.enrichment_cap are allowances, not balances.

Status Values

StatusMeaningCan use API?
noneNo subscription -- just signed upNo (403)
trialingLegacy pre-billing statusYes
activePaid subscriptionYes
past_duePayment failed, grace periodYes (limited)
canceledSubscription canceledNo