सामग्री पर जाएँ

Rexenda पब्लिक API

अपने सिस्टम को Rexenda वर्कस्पेस से जोड़ें: कॉन्टैक्ट और लीड बनाएँ, डील आगे बढ़ाएँ, जर्नी शुरू करने वाले इवेंट भेजें, सहमति दर्ज करें और हर कॉल पढ़ें। यह पेज उसी OpenAPI कॉन्ट्रैक्ट से बनता है जिसे API देता है।

  • REST · JSON
  • OpenAPI 1.0.0
  • SCIM 2.0 प्रोविज़निंग

ऑथेंटिकेशन और अनुमतियाँ

वर्कस्पेस का मालिक या कोई एडमिन सेटिंग्स › इंटीग्रेशन › API कुंजियाँ में कुंजी बनाता है और उसकी अनुमतियाँ चुनता है। हर रिक्वेस्ट पर इसे Bearer टोकन के रूप में भेजें। सीक्रेट एक ही बार दिखता है; इसे अपने सीक्रेट मैनेजर में रखें।

curl https://rexenda.com/api/public/v1/contacts?limit=10 \
  -H "Authorization: Bearer rx_live_<prefix>_<secret>"

अनुमतियाँ

अनुमतिअनुमति देता है
contacts:readसंपर्क · पढ़ें
contacts:writeसंपर्क · लिखें
leads:readलीड · पढ़ें
leads:writeलीड · लिखें
events:writeइवेंट · लिखें
journeys:writeजर्नी · लिखें
consent:writeसहमति · लिखें
campaigns:readअभियान · पढ़ें
calls:readकॉल · पढ़ें
calls:writeकॉल · लिखें

सीमाएँ, दोबारा कोशिश और पेज

  • हर कुंजी के लिए प्रति मिनट 600 रिक्वेस्ट। इससे ऊपर आपको Retry-After हेडर के साथ HTTP 429 मिलता है।
  • POST रिक्वेस्ट Idempotency-Key हेडर स्वीकार करती हैं: उसी कुंजी और बॉडी से दोबारा कोशिश करने पर 24 घंटे तक मूल जवाब लौटता है, इसलिए नेटवर्क रीट्राई कभी डुप्लिकेट नहीं बनाता।
  • सूचियाँ एक अपारदर्शी कर्सर से पेज होती हैं: next_cursor को cursor के रूप में तब तक लौटाएँ जब तक वह null न हो। पेज साइज़ 1–100 (डिफ़ॉल्ट 25)।

त्रुटियाँ

त्रुटियाँ application/problem+json का उपयोग करती हैं, जिसमें एक स्थिर कोड होता है जिस पर आप निर्णय ले सकते हैं, और वैलिडेशन त्रुटियों में वह फ़ील्ड जो विफल हुआ।

{ "type": "about:blank", "title": "Validation error", "status": 422,
  "code": "invalid_phone", "field": "phone", "traceId": "…" }

/contacts

GET /contacts आवश्यक contacts:read

Search contacts

cursorqueryOpaque cursor from `next_cursor`.
limitqueryPage size (1-100, default 25).
emailqueryExact email (case-insensitive).
phonequeryPhone in E.164.
qqueryText search on name, email and company.

लौटाता है: ContactPage (200)

POST /contacts आवश्यक contacts:write

Create or update a contact (by external_id, email or phone)

Idempotency-KeyheaderRetries with the same key and body return the original response for 24 hours.

बॉडी: ContactUpsertलौटाता है: Contact (200)

GET /contacts/{id} आवश्यक contacts:read

Get a contact

idpath

लौटाता है: Contact (200)

/leads

GET /leads आवश्यक leads:read

List leads

cursorqueryOpaque cursor from `next_cursor`.
limitqueryPage size (1-100, default 25).
contact_idqueryOnly this contact's leads.

लौटाता है: LeadPage (200)

POST /leads आवश्यक leads:write

Create a lead

Idempotency-KeyheaderRetries with the same key and body return the original response for 24 hours.

बॉडी: LeadCreateलौटाता है: Lead (201)

GET /leads/{id} आवश्यक leads:read

Get a lead

idpath

लौटाता है: Lead (200)

POST /leads/{id}/stage आवश्यक leads:write

Move a lead to another stage

idpath
Idempotency-KeyheaderRetries with the same key and body return the original response for 24 hours.

बॉडी: LeadStageUpdateलौटाता है: Lead (200)

/events

POST /events आवश्यक events:write

Track a custom event on a contact's timeline

Idempotency-KeyheaderRetries with the same key and body return the original response for 24 hours.

बॉडी: EventCreateलौटाता है: EventAccepted (202)

/journeys

POST /journeys/{id}/enrollments आवश्यक journeys:write

Enroll contacts in an active journey

idpath
Idempotency-KeyheaderRetries with the same key and body return the original response for 24 hours.

बॉडी: JourneyEnrollmentलौटाता है: JourneyEnrollmentResult (200)

/consents

POST /consents आवश्यक consent:write

Record a consent or its withdrawal

Idempotency-KeyheaderRetries with the same key and body return the original response for 24 hours.

बॉडी: ConsentCreateलौटाता है: Consent (201)

/campaigns

GET /campaigns आवश्यक campaigns:read

List campaigns

cursorqueryOpaque cursor from `next_cursor`.
limitqueryPage size (1-100, default 25).

लौटाता है: CampaignPage (200)

GET /campaigns/{id}/metrics आवश्यक campaigns:read

Get a campaign's metrics

idpath

लौटाता है: CampaignMetrics (200)

/calls

GET /calls आवश्यक calls:read

List calls (history)

cursorqueryOpaque cursor from `next_cursor`.
limitqueryPage size (1-100, default 25).
fromqueryWindow start (ISO-8601, UTC). Default: 30 days before `to`. Max window 93 days.
toqueryWindow end (ISO-8601, UTC, exclusive). Default: now.
queue_idqueryOnly calls that went through this queue.
user_idqueryOnly calls answered or made by this person.
number_idqueryOnly calls of this workspace number.
directionqueryinbound or outbound.
outcomequeryanswered, missed, abandoned, voicemail, failed or in_progress.
has_recordingqueryOnly calls with (true) or without (false) a recording.
qqueryPhone number or contact name (contains).

लौटाता है: CallPage (200)

POST /calls आवश्यक calls:write

Click-to-call: ring a workspace user, then dial the number

Idempotency-KeyheaderRetries with the same key and body return the original response for 24 hours.

बॉडी: CallCreateलौटाता है: CallStarted (202)

GET /calls/{id} आवश्यक calls:read

Get a call with summary, disposition, transcript and a 5-minute signed recording link

idpath

लौटाता है: CallDetail (200)

GET /calls/stats आवश्यक calls:read

Call analytics (also requires the advanced analytics plan feature)

fromqueryWindow start (ISO-8601, UTC). Default: 30 days before `to`. Max window 93 days.
toqueryWindow end (ISO-8601, UTC, exclusive). Default: now.
queue_idqueryOnly calls that went through this queue.
user_idqueryOnly calls answered or made by this person.
number_idqueryOnly calls of this workspace number.
time_zonequeryIANA time zone for day and hour buckets. Default: the workspace time zone.
service_level_secondsqueryService level threshold in seconds (1-600, default 20).
abandon_after_secondsqueryHang-ups while waiting shorter than this are short abandons, not abandons (0-120, default 5).

लौटाता है: CallStats (200)

/agents

GET /agents/states आवश्यक calls:read

Current state of every workspace user (available, busy, wrap_up, away, offline)

लौटाता है: AgentStates (200)

ऑब्जेक्ट

Problem

typestring
titlestring
statusinteger
codestringStable error code.
fieldstring
detailstring
traceIdstring

Contact

idstring (uuid)
namestring
emailstring
phonestringE.164
companystring
countrystringISO 3166-1 alpha-2
citystring
external_idstring
lifecycle_stagestring
custom_fieldsobject
created_atstring (date-time)
updated_atstring (date-time)

ContactPage

dataContact[]
next_cursorstringNull when there are no more pages.

ContactUpsert

namestring
emailstring
phonestringInternational format (E.164).
companystring
countrystringISO 3166-1 alpha-2
citystring
external_idstring
custom_fieldsobject

Lead

idstring (uuid)
contact_idstring (uuid)
namestring
stagenew | contacted | qualified | proposal | won | lost
stage_idstring (uuid)
pipeline_idstring (uuid)
estimated_valuenumber
currencystring
sourcestring
owner_user_idstring (uuid)
created_atstring (date-time)
closed_atstring (date-time)

LeadPage

dataLead[]
next_cursorstringNull when there are no more pages.

LeadCreate

namestring
contact_idstring (uuid)
emailstring
phonestring
companystring
sourcestring
stagenew | contacted | qualified | proposal | won | lost
estimated_valuenumber
currencystringISO 4217
notesstring

LeadStageUpdate

stagenew | contacted | qualified | proposal | won | lost
stage_idstring (uuid)
loss_reason_idstring (uuid)
loss_notestring

EventCreate

namestringLetters, digits and _ . : - (max 80).
contact_idstring (uuid)
emailstring
phonestring
propertiesobject
occurred_atstring (date-time)
event_idstring (uuid)

EventAccepted

contact_idstring (uuid)
namestring
acceptedboolean

JourneyEnrollment

contact_idsstring (uuid)[]

JourneyEnrollmentResult

journey_idstring (uuid)
requestedinteger
enrolledinteger

ConsentCreate

contact_idstring (uuid)
channelstringwhatsapp, sms, email, voice... Empty = all channels.
purposemarketing | transactional | calls
statusgranted | revoked
occurred_atstring (date-time)
notestring

Campaign

idstring (uuid)
namestring
statusstring
channelstring
target_countinteger
created_atstring (date-time)
started_atstring (date-time)
completed_atstring (date-time)

CampaignPage

dataCampaign[]
next_cursorstringNull when there are no more pages.

Money

currencystring
amountnumber
countinteger

CampaignMetrics

campaign_idstring (uuid)
targetedinteger
sentinteger
deliveredinteger
readinteger
repliedinteger
failedinteger
skippedinteger
pendinginteger
leadsinteger
woninteger
revenueMoney
revenue_other_currenciesMoney[]

Call

idstring (uuid)
conversation_idstring (uuid)
started_atstring (date-time)
ended_atstring (date-time)
directioninbound | outbound
channelstringvoice, whatsapp or webchat
outcomeanswered | missed | abandoned | voicemail | failed | in_progress
phonestringE.164
contact_idstring (uuid)
contact_namestring
number_idstring (uuid)
queue_idstring (uuid)
queue_namestring
answered_by_user_idstring (uuid)
answered_by_namestring
ai_agent_idstring (uuid)
ai_agent_namestring
wait_secondsnumber
duration_secondsinteger
dispositionstringClosing disposition key (meeting, interested, callback, ...), when known.
disposition_labelstringThe workspace's own text for a custom disposition.
has_recordingboolean
handed_offboolean
transfersinteger

CallPage

dataCall[]
next_cursorstringNull when there are no more pages.

CallDetail

callCall
summarystring
transcriptstring
recordingRecordingLink

CallCreate

user_idstring (uuid)
tostringE.164. Optional when contact_id is given.
contact_idstring (uuid)
from_number_idstring (uuid)
devicephone | browser

CallStarted

call_idstring (uuid)
conversation_idstring (uuid)
contact_idstring (uuid)
statusstringringing_user

CallKpis

offeredinteger
answeredinteger
answered_by_personinteger
answered_by_aiinteger
handed_offinteger
missedinteger
abandonedinteger
short_abandonedinteger
voicemailsinteger
callbacks_requestedinteger
transfersinteger
answer_ratenumber
service_levelnumber
abandon_ratenumber
average_wait_secondsnumber
longest_wait_secondsnumber
average_handle_secondsnumber
average_talk_secondsnumber
handledinteger
first_contact_resolutionnumber
outbound_attemptsinteger
outbound_connectedinteger

CallDay

datestring (date)
offeredinteger
answeredinteger
missedinteger
abandonedinteger
outboundinteger

CallBreakdown

idstring (uuid)
namestring
callsinteger
answeredinteger
missedinteger
abandonedinteger
service_levelnumber
average_wait_secondsnumber
average_handle_secondsnumber
available_secondsnumber
outboundinteger

CallStats

fromstring (date-time)
tostring (date-time)
time_zonestring
service_level_secondsinteger
abandon_after_secondsinteger
kpisCallKpis
by_dayCallDay[]
by_hourinteger[]24 values: inbound calls per local hour.
by_queueCallBreakdown[]
by_agentCallBreakdown[]
by_numberCallBreakdown[]
by_ai_agentCallBreakdown[]
truncatedboolean

AgentState

user_idstring (uuid)
namestring
stateavailable | busy | wrap_up | away | offline
reasonstringbreak, lunch, meeting, training or do_not_disturb (away only)
sincestring (date-time)
active_callsinteger
wrap_up_untilstring (date-time)

AgentStates

dataAgentState[]

आपकी अगली बिक्री आज रात शुरू हो सकती है।

कुछ ही मिनटों में WhatsApp जोड़ें, टेम्पलेट से अपना पहला एआई एजेंट बनाएँ और चालू करने से पहले उसे टेस्ट करें।

  • मुफ़्त प्लान, कोई समय सीमा नहीं
  • क्रेडिट कार्ड की आवश्यकता नहीं
  • कभी भी रद्द करें
  1. 1अपना WhatsApp जोड़ें
  2. 2अपना एआई एजेंट बनाएँ
  3. 3टेस्ट करें और चालू करें