API Reference

Read your pipeline, push leads in, write updates back, and reply on an agent's behalf.

The Reply First API is how your CRM or backend reads and writes the pipeline. It pairs with the outbound webhook — the API is how you read and write Reply First, the webhook is how Reply First tells you what changed.

The base URL is https://replyfirst.ae. All requests use an org-scoped bearer token; all bodies are JSON.

There's no SDK yet — call the API directly with fetch, requests, or curl. The examples throughout show all three.

Authenticate

Create a token at Settings → Integrations → Webhook, then send it as a bearer token. Start with /api/v1/me to confirm the token works and see what it's allowed to do:

curl https://replyfirst.ae/api/v1/me \
  -H "Authorization: Bearer $RF_ORG_TOKEN"

See Authentication for tokens and scopes, and Rate limits for the 120/minute cap.

Endpoints

Leads

MethodEndpointScope
GET/api/v1/leadsreadList leads
POST/api/v1/leadswriteCreate a lead
GET/api/v1/leads/{leadId}readGet a lead
PATCH/api/v1/leads/{leadId}writeUpdate a lead

Conversations & messages

MethodEndpointScope
GET/api/v1/conversationsreadList conversations
GET/api/v1/conversations/{conversationId}readGet a conversation
GET/api/v1/conversations/{conversationId}/messagesreadList messages
POST/api/v1/leads/{leadId}/messagessendSend a message

Handoffs

MethodEndpointScope
GET/api/v1/handoffsreadList handoffs
GET/api/v1/handoffs/{handoffId}readGet a handoff
POST/api/v1/handoffs/{handoffId}/acceptwriteAccept a handoff
POST/api/v1/handoffs/{handoffId}/resolvewriteResolve a handoff

Account

MethodEndpointScope
GET/api/v1/mereadDescribe the calling token
GET/api/v1/stats/leadsreadLead counts by stage

Conventions

Every resource carries an object field naming its type (lead, conversation, message, handoff), and every list response is { object: "list", data, has_more, next_cursor }. Timestamps are RFC 3339 UTC. Ids are UUIDs.

Reference

On this page