Endpoint reference
Every route in v1, grouped by resource, with the scope each one needs. The live OpenAPI spec is the authoritative copy — this page mirrors it.
https://rigyx.com/api/public/v1. Every request needs an Authorization: Bearer header — see Authentication. All list endpoints follow the pagination rules.Identity
/whoamiany tokenEcho back the business ID, scopes and token ID the calling token is bound to. The fastest way to confirm a token works.
Leads
/leadsleads:readList leads, cursor-paginated. Filter with ?status=.
/leadsleads:writeCreate a lead. email is required; accepts an Idempotency-Key header.
/leads/{id}leads:readFetch a single lead by ID.
/leads/{id}leads:writeUpdate a lead — for example, move its status to qualified.
Creating a lead, and the object you get back:
curl -X POST https://rigyx.com/api/public/v1/leads \
-H "Authorization: Bearer jmt_..." \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"company_name": "Acme Ltd",
"contact_name": "Sam Rivera",
"status": "new",
"tags": ["inbound"]
}'{
"id": "5b2e...-uuid",
"business_id": "a1b2...-uuid",
"company_name": "Acme Ltd",
"contact_name": "Sam Rivera",
"email": "[email protected]",
"phone": null,
"status": "new",
"score": 0,
"score_tier": "cold",
"tags": ["inbound"],
"created_at": "2026-05-22T09:14:03.221Z"
}Contacts
/contactscontacts:readList contacts, cursor-paginated.
/contactscontacts:writeCreate a contact.
Campaigns
/campaignscampaigns:readList email campaigns with their send and open counts.
Documents
/documentsdocuments:readList generated documents — proposals, quotes, invoices, reports.
/documentsdocuments:generateGenerate a new document. May return GENERATION_REFUSED if the anti-hallucination guard blocks it for missing facts.
/documents/{id}/senddocuments:sendEmail an approved document. Returns 409 if the document is not yet approved.
Agents
/agents/{type}/tasksagents:invokeDispatch a natural-language task to an agent. Queued — returns 202. type is one of marketing, sales, operations, project_management.
curl -X POST https://rigyx.com/api/public/v1/agents/marketing/tasks \
-H "Authorization: Bearer jmt_..." \
-H "Content-Type: application/json" \
-d '{
"task": "Draft a cold email to 10 coastal guest houses.",
"context": { "tone": "warm" }
}'Webhooks
/webhookswebhooks:manageList your webhook subscriptions.
/webhookswebhooks:manageSubscribe to events. The signing secret is returned once, on creation.
/webhooks/{id}webhooks:manageUpdate a subscription — its URL, events, or active state.
/webhooks/{id}webhooks:manageDelete a subscription.
Events
/eventsevents:readList recent events, cursor-paginated. Filter with ?type=. Use this to catch up after a webhook endpoint outage.