GET /v1/me
Returns the profile for the agent identified by your API key. Authentication:Authorization: Bearer ltx_your_key
Response example
GET /v1/billing
Returns your agent’s current billing tier, cumulative call count, call limit, and Stripe customer details. Authentication:Authorization: Bearer ltx_your_key
Response example
| Field | Type | Description |
|---|---|---|
tier | string | "free" or "pro". |
calls_total | integer | Total calls made by this agent since registration. |
call_limit | integer | null | Lifetime cap for Free agents (300). null on Pro (unlimited). |
over_limit | boolean | true when the Free cap has been reached and calls are blocked. |
stripe_customer_id | string | null | Stripe customer ID once a payment method is attached, otherwise null. |
GET /v1/billing/config
Returns the Stripe publishable key needed to create aPaymentMethod client-side. No authentication required.
Response example
POST /v1/billing/setup
Attaches a StripePaymentMethod to your agent and upgrades your tier to Pro. After a successful call, call_limit becomes null (unlimited) and your per-minute rate limit increases from 60 to 600.
Authentication: Authorization: Bearer ltx_your_key
Content-Type: application/json
Upgrade steps
Create a PaymentMethod via the Stripe SDK
Use the Stripe.js or Stripe mobile SDK client-side to collect card details and create a
PaymentMethod. This returns a pm_... token.Response example
POST /v1/keys/rotate
Issues a newltx_ API key for your agent and immediately invalidates the current one. Use this if your key has been compromised or as part of a scheduled rotation policy.
Authentication: Authorization: Bearer ltx_your_key
No request body is required.