Authentication
Send Authorization: Bearer <your key> with every request. A key is scoped: it can only do what it was granted.
Rate limit
120 requests per key every 15 minutes. A call over the limit gets HTTP 429.
Endpoints
| Method | Path | Scope | What it returns |
|---|---|---|---|
| GET | /api/v1/listing | read:listing | Your organization's own profile |
| GET | /api/v1/attributes | read:listing | Every attribute with provenance |
| PATCH | /api/v1/attributes | write:listing | Update attributes (partial; a key you don't send is untouched) |
| GET | /api/v1/service-areas | read:service_areas | Your declared service areas |
| GET | /api/v1/requests | read:requests | Open Service Requests routed to you |
| GET | /api/v1/reviews | read:reviews | Your published reviews |
| GET | /api/v1/subscription | read:subscription | Your plans and their status |
GET /api/v1/listing
Authorization: Bearer tvc_...
200 OK
{ "listing": { "id": "...", "name": "...", "slug": "...", "city": "...", "stateCode": "GA", "published": true } }Webhooks
Register an HTTPS endpoint and choose which events to receive. Every delivery is a signed POST with a JSON body { "event": "<key>", "payload": { ... } }. A failed delivery retries with backoff and is marked failed after six attempts spread over roughly a day; the deliveries log in your dashboard has a Retry action for any of them.
Verifying a delivery
Every request carries X-TVC-Signature: t=<unix seconds>,v1=<hex>. The hex value is HMAC-SHA256, keyed by your endpoint's secret, over the string ${t}.${raw request body}. Recompute it and compare. Reject anything that doesn't match, and reject a timestamp too far in the past.
Supported events
| Key | Label | Description |
|---|---|---|
| billing.created | Subscription created | A subscription was created. One event per transition (0056): this is the creation, not the activation. |
| billing.trial_started | Trial started | A D21 operator trial began: the subscription became trialing with trial_ends_at set, in the transaction that set organizations.trial_used_at. |
| billing.trial_reminder_sent | Trial reminder sent | A trial conversion reminder was sent: day 23, day 29 or the lead-cap reminder, named in after.reminder. One of each per subscription, ever (unique index). |
| billing.trial_lead_cap_reached | Trial lead cap reached | A trialling organization received trial_lead_cap routed leads and left the rotation until it converts. |
| billing.trial_converted | Trial converted | A trial ended and the subscription converted to the paid term of the same tier. Written instead of activated: exactly one event per transition. |
| billing.trial_cancelled | Trial cancelled | A trial ended by cancellation before it converted. Written instead of cancelled: exactly one event per transition. |
| billing.activated | Subscription activated | A subscription became active on payment. A trial conversion is trial_converted, never this. |
| billing.upgraded | Subscription upgraded | A subscription moved to a higher tier immediately. consequence_shown holds the notice the member saw (required, non-empty). |
| billing.downgraded | Subscription downgraded | A downgrade took effect, at the end of the period or of the trial. |
| billing.downgrade_scheduled | Downgrade scheduled | A downgrade was scheduled (a scheduled_plan_changes row) to take effect at the end of the current period or of the trial. |
| billing.downgrade_withdrawn | Downgrade withdrawn | A scheduled downgrade was withdrawn before it took effect, by the member or because a cancellation was requested (cancel wins). |
| billing.cancel_requested | Cancellation requested | The member, or staff for them, pressed cancel: the platform recorded its intent (access_ends_at), on any tier, a trialling subscription included. A pending scheduled plan change is withdrawn in the same transaction (after.withdrew_plan_change_id). |
| billing.cancelled | Subscription cancelled | The cancellation took effect, as the billing provider confirmed it. |
| billing.renewed | Subscription renewed | A paid period renewed. |
| billing.expired | Subscription expired | The subscription reached the expired status (subscription_status), which had no event before 0056. |
| billing.payment_failed | Payment failed | A payment attempt failed. The payload never carries card, payment-method or invoice-line detail. |
| billing.payment_recovered | Payment recovered | A failed payment was recovered and the subscription returned to good standing. |
| billing.refunded | Payment refunded | A payment was refunded. The payload never carries card, payment-method or invoice-line detail. |
| billing.chargeback_opened | Chargeback opened | A chargeback was opened against a payment. The link to its support case is after.ticket_id, not a column. |
| billing.chargeback_resolved | Chargeback resolved | A chargeback was resolved. The link to its support case is after.ticket_id. |
| billing.reactivated | Subscription reactivated | A withdrawn cancellation, or a resubscription: told apart in after. One event covers both. |
| billing.term_changed | Subscription term changed | A subscription's billing term changed while its tier stayed the same, at once or when a scheduled term change took effect (billing post-sandbox decision 4). One event per transition: a change of tier and term together is upgraded or downgraded, not this. The subscription_event_type value was added by 0069. The payload never carries card, payment-method or invoice-line detail. |
| demand.service_request.routed | Service Request routed to a batch | PLACEHOLDER for the routing job (a later brief step; nothing in this brief emits it). One event per organization a batch reaches. |
| verification.requested | Verification requested | A Verified Provider or Verified Locator request was opened (by a subscription, the member or an admin). |
| verification.approved | Verification approved | A request was approved; the badge shows and the stratum applies. |
| verification.declined | Verification declined | A request was declined with a reason the member sees. |
| verification.expired | Verification expired | An approval expired or was superseded, or a request closed because its subscription lapsed. |
| verification.revoked | Verification revoked | An approval was revoked. |
| verification.sla_breached | Verification SLA breached | A request was not decided within the published verification_7d promise. |
| verification.sla_warning | Verification decision due soon | An undecided verification request is inside verification_sla_warning_hours of its published decision deadline. Once per request. |
| verification.recheck_due | Verification re-check due | An approval reaches its re-check notice (30 days before expiry). |
| demand.post.opened | Locations Wanted post opened | A demand_posts row was published or renewed (LW lane, migration 0095). Triggers the routing job (Inngest, on this event): the locator window, or immediate open-pool if no eligible locator. Emitted by src/lib/demand/lw-write.ts in the same transaction as the insert/renewal. |
| demand.post.routed | Locator notified in a post's locator window | A verified, in-coverage locator was routed a demand_post_routings row (routing_kind locator_window). Drives the locator email (automation_rule lw_locator_window_email, seeded DISABLED). Emitted by src/lib/demand/lw-routing.ts. |
| demand.post.response | A locator responded to a Locations Wanted post | A locator used Respond on a routed post (its own demand_post_routings.responded_at set). Drives the operator email naming the locator (automation_rule lw_locator_response_email, seeded DISABLED). Emitted by the locator surface's server action. |
| demand.post.accepted | An operator accepted a locator's response | The post's own organization accepted one locator's response (outcome = accepted); the operator's contact is revealed to that locator. Drives the locator email (automation_rule lw_locator_accepted_email, seeded DISABLED). Emitted by the operator's accept server action. |
| claim.granted | Claim granted | A claim completed; the claimant is an Owner. |
| claim.invite_requested | Claim invite requested | The bulk invite asked for a this-listing-is-yours email to the address on record. |
| organization.claimed | Organization claimed | An organization became claimed through the claim flow. Session D's onboarding consumes this. |
| review.held | Review waiting for a reviewer | A review was written (reason new) or edited (reason edited) and is waiting for a reviewer: it landed pending, or an author who has not yet earned auto-publish edited a published one. One event per hold; the reviewer works it in the verification review queue (vetting.review). Ids only. |
| review.disputed | Review disputed by the business | The reviewed business flagged a published review: it stays visible, labelled as disputed, until a reviewer decides. Ids and the dispute reason key only. |

