RelayPointdocs

API reference

Every /v1 endpoint, generated from the same schemas the API validates with. Descriptions are in English.

Base URL: https://api.relaypoints.onlineOpenAPI 3.1 (JSON)

Authentication

Send your API key as a bearer token. Live keys (rp_live_…) make real, charged calls; test keys (rp_test_…) return sample outputs and are never charged.

Headers

Authorization: Bearer rp_live_…Your API key.
RelayPoint-Account: org_…Resellers: act for one of your sub-accounts.
Idempotency-Key: …Retry POST requests safely; never charged twice.

Scopes

A key with “*” can use every scope except the two connection scopes below, which must be granted by name on a live key.

chatembeddingsimagesjobsaudiousagebillingsub_accountsconnectionswebhooksconnections:credentials · granted by name onlyconnections:request · granted by name onlysocialdrivewhatsapp

Errors

Every error is JSON with error.code, error.message and error.request_id. The HTTP status depends on the code:

CodeStatus
invalid_request400
invalid_json400
unknown_product400
upstream_rejected400
consent_required400
content_rejected400
video_too_long400
provider_unavailable400
opt_in_required400
unauthorized401
invalid_api_key401
insufficient_balance402
spend_cap_reached402
insufficient_provider_credit402
package_required402
forbidden403
feature_disabled403
ip_not_allowed403
domain_not_allowed403
missing_scope403
account_suspended403
kyc_required403
byok_required403
not_found404
method_not_allowed405
conflict409
idempotency_conflict409
idempotency_mismatch422
validation_failed422
window_closed409
daily_limit_reached429
payload_too_large413
byok_key_invalid424
unsupported_media_type415
rate_limited429
internal_error500
upstream_unavailable503
upstream_timeout504

AI

Chat, embeddings, images and audio, billed per unit from the AI Credits wallet.

POST/v1/chat/completions

Create a chat completion

Scope: chat

OpenAI-compatible chat. model is a RelayPoint product id (GET /v1/models). Without max_tokens the product's default_max_tokens applies, and the hold placed while the call runs covers the prompt plus that many output tokens; the call is then charged at its real token count. Set stream: true for server-sent events (data: {chunk} lines, the last chunk carries usage, then data: [DONE]).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modelRequiredstringRelayPoint product id, e.g. rp/text-pro1–100 chars
messagesRequiredobject[]1–1000 items
messages[].roleRequired"system" | "developer" | "user" | "assistant" | "tool"
messages[].contentRequiredstring | object[] | null
messages[].nameoptionalstring0–64 chars
messages[].tool_call_idoptionalstringrole tool: the id of the tool call this message answers0–100 chars
messages[].tool_callsoptionalToolCall[]role assistant: the tool calls of an earlier answer, sent back as they came0–128 items
max_tokensoptionalinteger1–32768
max_completion_tokensoptionalinteger1–32768
temperatureoptionalnumber0–2
top_poptionalnumber0–1
stopoptionalstring | string[]
seedoptionalinteger-9007199254740991–9007199254740991
streamoptionalboolean
response_formatoptionalobject
toolsoptionalToolDefinition[]Functions the model may call. Not supported with stream: true.0–128 items
tool_choiceoptional"auto" | "none" | "required" | objectDefault auto when tools are sent
parallel_tool_callsoptionalbooleanfalse asks for at most one tool call per answer
provideroptional"relaypoint" | "anthropic" | "openai"Text products: who serves this request. relaypoint = RelayPoint open models (prepaid credits); anthropic / openai = your own key (only the platform fee is charged). Default: your routing preference.
useroptionalstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/chat/completions \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"rp/text-pro","messages":[{"role":"user","content":"Write a two-line welcome message for a property listing site."}],"max_tokens":200}'

Responses

200 The completionChatCompletion

With stream: true, server-sent events of ChatCompletionChunk

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"chat.completion"
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
modelRequiredstringThe RelayPoint product id you asked for
choicesRequiredobject[]
choices[].indexRequiredinteger-9007199254740991–9007199254740991
choices[].messageRequiredobject
choices[].finish_reasonRequired"stop" | "length" | "tool_calls"
usageRequiredChatUsage

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 upstream_rejected
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
  • 504 upstream_timeout
POST/v1/embeddings

Create embeddings

Scope: embeddings

Vectors for one text or up to 2,048 texts. Identical inputs are served from cache when the product allows it (charged, marked cached in usage).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modeloptionalstring1–100 chars · default "rp/embed"
inputRequiredstring | string[]
encoding_formatoptional"float" | "base64"default "float"
useroptionalstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/embeddings \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"rp/embed","input":["3-bedroom house with a garden","Studio flat near the station"]}'

Responses

200 The vectors, in input orderEmbeddingList

Response fields
FieldTypeDescription
objectRequired"list"
modelRequiredstring
dataRequiredobject[]
data[].objectRequired"embedding"
data[].indexRequiredinteger-9007199254740991–9007199254740991
data[].embeddingRequirednumber[] | string
usageRequiredobject
usage.prompt_tokensRequiredinteger-9007199254740991–9007199254740991
usage.total_tokensRequiredinteger-9007199254740991–9007199254740991
usage.cost_usdRequiredstringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
  • 504 upstream_timeout
POST/v1/images

Generate images

Scope: images

Generates 1–4 images. With response_format: url (default) each image is stored for you and returned as a signed URL with its expiry.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modeloptionalstring1–100 chars · default "rp/image"
promptRequiredstring1–4000 chars
noptionalinteger1–4 · default 1
sizeoptional"256x256" | "512x512" | "768x768" | "1024x1024" | "1024x1792" | "1792x1024"default "1024x1024"
response_formatoptional"url" | "b64_json"default "url"
useroptionalstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/images \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"rp/image","prompt":"Bright modern kitchen, morning light, real-estate photo","size":"1024x1024"}'

Responses

200 The imagesImageResponse

Response fields
FieldTypeDescription
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
modelRequiredstring
dataRequiredobject[]
data[].urloptionalstring
data[].file_idoptionalstring
data[].expires_atoptionalintegerUnix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonoptionalstring
usageRequiredobject
usage.imagesRequiredinteger-9007199254740991–9007199254740991
usage.cost_usdRequiredstringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 upstream_rejected
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
  • 504 upstream_timeout
POST/v1/images/generations

Generate images (OpenAI path)

Scope: images

Same as POST /v1/images, at the path OpenAI clients use.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modeloptionalstring1–100 chars · default "rp/image"
promptRequiredstring1–4000 chars
noptionalinteger1–4 · default 1
sizeoptional"256x256" | "512x512" | "768x768" | "1024x1024" | "1024x1792" | "1792x1024"default "1024x1024"
response_formatoptional"url" | "b64_json"default "url"
useroptionalstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/images/generations \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"rp/image","prompt":"Logo for a coffee shop, flat style"}'

Responses

200 The imagesImageResponse

Response fields
FieldTypeDescription
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
modelRequiredstring
dataRequiredobject[]
data[].urloptionalstring
data[].file_idoptionalstring
data[].expires_atoptionalintegerUnix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonoptionalstring
usageRequiredobject
usage.imagesRequiredinteger-9007199254740991–9007199254740991
usage.cost_usdRequiredstringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 upstream_rejected
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
  • 504 upstream_timeout
POST/v1/audio/speech

Text to speech

Scope: audio

Returns the audio file itself (MP3 or WAV), charged per character. For calls, send stream: true: the audio arrives as it is voiced (first sentence first) as pcm (16-bit LE, 24 kHz mono, the default for streams), wav (streaming header) or mulaw (8 kHz G.711, for telephony), charged on the characters voiced (fewer if you stop reading early). voice is one of the product's voices (voices in GET /v1/models; default or an OpenAI voice name also work); the voice used is in the X-RelayPoint-Voice header. input is up to 20,000 characters, voiced sentence by sentence into one file (billed once on the characters); RelayPoint-Audio-Seconds gives the WAV length and timings: true returns JSON with audio_base64 and sentence timings. For longer texts use a job with rp/tts (up to 100,000 characters). Premium voices on your own ElevenLabs key: model: "rp/tts-pro" (or provider: "elevenlabs") with the SpeechProRequest fields (voice is an ElevenLabs voice id, up to 10,000 characters); only the platform fee is charged and the response carries RelayPoint-Billing-Mode: byok, RelayPoint-Platform-Fee-Usd and RelayPoint-Ai-Generated: true. Without a key: byok_required. When ElevenLabs is down and fallback is on, rp/tts answers with RelayPoint-Fallback-From: rp/tts-pro.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modeloptionalstring1–100 chars · default "rp/tts"
inputoptionalstring1–20000 chars
segmentsoptionalobject[]1–200 items
segments[].textRequiredstring1–4000 chars
segments[].emotionoptionalenumneutral, warm, cheerful, excited, calm, empathetic, apologetic, serious, confident, reassuring, sad
segments[].paceoptional"slow" | "relaxed" | "normal" | "brisk" | "fast"
segments[].energyoptional"low" | "normal" | "high"
styleoptionalobject
style.emotionoptionalenumneutral, warm, cheerful, excited, calm, empathetic, apologetic, serious, confident, reassuring, sad
style.paceoptional"slow" | "relaxed" | "normal" | "brisk" | "fast"
style.energyoptional"low" | "normal" | "high"
normalizeoptionalboolean
languageoptionalstring
voiceoptionalstring1–64 chars · default "default"
response_formatoptional"wav" | "mp3" | "pcm" | "mulaw"default "mp3"
streamoptionalboolean
timingsoptionalboolean
pronunciationsoptionalobject[]0–200 items
pronunciations[].textRequiredstring1–100 chars
pronunciations[].sayRequiredstring1–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/audio/speech \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"rp/tts","input":"Your viewing is confirmed for Saturday at ten.","voice":"camille","response_format":"mp3"}' \
  --output speech.mp3

Responses

200 The audio

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 upstream_rejected
  • 400 content_rejected
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 402 insufficient_provider_credit
  • 403 byok_required
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 424 byok_key_invalid
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
  • 504 upstream_timeout
POST/v1/audio/transcriptions

Speech to text

Scope: audio

Multipart upload (field file, up to 25 MB), charged per second of audio. response_format=text returns plain text. rp/stt-pro runs on your own ElevenLabs key (Scribe): diarize=true (and optionally num_speakers) labels who speaks in words[].speaker; only the platform fee is charged.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modeloptionalstring1–100 chars · default "rp/stt"
languageoptionalstring2–12 chars
response_formatoptional"json" | "text" | "verbose_json"default "json"
diarizeoptional"true" | "false"
num_speakersoptionalinteger1–32
fileRequiredstringThe audio file (multipart file field), up to 25 MBbinary

Examples

curl -X POST https://api.relaypoints.online/v1/audio/transcriptions \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -F file=@call.mp3 \
  -F model=rp/stt \
  -F language=en

Responses

200 The transcriptTranscription

Response fields
FieldTypeDescription
textRequiredstring
languageoptionalstring | nullverbose_json only
durationoptionalnumberverbose_json only: seconds
modeloptionalstringverbose_json only
wordsoptionalobject[]rp/stt-pro with verbose_json or diarize=true: words with timings and speaker labels
words[].textRequiredstring
words[].startRequirednumber
words[].endRequirednumber
words[].speakerRequiredstring | null
fallback_fromoptionalstringSet when the provider was unavailable and the house product answered (fallback is opt-in)
usageRequiredobject
usage.secondsRequirednumber
usage.cost_usdRequiredstringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
usage.billing_modeoptional"byok"
usage.provideroptionalstring
usage.platform_fee_usdoptionalstring
usage.list_equivalent_cost_usdoptionalstring

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 402 insufficient_provider_credit
  • 403 byok_required
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 413 payload_too_large
  • 415 unsupported_media_type
  • 422 idempotency_mismatch
  • 424 byok_key_invalid
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
  • 504 upstream_timeout
GET/v1/voice_clones/consent_statement

Get the consent statement for a voice clone

Scope: audio

The sentence the voice owner reads aloud (word for word, 2–30 s) before their voice can be cloned with rp/voice-clone. ?language= en-US (default), en-GB, en-AU, en-IN or en-ZA.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/voice_clones/consent_statement \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The statementConsentStatement

Response fields
FieldTypeDescription
objectRequired"consent_statement"
languageRequiredstring
textRequiredstring
instructionsRequiredstring
languagesRequiredstring[]

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/voice_clones

List your cloned voices

Scope: audio

Voices cloned on this account with POST /v1/jobs (model rp/voice-clone). Use id (vc_…) as voice on rp/tts. Clones are never shared with sub-accounts or a reseller.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/voice_clones \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 Your clonesVoiceCloneList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredVoiceClone[]
has_moreRequiredboolean

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/voice_clones/{id}

Retrieve a cloned voice

Scope: audio

One of your cloned voices.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/voice_clones/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The cloneVoiceClone

Response fields
FieldTypeDescription
idRequiredstringvc_…: use it as `voice` on rp/tts
objectRequired"voice_clone"
nameRequiredstring
languageRequiredstring
statusRequired"ready" | "deleted"
sample_secondsRequiredinteger-9007199254740991–9007199254740991
consentRequiredobject
consent.attestedRequiredbooleanThe consent checkbox was ticked
consent.textRequiredstring | nullThe checkbox wording
consent.atRequiredinteger | null
consent.recordingRequiredbooleanThe owner's spoken consent recording is kept as evidence
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
deletedRequiredinteger | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
DELETE/v1/voice_clones/{id}

Delete a cloned voice

Scope: audio

Deletes the voice at the supplier and here; it can no longer be used. The consent record and recording are kept as evidence.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X DELETE https://api.relaypoints.online/v1/voice_clones/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The deleted cloneVoiceClone

Response fields
FieldTypeDescription
idRequiredstringvc_…: use it as `voice` on rp/tts
objectRequired"voice_clone"
nameRequiredstring
languageRequiredstring
statusRequired"ready" | "deleted"
sample_secondsRequiredinteger-9007199254740991–9007199254740991
consentRequiredobject
consent.attestedRequiredbooleanThe consent checkbox was ticked
consent.textRequiredstring | nullThe checkbox wording
consent.atRequiredinteger | null
consent.recordingRequiredbooleanThe owner's spoken consent recording is kept as evidence
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
deletedRequiredinteger | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
POST/v1/voice_live/sessions

Start a real-time voice call

Scope: audio

Configures a two-way voice call with rp/voice-live and returns a one-time client_secret and the WebSocket to join it within 60 s: url (browsers and apps) or stream_url (Twilio-style media streams, which drop query strings). Caller audio goes in as binary frames (pcm16: 16-bit 16 kHz mono; mulaw: 8 kHz G.711, the default for transport: "twilio"); the assistant's voice comes back in the same format while it is still answering. JSON events: session.started, input.speech_started / input.speech_stopped, response.started (with latency_ms), output_audio.clear (barge-in: drop buffered audio), transcript, tool.call (answer with {"type":"tool.result","call_id","output"} or let tool_webhook_url answer), handover, session.warning, session.ending, session.ended. Built-in tools: save_lead, book_meeting, hand_over. voice may be one of your cloned voices (vc_…). Limits: max_duration_seconds (10–7200, a hard limit: the assistant says goodbye, then time_limit; the lower of it and max_minutes applies) and silence_timeout_seconds (default 30, 0 = never: no caller speech for that long, counted after the assistant stops talking → goodbye, then silence_timeout). Hang up with {"type":"session.end"} (Twilio streams: stop): the call ends at once with client_ended and billing stops at that second; work still in flight is not charged. The options with their limits and defaults are also in GET /v1/catalog → the rp/voice-live product's session_options. Billed per second of call ($0.05 per minute at list price) plus the speech-to-text, model and speech it uses; when credit runs out the assistant says goodbye and the call ends (credit_exhausted).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modeloptional"rp/voice-live"default "rp/voice-live"
instructionsoptionalstring0–16000 chars · default "You are a friendly, helpful assistant."
voiceoptionalstring0–64 chars · default "default"
languageoptionalstring
toolsoptional"save_lead" | "book_meeting" | "hand_over" | object[]0–16 items · default []
audio_formatoptional"pcm16" | "mulaw"
transportoptional"websocket" | "twilio"default "websocket"
max_minutesoptionalinteger1–120 · default 30
max_duration_secondsoptionalinteger10–7200
silence_timeout_secondsoptionalinteger0–600 · default 30
end_of_turn_msoptionalinteger200–2000 · default 450
end_of_turnoptionalobject
end_of_turn.modeoptional"semantic" | "silence"default "semantic"
end_of_turn.min_msoptionalinteger150–1000 · default 250
end_of_turn.max_msoptionalinteger500–3000 · default 1400
fillersoptionalboolean
backchannelsoptionalboolean
affective_dialogoptionalbooleandefault true
proactive_audiooptionalbooleandefault true
normalizeoptionalbooleandefault true
phone_bandoptional"auto" | booleandefault "auto"
greetingoptionalstring0–500 chars
tool_webhook_urloptionalstring0–2000 chars
metadataoptionalmap<string, string>

Examples

curl -X POST https://api.relaypoints.online/v1/voice_live/sessions \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"instructions":"You answer calls for Sea Point Realty. Find out what the caller wants and book viewings.","voice":"zanele","language":"en-ZA","tools":["save_lead","book_meeting","hand_over"],"max_minutes":15,"max_duration_seconds":600,"silence_timeout_seconds":20,"greeting":"Good morning, Sea Point Realty, how can I help?"}'

Responses

201 The session and how to join itVoiceLiveSessionCreated

Response fields
FieldTypeDescription
objectRequired"voice_live.session"
idRequiredstring
modelRequired"rp/voice-live"
statusRequired"created" | "active" | "ended"
voiceRequiredstring
languageRequiredstring
transportRequired"websocket" | "twilio"
audio_formatRequired"pcm16" | "mulaw"
sample_rateRequiredinteger-9007199254740991–9007199254740991
max_minutesRequiredinteger-9007199254740991–9007199254740991
max_duration_secondsRequiredintegerThe call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsRequiredintegerSeconds without caller speech before the call ends (0 = never)-9007199254740991–9007199254740991
toolsRequiredstring[]
metadataRequiredmap<string, string>
engineRequired"native" | "cascade" | nullnative: speech-to-speech; cascade: speech-to-text, model, text-to-speech
expires_atRequiredstringJoin before this time (60 s after creation)
started_atRequiredstring | null
ended_atRequiredstring | null
end_reasonRequiredstring | nullcaller_hangup, client_ended (session.end), credit_exhausted, time_limit, silence_timeout, handover, idle, upstream_unavailable, server_shutdown
secondsRequiredinteger-9007199254740991–9007199254740991
turnsRequiredinteger-9007199254740991–9007199254740991
avg_latency_msRequiredinteger | nullAverage time from the caller stopping to the first audio of the answer
cost_usdRequiredstringUS dollars as a decimal string with 6 decimals
usageRequiredmap<string, object>
created_atRequiredstring
client_secretRequiredstringOne-time secret to join the call (within 60 s). Keep it out of logs.
urlRequiredstringwss:// URL to join from a browser or app (secret in the query string)
stream_urlRequiredstringwss:// URL with the secret in the path, for Twilio-style media streams
webhook_secretoptionalstringSigns tool-call webhooks (RelayPoint-Signature), when tool_webhook_url is set

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/voice_live/sessions

List voice calls

Scope: audio

This account's calls, newest first: duration, turns, average answer latency, cost and usage per product, and why each ended.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/voice_live/sessions \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 CallsVoiceLiveSessionList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredVoiceLiveSession[]
has_moreRequiredboolean

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/voice_live/sessions/{id}

Retrieve a voice call

Scope: audio

One call of this account.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/voice_live/sessions/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The callVoiceLiveSession

Response fields
FieldTypeDescription
objectRequired"voice_live.session"
idRequiredstring
modelRequired"rp/voice-live"
statusRequired"created" | "active" | "ended"
voiceRequiredstring
languageRequiredstring
transportRequired"websocket" | "twilio"
audio_formatRequired"pcm16" | "mulaw"
sample_rateRequiredinteger-9007199254740991–9007199254740991
max_minutesRequiredinteger-9007199254740991–9007199254740991
max_duration_secondsRequiredintegerThe call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsRequiredintegerSeconds without caller speech before the call ends (0 = never)-9007199254740991–9007199254740991
toolsRequiredstring[]
metadataRequiredmap<string, string>
engineRequired"native" | "cascade" | nullnative: speech-to-speech; cascade: speech-to-text, model, text-to-speech
expires_atRequiredstringJoin before this time (60 s after creation)
started_atRequiredstring | null
ended_atRequiredstring | null
end_reasonRequiredstring | nullcaller_hangup, client_ended (session.end), credit_exhausted, time_limit, silence_timeout, handover, idle, upstream_unavailable, server_shutdown
secondsRequiredinteger-9007199254740991–9007199254740991
turnsRequiredinteger-9007199254740991–9007199254740991
avg_latency_msRequiredinteger | nullAverage time from the caller stopping to the first audio of the answer
cost_usdRequiredstringUS dollars as a decimal string with 6 decimals
usageRequiredmap<string, object>
created_atRequiredstring

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
GET/v1/byok/elevenlabs/voices

List ElevenLabs voices

Scope: audio

The voices of your ElevenLabs account, for rp/tts-pro. Cached for 10 minutes. On a key shared by your reseller, only premade voices are listed.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/byok/elevenlabs/voices \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 VoicesElevenLabsVoices

Response fields
FieldTypeDescription
objectRequired"list"
providerRequired"elevenlabs"
shared_keyRequiredboolean
dataRequiredobject[]
data[].idRequiredstring
data[].nameRequiredstring
data[].categoryRequiredstringpremade, cloned, generated, professional
data[].labelsRequiredmap<string, string>
data[].preview_urlRequiredstring | null
cached_for_secondsRequiredinteger-9007199254740991–9007199254740991

Possible errors

  • 401 invalid_api_key
  • 403 byok_required
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 424 byok_key_invalid
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable

Jobs

Asynchronous GPU and document work (video, avatars, long text to speech, OCR). Poll or receive job.completed / job.failed webhooks.

POST/v1/jobs

Start a job

Scope: jobs

Queues asynchronous work. input depends on the product (see the JobInput schemas): every input has an upper bound (resolution, max_duration_seconds, duration_seconds, max_pages) so the hold placed now covers the worst case; the job is charged at its real units when it finishes and the rest of the hold is released. Video is charged per second of output video (unit video_second). OCR takes output_format (text, markdown_tables, json_tables). progress (0–100) moves while the job runs. Outputs are kept for 30 days. Premium media on your own key — rp/video-avatar-pro and rp/video-translate (HeyGen), rp/tts-pro and rp/voice-clone-pro (ElevenLabs) — charge only the platform fee. rp/voice-clone clones a voice on RelayPoint itself: name, sample_url (10 s – 3 min of the owner speaking), consent_audio_url (the owner reading GET /v1/voice_clones/consent_statement), consent; the result's voice_id (vc_…) is a voice for rp/tts on your account only; public figures are refused (content_rejected), a consent recording that doesn't match is consent_required (usage.billing_mode: byok, platform_fee_usd, list_equivalent_cost_usd); voice clones and your own avatars need consent (subject_name, attested_by, method), else consent_required. Generated media has ai_generated: true.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modelRequiredstring1–100 chars
inputRequiredmap<string, any>Product-specific input: rp/video-avatar → JobInput_rp_video_avatar, rp/video-gen → JobInput_rp_video_gen, rp/tts → JobInput_rp_tts, rp/voice-clone → JobInput_rp_voice_clone, rp/tts-standard → JobInput_rp_tts_standard, rp/image-pro → JobInput_rp_image_pro, rp/video-pro → JobInput_rp_video_pro, rp/video-avatar-pro-house → JobInput_rp_video_avatar_pro_house, rp/music → JobInput_rp_music, rp/tts-premium → JobInput_rp_tts_premium, rp/ocr → JobInput_rp_ocr, rp/video-avatar-pro → JobInput_rp_video_avatar_pro, rp/video-translate → JobInput_rp_video_translate, rp/tts-pro → JobInput_rp_tts_pro, rp/voice-clone-pro → JobInput_rp_voice_clone_pro.
metadataoptionalmap<string, string>

Examples

curl -X POST https://api.relaypoints.online/v1/jobs \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"rp/video-avatar","input":{"image_url":"https://example.com/agent.jpg","text":"Welcome to 12 Oak Street.","resolution":"720p","max_duration_seconds":30},"metadata":{"listing":"L-2041"}}'

Responses

202 The queued jobJob

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"job"
modelRequiredstring
statusRequired"queued" | "running" | "succeeded" | "failed" | "expired"
progressRequiredinteger0–100, updated by the worker while the job runs; 100 when it succeeded0–100
accountRequiredstring
metadataRequiredmap<string, string> | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
startedRequiredinteger | null
completedRequiredinteger | null
outputsRequiredobject[]
outputs[].file_idRequiredstring
outputs[].nameRequiredstring
outputs[].content_typeRequiredstring
outputs[].sizeRequiredinteger | null
outputs[].urlRequiredstring | nullSigned download URL while outputs are kept
outputs_expire_atRequiredinteger | null
resultRequiredany | nullProduct-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorRequiredobject | null
usageRequiredobject | null
billing_modeoptional"credits" | "byok"
provideroptionalstring
fallback_fromoptionalstringSet when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedoptionalbooleantrue for generated media: label it as AI-generated where the law requires

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 consent_required
  • 400 content_rejected
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 byok_required
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/jobs

List jobs

Scope: jobs

Newest first, for the key's mode (live or test).

Parameters

FieldTypeDescription
limit (query)optionalinteger1–100 · default 20
starting_after (query)optionalstring0–100 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/jobs?limit=20 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 A page of jobsJobList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredJob[]
has_moreRequiredboolean

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/jobs/{id}

Get a job

Scope: jobs

Status, outputs (signed URLs while kept), result and the final cost.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/jobs/job_5Tq9mW2rXa7 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The jobJob

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"job"
modelRequiredstring
statusRequired"queued" | "running" | "succeeded" | "failed" | "expired"
progressRequiredinteger0–100, updated by the worker while the job runs; 100 when it succeeded0–100
accountRequiredstring
metadataRequiredmap<string, string> | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
startedRequiredinteger | null
completedRequiredinteger | null
outputsRequiredobject[]
outputs[].file_idRequiredstring
outputs[].nameRequiredstring
outputs[].content_typeRequiredstring
outputs[].sizeRequiredinteger | null
outputs[].urlRequiredstring | nullSigned download URL while outputs are kept
outputs_expire_atRequiredinteger | null
resultRequiredany | nullProduct-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorRequiredobject | null
usageRequiredobject | null
billing_modeoptional"credits" | "byok"
provideroptionalstring
fallback_fromoptionalstringSet when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedoptionalbooleantrue for generated media: label it as AI-generated where the law requires

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
GET/v1/byok/heygen/assets

List HeyGen avatars and voices

Scope: jobs

The avatars and voices of your HeyGen account (your own avatars have owned: true), for rp/video-avatar-pro. Cached for 10 minutes. On a key shared by your reseller, only stock avatars and voices are listed.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/byok/heygen/assets \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 Avatars and voicesHeyGenAssets

Response fields
FieldTypeDescription
objectRequired"heygen_assets"
providerRequired"heygen"
shared_keyRequiredbooleantrue: your reseller's key (stock avatars and voices only)
avatarsRequiredobject[]
avatars[].idRequiredstring
avatars[].nameRequiredstring
avatars[].typeRequiredstring
avatars[].preview_image_urlRequiredstring | null
avatars[].preview_video_urlRequiredstring | null
avatars[].default_voice_idRequiredstring | null
avatars[].ownedRequiredbooleanYour own avatar (consent needed)
voicesRequiredobject[]
voices[].idRequiredstring
voices[].nameRequiredstring
voices[].languageRequiredstring
voices[].genderRequiredstring
voices[].preview_audio_urlRequiredstring | null
voices[].ownedRequiredboolean
cached_for_secondsRequiredinteger-9007199254740991–9007199254740991

Possible errors

  • 401 invalid_api_key
  • 403 byok_required
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 424 byok_key_invalid
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable

Video avatar

Talking-presenter videos: characters (generated, trained with consent, or stock), voices, scripts, plan, estimate and render. Every video is labelled AI-generated.

POST/v1/characters

Create a character

Scope: jobs

Generates an original AI presenter from a text description: a portrait and a presenter reference image with a fixed seed, reused by every video of the character so the identity stays the same. Asynchronous: the character is pending until ready (poll GET /v1/characters/{id}). Billed per character (rp/character); nothing is charged if it fails. Descriptions of real or famous people are refused.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
nameRequiredstring1–80 chars
descriptionRequiredstring3–800 chars
clothingoptionalstring0–300 chars · default ""
styleoptional"realistic" | "studio" | "cinematic" | "illustrated"default "realistic"
backgroundoptionalstring0–300 chars · default ""
genderoptional"female" | "male"
voice_idoptionalstring0–64 chars

Examples

curl -X POST https://api.relaypoints.online/v1/characters \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Amara","description":"Friendly woman in her thirties with short natural hair, warm smile","clothing":"navy blazer over a white shirt","style":"studio","background":"bright modern office","gender":"female","voice_id":"aria"}'

Responses

202 The pending characterCharacter

Response fields
FieldTypeDescription
idRequiredstringchr_…
objectRequired"character"
stockRequiredbooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindRequired"generated" | "trained" | "stock"
statusRequired"pending" | "ready" | "failed" | "disabled"
nameRequiredstring
descriptionRequiredstring
clothingRequiredstring
styleRequiredstring
backgroundRequiredstring | null
genderRequiredstring | null
age_bandRequiredstring | null
ethnicityRequiredstring | null
roleRequiredstring | null
tagsRequiredstring[]
voice_idRequiredstring | nullDefault voice for this character (GET /v1/voices)
parent_idRequiredstring | nullVariants: the character they were made from (same identity and seed)
referenceRequiredobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksoptionalanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedoptionaltrue
job_idRequiredstring | null
errorRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 content_rejected
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/characters

List characters

Scope: jobs

Your own characters plus the ready stock presenters, newest first. Filter by age, gender, ethnicity, style, q (name or tags) and stock. A sub-account sees its own characters and the stock library, never another account's.

Parameters

FieldTypeDescription
age (query)optional"18-29" | "30-44" | "45-59" | "60+"
gender (query)optional"female" | "male"
ethnicity (query)optionalstring0–40 chars
style (query)optionalstring0–40 chars
q (query)optionalstring0–80 chars
stock (query)optional"true" | "false"
limit (query)optionalinteger1–100 · default 50
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/characters?gender=female&stock=true \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 CharactersCharacterList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredCharacter[]

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/characters/{id}

Get a character

Scope: jobs

Status and, once ready, signed URLs of the reference images (valid 1 hour).

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/characters/chr_4Lp8sV2nQe1 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The characterCharacter

Response fields
FieldTypeDescription
idRequiredstringchr_…
objectRequired"character"
stockRequiredbooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindRequired"generated" | "trained" | "stock"
statusRequired"pending" | "ready" | "failed" | "disabled"
nameRequiredstring
descriptionRequiredstring
clothingRequiredstring
styleRequiredstring
backgroundRequiredstring | null
genderRequiredstring | null
age_bandRequiredstring | null
ethnicityRequiredstring | null
roleRequiredstring | null
tagsRequiredstring[]
voice_idRequiredstring | nullDefault voice for this character (GET /v1/voices)
parent_idRequiredstring | nullVariants: the character they were made from (same identity and seed)
referenceRequiredobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksoptionalanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedoptionaltrue
job_idRequiredstring | null
errorRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
DELETE/v1/characters/{id}

Delete a character

Scope: jobs

Deletes one of your characters and its stored images (and the photos and consent record of a trained character); a character still being made is stopped. Stock presenters can't be deleted.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X DELETE https://api.relaypoints.online/v1/characters/chr_4Lp8sV2nQe1 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 DeletedDeleted

Response fields
FieldTypeDescription
idRequiredstring
objectRequiredstring
deletedRequiredtrue

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
POST/v1/characters/{id}/variants

New outfit or background

Scope: jobs

A new character with the same identity and seed as {id}, edited from its reference images to a new clothing and/or background. Billed like a character.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
clothingoptionalstring0–300 chars
backgroundoptionalstring0–300 chars

Examples

curl -X POST https://api.relaypoints.online/v1/characters/chr_4Lp8sV2nQe1/variants \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clothing":"green kitenge dress","background":"outdoor market at golden hour"}'

Responses

202 The pending variantCharacter

Response fields
FieldTypeDescription
idRequiredstringchr_…
objectRequired"character"
stockRequiredbooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindRequired"generated" | "trained" | "stock"
statusRequired"pending" | "ready" | "failed" | "disabled"
nameRequiredstring
descriptionRequiredstring
clothingRequiredstring
styleRequiredstring
backgroundRequiredstring | null
genderRequiredstring | null
age_bandRequiredstring | null
ethnicityRequiredstring | null
roleRequiredstring | null
tagsRequiredstring[]
voice_idRequiredstring | nullDefault voice for this character (GET /v1/voices)
parent_idRequiredstring | nullVariants: the character they were made from (same identity and seed)
referenceRequiredobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksoptionalanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedoptionaltrue
job_idRequiredstring | null
errorRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
POST/v1/characters/train

Train a character from photos

Scope: jobs

A character from 3–10 photos of a real adult who has consented. Multipart: photos[] (JPEG/PNG/WebP, each under 15 MB), name, gender, optional age, role, voice_id, and consent: a JSON string { "attestation": true, "subject_name", "user_id"?, "text"? } confirming the person agreed (stored with the time, IP and key). Every photo is checked; minors (or anyone who may look under 21), public figures and unclear photos are refused before anything is charged. Billed per training (rp/character-train).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
nameRequiredstring1–80 chars
genderRequired"female" | "male"
ageoptionalinteger1–120
roleoptionalstring0–120 chars
voice_idoptionalstring0–64 chars
consentRequiredstring2–4000 chars
photos[]Requiredstring[]3–10 photos (multipart file fields)3–10 items

Examples

curl -X POST https://api.relaypoints.online/v1/characters/train \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -F photos[]=@photo1.jpg \
  -F photos[]=@photo2.jpg \
  -F photos[]=@photo3.jpg \
  -F name=Joseph \
  -F gender=male \
  -F role=Sales manager \
  -F consent={"attestation":true,"subject_name":"Joseph K."}

Responses

202 The pending characterCharacter

Response fields
FieldTypeDescription
idRequiredstringchr_…
objectRequired"character"
stockRequiredbooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindRequired"generated" | "trained" | "stock"
statusRequired"pending" | "ready" | "failed" | "disabled"
nameRequiredstring
descriptionRequiredstring
clothingRequiredstring
styleRequiredstring
backgroundRequiredstring | null
genderRequiredstring | null
age_bandRequiredstring | null
ethnicityRequiredstring | null
roleRequiredstring | null
tagsRequiredstring[]
voice_idRequiredstring | nullDefault voice for this character (GET /v1/voices)
parent_idRequiredstring | nullVariants: the character they were made from (same identity and seed)
referenceRequiredobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksoptionalanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedoptionaltrue
job_idRequiredstring | null
errorRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 consent_required
  • 400 content_rejected
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 413 payload_too_large
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/voices

List voices

Scope: audio

Every voice for avatar videos and rp/tts, with language, gender, accent and a short preview, plus the languages that have no licensed voice yet (upload your own audio_url for those).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/voices \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 VoicesVoiceList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredobject[]
data[].idRequiredstring
data[].objectRequired"voice"
data[].nameRequiredstring
data[].languageRequiredstringBCP 47, e.g. sw-KE
data[].genderRequired"female" | "male"
data[].accentRequiredstring | null
data[].engineRequired"kokoro" | "chatterbox" | "ultra"
data[].defaultRequiredboolean
data[].preview_urlRequiredstring | nullA short sample (signed URL, 1 hour), or null until generated
data[].productsRequiredstring[]
data[].availableRequiredbooleanA route can speak it right now on rp/tts
data[].tiersRequiredobjectSpoken now by rp/tts (ultra) / rp/tts-standard (standard)
languages_without_voiceRequiredobject[]
languages_without_voice[].languageRequiredstring
languages_without_voice[].nameRequiredstring
languages_without_voice[].noteRequiredstring

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
POST/v1/scripts/generate

Write a script

Scope: chat

A spoken script for a presenter from a short brief, sized to length_seconds in language, with its speaking time. Billed as rp/text-pro tokens.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
promptRequiredstring3–4000 chars
styleoptionalenumauto, advertisement, informative, storytelling, tutorial, sales, announcement · default "auto"
length_secondsoptionalinteger5–600 · default 30
languageoptionalstring2–12 chars · default "en"

Examples

curl -X POST https://api.relaypoints.online/v1/scripts/generate \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"30-second advert for a savings account with no fees","style":"advertisement","length_seconds":30,"language":"fr"}'

Responses

200 The scriptScript

Response fields
FieldTypeDescription
objectRequired"script"
scriptRequiredstring
languageRequiredstring
styleRequiredstring
estimated_secondsRequiredintegerSpeaking time of the script-9007199254740991–9007199254740991
usageRequiredobject
usage.tokensRequiredinteger-9007199254740991–9007199254740991
usage.cost_usdRequiredstringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
POST/v1/video/avatar/plan

Plan scenes

Scope: jobs

Splits a script into timed scenes with layouts; in character_visuals mode each scene also gets a visual prompt (billed as rp/text-fast tokens). Edit the scenes and send them back as scenes when rendering.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
scriptRequiredstring1–20000 chars
languageoptionalstring2–12 chars · default "en"
modeoptional"character_only" | "character_visuals"default "character_only"

Examples

curl -X POST https://api.relaypoints.online/v1/video/avatar/plan \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"script":"Welcome to Relay Bank. Saving a little every month adds up quickly.","language":"en","mode":"character_visuals"}'

Responses

200 The planVideoAvatarPlan

Response fields
FieldTypeDescription
objectRequired"video_avatar.plan"
modeRequired"character_only" | "character_visuals"
languageRequiredstring
estimated_secondsRequiredinteger-9007199254740991–9007199254740991
scenesRequiredobject[]Edit and send back as `scenes` on POST /v1/video/avatar
scenes[].start_sRequirednumber
scenes[].end_sRequirednumber
scenes[].textRequiredstring
scenes[].layoutRequired"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptRequiredstring
usageRequiredobject
usage.tokensRequiredinteger-9007199254740991–9007199254740991
usage.cost_usdRequiredstringWhat planning cost (character_visuals only). US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
POST/v1/video/avatar/estimate

Estimate a video

Scope: jobs

The same body as a render; returns the expected length and priced lines for both modes, the maximum allowed and whether it fits. Free. Uploaded audio (audio_url) is downloaded and measured.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modeoptional"character_only" | "character_visuals"default "character_only"
character_idoptionalstring1–64 chars
image_urloptionalstringuri · 0–2000 chars
scriptoptionalstring1–20000 chars
audio_urloptionalstringuri · 0–2000 chars
voice_idoptionalstring0–64 chars
languageoptionalstring2–12 chars · default "en"
aspect_ratiooptional"9:16" | "16:9" | "1:1"default "16:9"
framingoptional"head" | "presenter"default "presenter"
qualityoptional"ultra" | "standard"default "ultra"
resolutionoptional"480p" | "720p" | "1080p"default "1080p"
backgroundoptionalobject
background.typeRequired"character" | "color" | "image" | "blur"
background.valueoptionalstring0–2000 chars
mediaoptionalobject[]0–30 items
media[].typeRequired"image" | "video" | "slide" | "logo"
media[].urloptionalstringuri · 0–2000 chars
media[].titleoptionalstring1–120 chars
media[].bulletsoptionalstring[]0–6 items
media[].slideoptionalobject
media[].start_sRequirednumber0–3600
media[].end_sRequirednumber0–3600
media[].layoutoptional"fullscreen" | "side" | "pip" | "lower-third"default "fullscreen"
scenesoptionalobject[]1–120 items
scenes[].start_soptionalnumber0–3600 · default 0
scenes[].end_soptionalnumber0–3600 · default 0
scenes[].textRequiredstring1–2000 chars
scenes[].visual_promptoptionalstring0–1000 chars · default ""
scenes[].layoutoptional"presenter" | "fullscreen" | "side" | "pip"
visuals_motionoptionalbooleandefault false
captionsoptionalobject
captions.onoptionalbooleandefault true
captions.styleoptional"classic" | "bold" | "minimal"default "classic"
musicoptionalobject
music.track_idRequired"calm" | "bright" | "warm" | "pulse"
music.volumeoptionalnumber0–1 · default 0.15
max_secondsoptionalinteger1–3600
metadataoptionalmap<string, string>
pronunciationsoptionalobject[]0–200 items
pronunciations[].textRequiredstring1–100 chars
pronunciations[].sayRequiredstring1–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/video/avatar/estimate \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"character_visuals","character_id":"chr_4Lp8sV2nQe1","script":"Welcome to Relay Bank. Saving a little every month adds up quickly. Set a budget and automate your savings.","voice_id":"aria","language":"en","aspect_ratio":"9:16","resolution":"720p","captions":{"on":true,"style":"bold"},"music":{"track_id":"calm","volume":0.15},"media":[{"type":"logo","url":"https://example.com/logo.png","start_s":0,"end_s":4,"layout":"pip"}],"max_seconds":60,"metadata":{"campaign":"savings-q4"}}'

Responses

200 The estimateVideoAvatarEstimate

Response fields
FieldTypeDescription
objectRequired"video_avatar.estimate"
secondsRequiredinteger-9007199254740991–9007199254740991
by_modeRequiredobject
by_mode.character_onlyRequiredobject
by_mode.character_visualsRequiredobject
max_secondsRequiredintegerThe longest video allowed for this request (your max_seconds, never above the platform maximum)-9007199254740991–9007199254740991
fitsRequiredboolean

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 415 unsupported_media_type
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
POST/v1/video/avatar

Render a video

Scope: jobs

A talking-presenter video from a character (or image_url) and a script, edited scenes or your own audio_url. character_only: the presenter speaks the whole video. character_visuals: generated or your own visuals (media: images, videos, slides, logos) share the frame. The voice-over is read sentence by sentence and the captions (burned in and .srt) follow its sentence timings; music is ducked under the voice, and an "AI-generated" label is written into the file. One hold is placed per billed line before work starts; each line is charged on its real usage when the video is done, and every hold is released if it fails. Longer than max_seconds (or the platform maximum) is refused with video_too_long. Poll GET /v1/video/avatar/{id} or receive video_avatar.completed / video_avatar.failed webhooks.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
modeoptional"character_only" | "character_visuals"default "character_only"
character_idoptionalstring1–64 chars
image_urloptionalstringuri · 0–2000 chars
scriptoptionalstring1–20000 chars
audio_urloptionalstringuri · 0–2000 chars
voice_idoptionalstring0–64 chars
languageoptionalstring2–12 chars · default "en"
aspect_ratiooptional"9:16" | "16:9" | "1:1"default "16:9"
framingoptional"head" | "presenter"default "presenter"
qualityoptional"ultra" | "standard"default "ultra"
resolutionoptional"480p" | "720p" | "1080p"default "1080p"
backgroundoptionalobject
background.typeRequired"character" | "color" | "image" | "blur"
background.valueoptionalstring0–2000 chars
mediaoptionalobject[]0–30 items
media[].typeRequired"image" | "video" | "slide" | "logo"
media[].urloptionalstringuri · 0–2000 chars
media[].titleoptionalstring1–120 chars
media[].bulletsoptionalstring[]0–6 items
media[].slideoptionalobject
media[].start_sRequirednumber0–3600
media[].end_sRequirednumber0–3600
media[].layoutoptional"fullscreen" | "side" | "pip" | "lower-third"default "fullscreen"
scenesoptionalobject[]1–120 items
scenes[].start_soptionalnumber0–3600 · default 0
scenes[].end_soptionalnumber0–3600 · default 0
scenes[].textRequiredstring1–2000 chars
scenes[].visual_promptoptionalstring0–1000 chars · default ""
scenes[].layoutoptional"presenter" | "fullscreen" | "side" | "pip"
visuals_motionoptionalbooleandefault false
captionsoptionalobject
captions.onoptionalbooleandefault true
captions.styleoptional"classic" | "bold" | "minimal"default "classic"
musicoptionalobject
music.track_idRequired"calm" | "bright" | "warm" | "pulse"
music.volumeoptionalnumber0–1 · default 0.15
max_secondsoptionalinteger1–3600
metadataoptionalmap<string, string>
pronunciationsoptionalobject[]0–200 items
pronunciations[].textRequiredstring1–100 chars
pronunciations[].sayRequiredstring1–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/video/avatar \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"character_visuals","character_id":"chr_4Lp8sV2nQe1","script":"Welcome to Relay Bank. Saving a little every month adds up quickly. Set a budget and automate your savings.","voice_id":"aria","language":"en","aspect_ratio":"9:16","resolution":"720p","captions":{"on":true,"style":"bold"},"music":{"track_id":"calm","volume":0.15},"media":[{"type":"logo","url":"https://example.com/logo.png","start_s":0,"end_s":4,"layout":"pip"}],"max_seconds":60,"metadata":{"campaign":"savings-q4"}}'

Responses

202 The queued videoVideoAvatar

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"video_avatar"
modeRequired"character_only" | "character_visuals"
statusRequiredenumqueued, scripting, planning, voicing, visuals, rendering, composing, done, failed
progressRequiredinteger0–100
accountRequiredstring
character_idRequiredstring | null
metadataRequiredmap<string, string> | null
cost_so_far_usdRequiredstringCharged so far (the final cost once done; 0 when failed). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
linesRequiredobject[]One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productRequiredstring
lines[].unitsRequirednumber
lines[].cost_usdRequiredstringThis line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusRequired"held" | "settled" | "released"
scenesRequiredobject[]
scenes[].start_sRequirednumber
scenes[].end_sRequirednumber
scenes[].textRequiredstring
scenes[].layoutRequired"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptRequiredstring
segmentsRequiredobject[]
segments[].indexRequiredinteger-9007199254740991–9007199254740991
segments[].start_sRequirednumber
segments[].end_sRequirednumber
segments[].statusRequired"pending" | "running" | "done"
resultRequiredobject | null
errorRequiredobject | null
ai_generatedRequiredtrue
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
completedRequiredinteger | null
outputs_expire_atRequiredinteger | null

Possible errors

  • 400 invalid_request
  • 400 unknown_product
  • 400 video_too_long
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 402 spend_cap_reached
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 409 idempotency_conflict
  • 415 unsupported_media_type
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/video/avatar/{id}

Get a video

Scope: jobs

Stage (scripting, planning, voicing, visuals, rendering, composing, done, failed), progress, cost so far per line and, when done, signed URLs of the MP4, thumbnail and captions.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/video/avatar/job_5Tq9mW2rXa7 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The videoVideoAvatar

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"video_avatar"
modeRequired"character_only" | "character_visuals"
statusRequiredenumqueued, scripting, planning, voicing, visuals, rendering, composing, done, failed
progressRequiredinteger0–100
accountRequiredstring
character_idRequiredstring | null
metadataRequiredmap<string, string> | null
cost_so_far_usdRequiredstringCharged so far (the final cost once done; 0 when failed). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
linesRequiredobject[]One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productRequiredstring
lines[].unitsRequirednumber
lines[].cost_usdRequiredstringThis line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusRequired"held" | "settled" | "released"
scenesRequiredobject[]
scenes[].start_sRequirednumber
scenes[].end_sRequirednumber
scenes[].textRequiredstring
scenes[].layoutRequired"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptRequiredstring
segmentsRequiredobject[]
segments[].indexRequiredinteger-9007199254740991–9007199254740991
segments[].start_sRequirednumber
segments[].end_sRequirednumber
segments[].statusRequired"pending" | "running" | "done"
resultRequiredobject | null
errorRequiredobject | null
ai_generatedRequiredtrue
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
completedRequiredinteger | null
outputs_expire_atRequiredinteger | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
GET/v1/video/avatar/settings

Get avatar settings

Scope: jobs

Whether a visible "AI-generated" watermark is drawn on this account's videos (a reseller's setting covers its sub-accounts).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/video/avatar/settings \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 SettingsVideoAvatarSettings

Response fields
FieldTypeDescription
objectRequired"video_avatar.settings"
watermarkRequiredbooleanA visible "AI-generated" mark is drawn on this account's videos
watermark_ownRequiredboolean
watermark_set_by_parentRequiredbooleanSet by the reseller for all its sub-accounts

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
PATCH/v1/video/avatar/settings

Update avatar settings

Scope: jobs

Turns the visible watermark on or off for this account (and, for a reseller, all its sub-accounts). Recorded in the audit log.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
watermarkRequiredboolean

Examples

curl -X PATCH https://api.relaypoints.online/v1/video/avatar/settings \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"watermark":true}'

Responses

200 SettingsVideoAvatarSettings

Response fields
FieldTypeDescription
objectRequired"video_avatar.settings"
watermarkRequiredbooleanA visible "AI-generated" mark is drawn on this account's videos
watermark_ownRequiredboolean
watermark_set_by_parentRequiredbooleanSet by the reseller for all its sub-accounts

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error

Account

Products and prices, the wallet balance and usage records.

GET/v1/models

List products

Scope: Any API key

The products this account can use, with its prices (custom prices and reseller mark-ups included) and, for chat, the token limits.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/models \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The productsModelList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredModel[]

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/balance

Get the wallet balance

Scope: Any API key

Available credits, credits on hold, the amount owed when the wallet is below $0 (spending is then paused), month-to-date spend and the monthly cap.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/balance \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The balanceBalance

Response fields
FieldTypeDescription
objectRequired"balance"
accountRequiredstring
currencyRequired"USD"
available_usdRequirednumber
held_usdRequirednumberReserved for running calls and jobs
amount_owed_usdRequirednumberAbove 0 when the wallet is below $0; spending is paused until it is paid
spending_pausedRequiredboolean
month_to_date_usdRequirednumber
monthly_cap_usdRequirednumber | null
reseller_profit_usdoptionalnumberResellers: mark-up earned and not yet withdrawn

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/usage

List usage records

Scope: usage

One record per billed call or job, newest first, for the key's mode, with totals for the filter.

Parameters

FieldTypeDescription
from (query)optionalstringStart (inclusive), ISO 8601date-time
to (query)optionalstringEnd (exclusive), ISO 8601date-time
model (query)optionalstringOnly this product id0–100 chars
include_sub_accounts (query)optional"true" | "false"Resellers: include usage of sub-accounts
limit (query)optionalinteger1–100 · default 50
starting_after (query)optionalstringCursor: the last id of the previous page0–100 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/usage?from=2026-10-01T00%3A00%3A00Z&limit=50 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 A page of usageUsageList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredUsageRecord[]
has_moreRequiredboolean
totalsRequiredobject
totals.requestsRequiredinteger-9007199254740991–9007199254740991
totals.price_usdRequirednumber

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/orders

List orders

Scope: billing

Your purchases (reseller packages, credit top-ups, connection bundles), newest first, with status, amount, credits and invoice links.

Parameters

FieldTypeDescription
status (query)optional"awaiting_payment" | "paid" | "failed" | "void" | "refunded" | "partially_refunded"
kind (query)optional"credits" | "bundle" | "single_connection" | "addon"credits = credit top-ups and reseller packages; bundle, single_connection, addon = connections
limit (query)optionalinteger1–100 · default 20
starting_after (query)optionalstringCursor: the last id of the previous page0–100 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/orders?limit=20&status=paid \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 A page of ordersOrderList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredOrder[]
has_moreRequiredboolean
total_countRequiredinteger-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/orders/{id}

Get an order

Scope: billing

One of your orders.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/orders/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The orderOrder

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"order"
accountRequiredstring
numberRequiredstringOrder number shown on the invoice
referenceRequiredstring
kindRequired"credits" | "bundle" | "single_connection" | "addon"credits = credit top-up or reseller package
descriptionRequiredstring
statusRequired"awaiting_payment" | "paid" | "failed" | "void" | "refunded" | "partially_refunded"
currencyRequired"USD"
amount_usdRequirednumber
credits_usdRequirednumberCredits added to the wallet (bonus included)
connectionsRequiredinteger-9007199254740991–9007199254740991
refunded_usdRequirednumber
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
paid_atRequiredinteger | null
invoiceRequiredobject
invoice.numberRequiredstring | nullCiel invoice number
invoice.pay_urlRequiredstring | nullPayment page while the order awaits payment
invoice.pdf_urlRequiredstring | nullInvoice PDF (API key auth, `billing` scope) once paid
invoice.currencyRequiredstring | nullCurrency of the Ciel invoice (Ciel's company currency, e.g. ZAR). Credits stay in USD.
invoice.amountRequirednumber | nullAmount of the Ciel invoice in its currency
invoice.fx_rateRequirednumber | null1 USD = fx_rate in the invoice currency, fixed when the order was created

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
GET/v1/orders/{id}/invoice

Download an invoice

Scope: billing

The invoice PDF of a paid (or refunded) order. Add ?lang=fr or ?lang=pt for French or Portuguese.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/orders/we_6Rm2tY8uHb4/invoice \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  --output download.bin

Responses

200 The invoice PDF

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error

Catalog

Products, prices, packs, plans, voices and limits with a version; changes pushed as signed webhooks and on an SSE stream.

GET/v1/catalog

Get the catalog

Scope: Any API key

Everything a reseller or client needs to price and present RelayPoint in one response: products with this account's prices (custom prices and reseller mark-ups included), top-up packs and bonuses, plans, voices, limits, display FX rates, feature flags, service status, and version / account_version. Send the ETag back as If-None-Match: the answer is 304 Not Modified until something changes. data is the connections catalogue (connections scope). Mark-up profiles and white-label names need the sub_accounts scope, the spend cap the billing scope. Changes are also pushed as webhooks (catalog.updated, pricing.updated, packs.updated, plans.updated, voices.updated, limits.updated, account.updated, service.status) and on GET /v1/events/stream.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/catalog \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The catalog (304 with If-None-Match while unchanged)CatalogList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredCatalogItem[]The connections catalogue (needs the connections scope; empty otherwise)
versionRequiredintegerCatalog version: bumped by every change that affects clients-9007199254740991–9007199254740991
account_versionRequiredintegerThis account's own version (custom prices, mark-ups, names, caps)-9007199254740991–9007199254740991
etagRequiredstringSame as the ETag header: send it as If-None-Match to get 304 while nothing changed
generated_atRequiredstring
currencyRequired"USD"
productsRequiredCatalogProduct[]
packsRequiredobject[]Credit top-up packs for this account type
packs[].idRequiredstring
packs[].skuRequiredstring | null
packs[].nameRequiredstring
packs[].price_usdRequiredstring | null
packs[].credit_usdRequiredstring | null
packs[].bonus_pctRequiredinteger-9007199254740991–9007199254740991
packs[].custom_amountRequiredboolean
packs[].minimum_usdRequiredstring | null
plansRequiredobject[]
plans[].idRequiredstring
plans[].skuRequiredstring | null
plans[].kindRequiredstring
plans[].nameRequiredstring
plans[].price_usdRequiredstringUS dollars as a decimal string with 6 decimals
plans[].connectionsRequiredinteger-9007199254740991–9007199254740991
plans[].monthlyRequiredboolean
voicesRequiredobject[]
voices[].idRequiredstring
voices[].nameRequiredstring
voices[].languageRequiredstring
voices[].genderRequiredstring
voices[].accentRequiredstring | null
voices[].defaultRequiredboolean
voices[].productsRequiredstring[]
voices[].availableRequiredboolean
languages_without_voiceRequiredobject[]
languages_without_voice[].languageRequiredstring
languages_without_voice[].nameRequiredstring
limitsRequiredobject
limits.video_avatar_max_secondsRequiredinteger-9007199254740991–9007199254740991
limits.rate_limit_per_minuteRequiredinteger-9007199254740991–9007199254740991
limits.monthly_cap_usdoptionalstring | nullNeeds the billing scope
limits.kyc_threshold_usdRequiredstringUS dollars as a decimal string with 6 decimals
limits.max_webhook_endpointsRequiredinteger-9007199254740991–9007199254740991
fx_ratesRequiredmap<string, number>Display-only exchange rates (1 USD = rate)
featuresRequiredmap<string, boolean>
service_statusRequiredobject
service_status.maintenanceRequiredobject
service_status.servicesRequiredobject[]
accountRequiredobject
account.idRequiredstring
account.typeRequiredstring
account.sub_accountRequiredboolean
account.statusRequiredstring
account.markup_profilesoptionalmap<string, any>[]Resellers, with the sub_accounts scope
account.white_label_namesoptionalmap<string, string>

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/catalog/version

Check the catalog version

Scope: Any API key

A cheap check: the catalog version, this account's version and the ETag. Supports If-None-Match (304).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/catalog/version \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The versionsCatalogVersion

Response fields
FieldTypeDescription
objectRequired"catalog_version"
versionRequiredinteger-9007199254740991–9007199254740991
account_versionRequiredinteger-9007199254740991–9007199254740991
etagRequiredstring

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/stock/media/{kind}/{file}

Stock library preview

Scope: Any API key

Free previews of the stock library, linked from GET /v1/catalog: voices/<id>.mp3 (a 6–8 s voice preview), presenters/<id>.jpg (the portrait) and presenters/<id>.mp4 (the approved 5 s sample clip). Answers a 302 to a short-lived link; dropped voices, rejected presenters and media not generated yet are a 404. Stable URLs: store these, not the redirect target.

Parameters

FieldTypeDescription
kind (path)Requiredstring
file (path)Requiredstring

Examples

curl https://api.relaypoints.online/v1/stock/media/voices/zu_thandiwe.mp3 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  --output download.bin

Responses

200 The media (after a 302 redirect)

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
GET/v1/events/stream

Stream catalog events (SSE)

Scope: Any API key

Server-Sent Events with the same events as the webhooks: platform-wide ones and this account's own account.updated. Each event has id: (resume with the Last-Event-ID header or ?last_event_id=), event: (its name) and data: (the event JSON). A comment heartbeat every 15 s; the stream closes after 5 minutes and EventSource reconnects by itself (retry: 3000).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/events/stream \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 text/event-stream

With stream: true, server-sent events of CatalogEvent

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error

Connections

Connected accounts (Google, Microsoft, Meta, LinkedIn, …): connect links, the request proxy and credentials.

GET/v1/connections

List connections

Scope: connections

Connected accounts, without tokens or credentials. RelayPoint Connect: end_user_id lists one end user's connections in the key's mode (test keys see test connections).

Parameters

FieldTypeDescription
include_sub_accounts (query)optional"true" | "false"Resellers: include connections of sub-accounts
include_disconnected (query)optional"true" | "false"
end_user_id (query)optionalstringRelayPoint Connect: only this end user's connections (in the key's mode: test keys see test connections)
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/connections?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The connectionsConnectionList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredConnection[]
has_moreRequiredboolean

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
POST/v1/connections

Connect with credentials

Scope: connectionsLive keys only

For catalogue items that connect with API keys or passwords (auth_type: manual). The credentials are encrypted and never returned by this endpoint. OAuth items use connect links instead. Billed per connection per month (from your bundle, or the wallet).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
catalog_slugRequiredstring1–120 chars
credentialsRequiredmap<string, string>The item's fields (see `fields` in GET /v1/catalog)

Examples

curl -X POST https://api.relaypoints.online/v1/connections \
  -H "Authorization: Bearer $RELAYPOINT_LIVE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"catalog_slug":"slack","credentials":{"bot_token":"xoxb-…"}}'

Responses

201 The connectionConnection

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"connection"
accountRequiredstring
catalog_slugRequiredstring
statusRequired"pending" | "active" | "expired" | "error" | "disconnected"
account_labelRequiredstring | null
external_account_idRequiredstring | null
scopesRequiredstring[]
billingRequired"pool" | "wallet"
connect_linkRequiredstring | null
last_errorRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedRequiredinteger | null

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/connections/{id}

Get a connection

Scope: connections

Status, account label and granted scopes.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/connections/conn_8bQ2xV0yLmN4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The connectionConnection

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"connection"
accountRequiredstring
catalog_slugRequiredstring
statusRequired"pending" | "active" | "expired" | "error" | "disconnected"
account_labelRequiredstring | null
external_account_idRequiredstring | null
scopesRequiredstring[]
billingRequired"pool" | "wallet"
connect_linkRequiredstring | null
last_errorRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedRequiredinteger | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
DELETE/v1/connections/{id}

Disconnect

Scope: connections

Revokes the tokens at the provider where possible and stops billing the connection.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X DELETE https://api.relaypoints.online/v1/connections/conn_8bQ2xV0yLmN4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The disconnected connectionConnection

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"connection"
accountRequiredstring
catalog_slugRequiredstring
statusRequired"pending" | "active" | "expired" | "error" | "disconnected"
account_labelRequiredstring | null
external_account_idRequiredstring | null
scopesRequiredstring[]
billingRequired"pool" | "wallet"
connect_linkRequiredstring | null
last_errorRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedRequiredinteger | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
POST/v1/connections/{id}/request

Call the provider's API (recommended)

Scope: connections:requestLive keys only

RelayPoint calls the provider's API with the connection's access token, which never leaves RelayPoint (it is refreshed for you). path is a path on the provider's API host (e.g. /gmail/v1/users/me/messages or /v1.0/me) or a full https URL on an allowed host. Requests are limited to that provider's API hosts and, for Google, to the API paths the granted scopes cover; redirects are not followed; request bodies up to 1 MB, responses up to 5 MB, 30 s timeout. The provider's status, main headers and body are returned as data (a provider error is still HTTP 200 here). This is the recommended way to use a connection, especially for Meta and LinkedIn, whose tokens last about 60 days. Needs the connections:request scope (not included in *, live keys only), 30 calls per minute per key; every call (key, IP, method, host, path, status) is listed on the connection's page.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
methodoptional"GET" | "POST" | "PUT" | "PATCH" | "DELETE"default "GET"
pathRequiredstringPath on the provider's API host (e.g. /v1.0/me) or a full https URL on an allowed host1–2000 chars
queryoptionalmap<string, string | string[]>
headersoptionalmap<string, string>Only accept, content-type, if-match, if-none-match, prefer and a few provider headers are forwarded
bodyoptionalanyJSON body (objects are sent as application/json; strings as given)

Examples

curl -X POST https://api.relaypoints.online/v1/connections/conn_8bQ2xV0yLmN4/request \
  -H "Authorization: Bearer $RELAYPOINT_LIVE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"GET","path":"/gmail/v1/users/me/messages","query":{"maxResults":"10","q":"is:unread"}}'

Responses

200 The provider's answerConnectionResponse

Response fields
FieldTypeDescription
objectRequired"connection_response"
connectionRequiredstring
statusRequiredintegerThe provider's HTTP status-9007199254740991–9007199254740991
headersRequiredmap<string, string>content-type, etag, location, retry-after and the provider's rate-limit headers
bodyRequiredanyParsed JSON, text, or base64 (see body_encoding)
body_encodingRequired"json" | "text" | "base64"

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 409 idempotency_conflict
  • 413 payload_too_large
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
  • 504 upstream_timeout
GET/v1/connections/{id}/credentials

Get credentials

Scope: connections:credentialsLive keys only

OAuth connections: a short-lived access token and its expiry, refreshed first when less than 5 minutes remain; the refresh token and RelayPoint's OAuth client secrets are never returned. Manual connections: the stored credentials, only to the account that owns the connection or its reseller. Needs the connections:credentials scope (not included in *, live keys only), 30 per minute per key; every fetch is listed on the connection's page. Prefer POST /v1/connections/{id}/request. Cache the token until shortly before expires_at.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/connections/conn_8bQ2xV0yLmN4/credentials \
  -H "Authorization: Bearer $RELAYPOINT_LIVE_KEY"

Responses

200 The credentialsConnectionCredentials

Possible errors

  • 401 invalid_api_key
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
POST/v1/connections/{id}/credentials

Get credentials (POST)

Scope: connections:credentialsLive keys only

Same as GET, for clients that avoid GET for secrets.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X POST https://api.relaypoints.online/v1/connections/conn_8bQ2xV0yLmN4/credentials \
  -H "Authorization: Bearer $RELAYPOINT_LIVE_KEY"

Responses

200 The credentialsConnectionCredentials

Possible errors

  • 401 invalid_api_key
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable

Sub-accounts

Resellers: customer accounts with their own wallet, monthly cap and mark-up.

POST/v1/sub_accounts

Create a sub-account

Scope: sub_accounts

Reseller (platform) accounts only, after approved business verification (kyc_required). The sub-account starts with an empty wallet: transfer credits to it. external_ref is your own customer id.

Parameters

FieldTypeDescription
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
nameRequiredstring1–120 chars
external_refoptionalstringYour own customer id (unique per reseller)1–120 chars
monthly_cap_usdoptionalnumber | null
markup_profile_idoptionalstring | null
countryoptionalstringISO 3166-1 alpha-22–2 chars
billing_emailoptionalstring | null

Examples

curl -X POST https://api.relaypoints.online/v1/sub_accounts \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Acme Realty","external_ref":"cust_1042","monthly_cap_usd":50,"country":"ZA"}'

Responses

201 The sub-accountSubAccount

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"sub_account"
nameRequiredstring
external_refRequiredstring | null
statusRequired"active" | "suspended" | "closed"
countryRequiredstring
billing_emailRequiredstring | null
monthly_cap_usdRequirednumber | null
markup_profile_idRequiredstring | null
balanceRequiredobject
balance.available_usdRequirednumber
balance.held_usdRequirednumber
balance.amount_owed_usdRequirednumber
month_to_date_usdRequirednumber
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 forbidden
  • 403 kyc_required
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 conflict
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/sub_accounts

List sub-accounts

Scope: sub_accounts

With balances and month-to-date spend.

Parameters

FieldTypeDescription
limit (query)optionalinteger1–100 · default 50
offset (query)optionalinteger0–9007199254740991 · default 0
external_ref (query)optionalstring0–120 chars

Examples

curl https://api.relaypoints.online/v1/sub_accounts?external_ref=cust_1042 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 A page of sub-accountsSubAccountList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredSubAccount[]
has_moreRequiredboolean

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/sub_accounts/{id}

Get a sub-account

Scope: sub_accounts

Its balance, cap and month-to-date spend.

Parameters

FieldTypeDescription
id (path)Requiredstring

Examples

curl https://api.relaypoints.online/v1/sub_accounts/org_7Hk3Zr1pQs9W \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The sub-accountSubAccount

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"sub_account"
nameRequiredstring
external_refRequiredstring | null
statusRequired"active" | "suspended" | "closed"
countryRequiredstring
billing_emailRequiredstring | null
monthly_cap_usdRequirednumber | null
markup_profile_idRequiredstring | null
balanceRequiredobject
balance.available_usdRequirednumber
balance.held_usdRequirednumber
balance.amount_owed_usdRequirednumber
month_to_date_usdRequirednumber
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
PATCH/v1/sub_accounts/{id}

Update a sub-account

Scope: sub_accounts

Name, reference, monthly cap (null for none), mark-up profile, billing email, or suspend/reactivate.

Parameters

FieldTypeDescription
id (path)Requiredstring
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
nameoptionalstring1–120 chars
external_refoptionalstringYour own customer id (unique per reseller)1–120 chars
monthly_cap_usdoptionalnumber | null
markup_profile_idoptionalstring | null
countryoptionalstringISO 3166-1 alpha-22–2 chars
billing_emailoptionalstring | null
statusoptional"active" | "suspended"

Examples

curl -X PATCH https://api.relaypoints.online/v1/sub_accounts/org_7Hk3Zr1pQs9W \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"monthly_cap_usd":100,"status":"active"}'

Responses

200 The sub-accountSubAccount

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"sub_account"
nameRequiredstring
external_refRequiredstring | null
statusRequired"active" | "suspended" | "closed"
countryRequiredstring
billing_emailRequiredstring | null
monthly_cap_usdRequirednumber | null
markup_profile_idRequiredstring | null
balanceRequiredobject
balance.available_usdRequirednumber
balance.held_usdRequirednumber
balance.amount_owed_usdRequirednumber
month_to_date_usdRequirednumber
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
DELETE/v1/sub_accounts/{id}

Close a sub-account

Scope: sub_accountsLive keys only

Moves its remaining credits back to your wallet and closes it.

Parameters

FieldTypeDescription
id (path)Requiredstring
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X DELETE https://api.relaypoints.online/v1/sub_accounts/org_7Hk3Zr1pQs9W \
  -H "Authorization: Bearer $RELAYPOINT_LIVE_KEY"

Responses

200 The closed sub-accountSubAccount

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"sub_account"
nameRequiredstring
external_refRequiredstring | null
statusRequired"active" | "suspended" | "closed"
countryRequiredstring
billing_emailRequiredstring | null
monthly_cap_usdRequirednumber | null
markup_profile_idRequiredstring | null
balanceRequiredobject
balance.available_usdRequirednumber
balance.held_usdRequirednumber
balance.amount_owed_usdRequirednumber
month_to_date_usdRequirednumber
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
POST/v1/sub_accounts/{id}/transfers

Transfer credits

Scope: sub_accountsLive keys only

Moves credits from your wallet to the sub-account (to_sub_account) or back (to_parent). Use an Idempotency-Key so a retry never transfers twice.

Parameters

FieldTypeDescription
id (path)Requiredstring
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
amount_usdRequirednumber>0–10000000
directionoptional"to_sub_account" | "to_parent"default "to_sub_account"
memooptionalstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/sub_accounts/org_7Hk3Zr1pQs9W/transfers \
  -H "Authorization: Bearer $RELAYPOINT_LIVE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount_usd":25,"direction":"to_sub_account","memo":"October allowance"}' \
  -H "Idempotency-Key: allowance-2026-10-cust_1042"

Responses

201 The transferTransfer

Response fields
FieldTypeDescription
objectRequired"transfer"
idRequiredstring
sub_accountRequiredstring
directionRequired"to_sub_account" | "to_parent"
amount_usdRequirednumber
sub_account_balanceRequiredobject
sub_account_balance.available_usdRequirednumber
sub_account_balance.held_usdRequirednumber
sub_account_balance.amount_owed_usdRequirednumber

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error

Webhooks

Signed event deliveries to your HTTPS endpoints.

POST/v1/webhook_endpoints

Add a webhook endpoint

Scope: webhooks

Registers a public https URL for signed events (job.completed, job.failed, balance.low, order.paid, order.failed, connection.created, connection.expired, connection.disconnected, social.post.published, social.post.failed, social.post.pending_approval, whatsapp.message.received, whatsapp.message.status, sub_account.cap_reached, video_avatar.completed, video_avatar.failed, catalog.updated, pricing.updated, packs.updated, plans.updated, voices.updated, limits.updated, account.updated, service.status, or *). The signing secret is returned once. Up to 10 endpoints per account.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
urlRequiredstringuri · 0–2000 chars
eventsoptionalenum[]1–25 items · default ["*"]
descriptionoptionalstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/webhook_endpoints \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://yourapp.example/hooks/relaypoint","events":["job.completed","job.failed"]}'

Responses

201 The endpoint and its secretWebhookEndpointWithSecret

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"webhook_endpoint"
urlRequiredstring
eventsRequiredenum[]
descriptionRequiredstring | null
enabledRequiredboolean
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
secretRequiredstringwhsec_… signing secret, shown only here

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/webhook_endpoints

List webhook endpoints

Scope: webhooks

Without secrets.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/webhook_endpoints \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The endpointsWebhookEndpointList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredWebhookEndpoint[]
has_moreRequiredboolean

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/webhook_endpoints/{id}

Get a webhook endpoint

Scope: webhooks

With its 20 latest deliveries.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The endpointWebhookEndpointDetail

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"webhook_endpoint"
urlRequiredstring
eventsRequiredenum[]
descriptionRequiredstring | null
enabledRequiredboolean
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
recent_deliveriesRequiredobject[]
recent_deliveries[].idRequiredstring
recent_deliveries[].event_idRequiredstring
recent_deliveries[].typeRequiredstring
recent_deliveries[].statusRequiredstring
recent_deliveries[].attemptsRequiredinteger-9007199254740991–9007199254740991
recent_deliveries[].last_status_codeRequiredinteger | null
recent_deliveries[].next_attemptRequiredinteger | null
recent_deliveries[].createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
PATCH/v1/webhook_endpoints/{id}

Update a webhook endpoint

Scope: webhooks

URL, events, description, or enable/disable.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
urloptionalstringuri · 0–2000 chars
eventsoptionalenum[]1–25 items
descriptionoptionalstring | null
enabledoptionalboolean

Examples

curl -X PATCH https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"events":["*"],"enabled":true}'

Responses

200 The endpointWebhookEndpoint

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"webhook_endpoint"
urlRequiredstring
eventsRequiredenum[]
descriptionRequiredstring | null
enabledRequiredboolean
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
DELETE/v1/webhook_endpoints/{id}

Delete a webhook endpoint

Scope: webhooks

Stops deliveries to it.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X DELETE https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 DeletedDeleted

Response fields
FieldTypeDescription
idRequiredstring
objectRequiredstring
deletedRequiredtrue

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
POST/v1/webhook_endpoints/{id}/rotate_secret

Rotate the signing secret

Scope: webhooks

Returns the new secret once; deliveries are signed with it from now on.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X POST https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4/rotate_secret \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The endpoint and its new secretWebhookEndpointWithSecret

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"webhook_endpoint"
urlRequiredstring
eventsRequiredenum[]
descriptionRequiredstring | null
enabledRequiredboolean
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
secretRequiredstringwhsec_… signing secret, shown only here

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
POST/v1/webhook_endpoints/{id}/test

Send a test event

Scope: webhooks

Queues a signed ping event to this endpoint.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X POST https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4/test \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

202 QueuedWebhookTest

Response fields
FieldTypeDescription
objectRequired"webhook_test"
endpointRequiredstring
delivery_idRequiredstring | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error

Connect

RelayPoint Connect: your own users (end users) connect their social, Google Drive and WhatsApp accounts in a hosted popup or the Social hub. Connect sessions, hub links, setup status, end users and workspace settings. Live use needs the RelayPoint Connections package; test mode is free.

POST/v1/connect/sessions

Create a connect session

Scope: connections

Server-side: lets one end user (your own id, e.g. agent_123 or company) connect their accounts. Open the hosted popup in the browser with RelayPointConnect.open({ publishableKey, sessionToken: token }), or send the browser to url (full-page mode; with redirect_url it comes back with ?relaypoint_status=connected|error&connection=conn_…). providers is "all" (the providers available to the account) or a list; an unavailable one is provider_unavailable with the reasons. The session can be used several times until it expires (5–1440 minutes, default 60). token and url are returned once. Live keys need an active RelayPoint Connections package (package_required); test sessions are free and offer "Simulate connection".

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
end_user_idRequiredstringYour own id for the person or entity (e.g. agent_123, company)
providersoptional"all" | enum[]"all" (the providers available to the account) or a listdefault "all"
redirect_urloptionalstringFull-page mode: where the browser returns after connectinguri · 0–2000 chars
expires_in_minutesoptionalinteger5–1440 · default 60

Examples

curl -X POST https://api.relaypoints.online/v1/connect/sessions \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_user_id":"agent_123","providers":["facebook","instagram"],"redirect_url":"https://portal.example.com/socials","expires_in_minutes":60}'

Responses

201 The session, with `token` and `url` (shown once)ConnectSession

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"connect_session"
end_user_idRequiredstring
modeRequired"live" | "test"
providersRequiredenum[]
statusRequired"open" | "expired"
tokenoptionalstringcst_…: only in the create response. Pass it to RelayPointConnect.open() in the browser.
urloptionalstringThe hosted connect page (full-page mode): only in the create response
connectionsRequiredstring[]
expires_atRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 provider_unavailable
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 package_required
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/connect/sessions/{id}

Get a connect session

Scope: connections

Its status (open or expired) and connections: the ids of the connections made through it. The token is never returned again.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/connect/sessions/cs_9Xk2Lm4Qp7Rt \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The sessionConnectSession

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"connect_session"
end_user_idRequiredstring
modeRequired"live" | "test"
providersRequiredenum[]
statusRequired"open" | "expired"
tokenoptionalstringcst_…: only in the create response. Pass it to RelayPointConnect.open() in the browser.
urloptionalstringThe hosted connect page (full-page mode): only in the create response
connectionsRequiredstring[]
expires_atRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
GET/v1/connect/status

Check the Connect setup

Scope: connections

Whether the package is active, whether a publishable key is valid for this key's account and mode and allows an origin (publishable_key, origin), the browser script URL, and every provider with available, a reason when it isn't (not_enabled, not_configured, awaiting_platform_approval, x_key_required) and notes (tiktok_private_only, youtube_quota, linkedin_member_only, x_own_app, x_relaypoint_app).

Parameters

FieldTypeDescription
publishable_key (query)optionalstring0–80 chars
origin (query)optionalstring0–300 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/connect/status?publishable_key=rp_pk_test_%E2%80%A6&origin=https%3A%2F%2Fwww.example.com \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The setup statusConnectStatus

Response fields
FieldTypeDescription
objectRequired"connect_status"
accountRequiredobject
account.idRequiredstring
account.nameRequiredstring
modeRequired"live" | "test"
package_activeRequiredbooleanAlways true in test mode
publishable_keyRequiredobject | null
script_urlRequiredstring
providersRequiredobject[]
providers[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
providers[].catalog_slugRequiredstring
providers[].availableRequiredboolean
providers[].reasonRequired"not_enabled" | "not_configured" | "awaiting_platform_approval" | "x_key_required" | null
providers[].notesRequiredstring[]

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/connect/settings

Get the workspace's Connect settings

Scope: connections

approval_required, ai_assist_enabled, timezone (for best times), your own X app (x_client_id, and x_client_secret_set instead of the secret) and x_use_relaypoint_app.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/connect/settings \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The settingsConnectSettings

Response fields
FieldTypeDescription
objectRequired"connect_settings"
approval_requiredRequiredboolean
ai_assist_enabledRequiredboolean
timezoneRequiredstring
x_client_idRequiredstring | null
x_client_secret_setRequiredboolean
x_use_relaypoint_appRequiredboolean

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
PATCH/v1/connect/settings

Update the workspace's Connect settings

Scope: connections

Send only the fields to change. x_client_id and x_client_secret go together; the secret is stored encrypted and never returned.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
approval_requiredoptionalboolean
ai_assist_enabledoptionalboolean
timezoneoptionalstringIANA time zone, e.g. Africa/Johannesburg0–64 chars
x_client_idoptionalstring | nullYour own X developer app (OAuth 2.0 client id). Callback URL to register: <app>/connect/callback
x_client_secretoptionalstring | nullStored encrypted; never returned
x_use_relaypoint_appoptionalbooleanWithout your own key: use RelayPoint's X app (monthly post cap per account)

Examples

curl -X PATCH https://api.relaypoints.online/v1/connect/settings \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"approval_required":true,"ai_assist_enabled":true,"timezone":"Africa/Johannesburg"}'

Responses

200 The settingsConnectSettings

Response fields
FieldTypeDescription
objectRequired"connect_settings"
approval_requiredRequiredboolean
ai_assist_enabledRequiredboolean
timezoneRequiredstring
x_client_idRequiredstring | null
x_client_secret_setRequiredboolean
x_use_relaypoint_appRequiredboolean

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/connect/end_users

List end users

Scope: connections

The end users with a display name or a role in this mode.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/connect/end_users \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The end usersEndUserList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredEndUser[]

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/connect/end_users/{id}

Get an end user

Scope: connections

Its display name and role (member by default).

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/connect/end_users/agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The end userEndUser

Response fields
FieldTypeDescription
objectRequired"end_user"
end_user_idRequiredstring
display_nameRequiredstring | null
roleRequired"member" | "drafter" | "approver"

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
PATCH/v1/connect/end_users/{id}

Set an end user's role or name

Scope: connections

Roles: member (default), drafter (with approval_required on, their posts wait in pending_approval) and approver (approves or rejects them).

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
display_nameoptionalstring | null
roleoptional"member" | "drafter" | "approver"drafter: posts wait for an approver when approvals are on

Examples

curl -X PATCH https://api.relaypoints.online/v1/connect/end_users/agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"display_name":"Thandi M.","role":"approver"}'

Responses

200 The end userEndUser

Response fields
FieldTypeDescription
objectRequired"end_user"
end_user_idRequiredstring
display_nameRequiredstring | null
roleRequired"member" | "drafter" | "approver"

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/connect/client/connections

List the session's connections (browser)

Scope: Any API key

Called from the browser by RelayPointConnect.listConnections(). Authenticate with the headers RelayPoint-Publishable-Key (rp_pk_live_… / rp_pk_test_…) and RelayPoint-Session (the connect session token), never with a secret key. CORS is allowed only for the publishable key's allowed origins; the session must be open and belong to the key's account and mode. Returns the connections of the session's end user.

Parameters

FieldTypeDescription
RelayPoint-Publishable-Key (header)RequiredstringYour publishable key (rp_pk_live_… / rp_pk_test_…).
RelayPoint-Session (header)RequiredstringThe connect session token (cst_…).

Examples

curl https://api.relaypoints.online/v1/connect/client/connections \
  -H "RelayPoint-Publishable-Key: rp_pk_test_…" \
  -H "RelayPoint-Session: cst_…" \
  -H "Origin: https://www.example.com"

Responses

200 The end user's connectionsClientConnectionList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredobject[]
data[].idRequiredstring
data[].providerRequiredenum | null
data[].account_labelRequiredstring | null
data[].statusRequiredstring

Possible errors

  • 401 unauthorized
  • 401 invalid_api_key
  • 403 forbidden
  • 403 domain_not_allowed

Social

Post to the end user's Facebook Pages, Instagram, LinkedIn, TikTok, YouTube, Google Business Profile and X from one request, with per-network adaptation, validation, scheduling, approvals, AI assist, best times, analytics and a media library.

GET/v1/social/accounts

List social accounts and destinations

Scope: social

Each social connection of the end user with its destinations: Facebook Pages, Instagram accounts, LinkedIn member and company pages, YouTube channels, Business Profile locations, TikTok and X accounts. Use a destination id in targets to post to one of them.

Parameters

FieldTypeDescription
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/social/accounts?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The accountsSocialAccountList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredobject[]
data[].connectionRequiredstring
data[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
data[].account_labelRequiredstring | null
data[].statusRequiredstring
data[].destinationsRequiredobject[]
data[].errorRequiredstring | null

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
POST/v1/social/posts

Create a post

Scope: social

Posts to several networks at once. targets (up to 20): a provider name (every destination of that provider among the end user's active connections) or { connection, destination? }. One image or one video: image_url / video_url (public https, imported to the media library) or media: ["med_…"]. overrides per provider or connection id: text, hashtags, link_url, title. Every target is adapted first (text and hashtag limits, links, image crop and JPEG conversion, video size, YouTube title); if any target has errors the call is validation_failed with targets[] and nothing is published. scheduled_at (1 minute to 90 days ahead), draft: true (send later with /submit). A drafter's post waits in pending_approval when approvals are on. Webhooks: social.post.published, social.post.failed, social.post.pending_approval. Fair use: posts per account per day (daily_limit_reached).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
end_user_idRequiredstringWhose connections it posts to
author_end_user_idoptionalstringWho wrote it (default end_user_id). A drafter's post waits for an approver.
textoptionalstring0–10000 chars · default ""
titleoptionalstringYouTube title (default: the first line of the text)0–100 chars
hashtagsoptionalstring[]0–30 items
image_urloptionalstringuri · 0–2000 chars
video_urloptionalstringuri · 0–2000 chars
mediaoptionalstring[]A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urloptionalstringuri · 0–2000 chars
overridesoptionalmap<string, object>Per network (facebook, instagram…) or per connection id: text, hashtags, link_url, title
targetsRequiredenum | object[]1–20 items
scheduled_atoptionalstring | integerISO 8601 or unix seconds
privacyoptionalstringYouTube: public, unlisted, private. TikTok: SELF_ONLY until RelayPoint's TikTok audit passes.0–40 chars
draftoptionalbooleanSave without publishing (POST /v1/social/posts/{id}/submit later)

Examples

curl -X POST https://api.relaypoints.online/v1/social/posts \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_user_id":"agent_123","text":"New listing in Umhlanga: 3 bed, sea views.","hashtags":["Umhlanga","SeaViews"],"image_url":"https://www.example.com/uploads/listing.jpg","link_url":"https://www.example.com/listing/123","overrides":{"x":{"text":"3 bed with sea views in Umhlanga"}},"targets":["facebook","instagram","linkedin"],"scheduled_at":"2026-11-20T08:00:00Z"}'

Responses

201 The post, with one entry per targetSocialPost

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"social_post"
end_user_idRequiredstring
author_end_user_idRequiredstring
modeRequired"live" | "test"
textRequiredstring
titleRequiredstring | null
hashtagsRequiredstring[]
image_urlRequiredstring | null
video_urlRequiredstring | null
mediaRequiredstring[]
link_urlRequiredstring | null
overridesRequiredmap<string, any>
statusRequiredenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atRequiredinteger | null
published_atRequiredinteger | null
approved_byRequiredstring | null
approved_atRequiredinteger | null
rejected_reasonRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
targetsRequiredobject[]
targets[].connectionRequiredstring
targets[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationRequiredstring
targets[].destination_nameRequiredstring | null
targets[].statusRequired"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idRequiredstring | nullThe network's post id (test_… in test mode)
targets[].urlRequiredstring | null
targets[].privacyRequiredstring | null
targets[].errorRequiredobject | null
targets[].attemptsRequiredinteger-9007199254740991–9007199254740991
targets[].next_attempt_atRequiredinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequiredobject | null

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 422 validation_failed
  • 422 idempotency_mismatch
  • 429 daily_limit_reached
  • 429 rate_limited
  • 500 internal_error
GET/v1/social/posts

List posts

Scope: social

Newest first, optionally for one end user and one status.

Parameters

FieldTypeDescription
end_user_id (query)optionalstringYour own id for the person or entity (e.g. agent_123, company)
status (query)optionalenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
limit (query)optionalinteger1–100 · default 25
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/social/posts?end_user_id=agent_123&status=scheduled&limit=25 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The postsSocialPostList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredSocialPost[]

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
POST/v1/social/posts/validate

Validate a post

Scope: social

Same body as POST /v1/social/posts. Returns what each target would publish (adapted text, title, link, media changes) with its errors and warnings, without saving or publishing anything.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
end_user_idRequiredstringWhose connections it posts to
author_end_user_idoptionalstringWho wrote it (default end_user_id). A drafter's post waits for an approver.
textoptionalstring0–10000 chars · default ""
titleoptionalstringYouTube title (default: the first line of the text)0–100 chars
hashtagsoptionalstring[]0–30 items
image_urloptionalstringuri · 0–2000 chars
video_urloptionalstringuri · 0–2000 chars
mediaoptionalstring[]A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urloptionalstringuri · 0–2000 chars
overridesoptionalmap<string, object>Per network (facebook, instagram…) or per connection id: text, hashtags, link_url, title
targetsRequiredenum | object[]1–20 items
scheduled_atoptionalstring | integerISO 8601 or unix seconds
privacyoptionalstringYouTube: public, unlisted, private. TikTok: SELF_ONLY until RelayPoint's TikTok audit passes.0–40 chars
draftoptionalbooleanSave without publishing (POST /v1/social/posts/{id}/submit later)

Examples

curl -X POST https://api.relaypoints.online/v1/social/posts/validate \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_user_id":"agent_123","text":"Open house on Saturday from 10:00 to 13:00.","targets":["instagram","x"]}'

Responses

200 The checks per targetSocialPostValidation

Response fields
FieldTypeDescription
objectRequired"social_post_validation"
okRequiredboolean
mediaRequiredstring | null
targetsRequiredobject[]
targets[].connectionRequiredstring
targets[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationRequiredstring
targets[].destination_nameRequiredstring | null
targets[].okRequiredboolean
targets[].textRequiredstringThe text as it will be published (adapted)
targets[].titleRequiredstring | null
targets[].link_urlRequiredstring | null
targets[].privacyRequiredstring | null
targets[].mediaRequiredobject | null
targets[].errorsRequiredobject[]e.g. media_required, media_type, title_required, video_too_large, empty
targets[].warningsRequiredobject[]e.g. text_shortened, hashtags_trimmed, too_many_hashtags, link_not_clickable, image_cropped, image_resized, media_dropped, title_from_text, tiktok_private_only

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 validation_failed
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/social/posts/{id}

Get a post

Scope: social

With the status of each target (pending, queued with next_attempt_at, processing, published with url, failed with error) and its metrics.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/social/posts/sp_4Hn7Vq2Lx9Ws \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The postSocialPost

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"social_post"
end_user_idRequiredstring
author_end_user_idRequiredstring
modeRequired"live" | "test"
textRequiredstring
titleRequiredstring | null
hashtagsRequiredstring[]
image_urlRequiredstring | null
video_urlRequiredstring | null
mediaRequiredstring[]
link_urlRequiredstring | null
overridesRequiredmap<string, any>
statusRequiredenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atRequiredinteger | null
published_atRequiredinteger | null
approved_byRequiredstring | null
approved_atRequiredinteger | null
rejected_reasonRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
targetsRequiredobject[]
targets[].connectionRequiredstring
targets[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationRequiredstring
targets[].destination_nameRequiredstring | null
targets[].statusRequired"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idRequiredstring | nullThe network's post id (test_… in test mode)
targets[].urlRequiredstring | null
targets[].privacyRequiredstring | null
targets[].errorRequiredobject | null
targets[].attemptsRequiredinteger-9007199254740991–9007199254740991
targets[].next_attempt_atRequiredinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequiredobject | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
DELETE/v1/social/posts/{id}

Cancel a post

Scope: social

Cancels a draft, a scheduled post or one pending approval. Published posts stay on the networks.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X DELETE https://api.relaypoints.online/v1/social/posts/sp_4Hn7Vq2Lx9Ws \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The canceled postSocialPost

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"social_post"
end_user_idRequiredstring
author_end_user_idRequiredstring
modeRequired"live" | "test"
textRequiredstring
titleRequiredstring | null
hashtagsRequiredstring[]
image_urlRequiredstring | null
video_urlRequiredstring | null
mediaRequiredstring[]
link_urlRequiredstring | null
overridesRequiredmap<string, any>
statusRequiredenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atRequiredinteger | null
published_atRequiredinteger | null
approved_byRequiredstring | null
approved_atRequiredinteger | null
rejected_reasonRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
targetsRequiredobject[]
targets[].connectionRequiredstring
targets[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationRequiredstring
targets[].destination_nameRequiredstring | null
targets[].statusRequired"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idRequiredstring | nullThe network's post id (test_… in test mode)
targets[].urlRequiredstring | null
targets[].privacyRequiredstring | null
targets[].errorRequiredobject | null
targets[].attemptsRequiredinteger-9007199254740991–9007199254740991
targets[].next_attempt_atRequiredinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequiredobject | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 429 rate_limited
  • 500 internal_error
POST/v1/social/posts/{id}/approve

Approve a post

Scope: social

approver_end_user_id must have the approver role. The post is then scheduled or published.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
approver_end_user_idRequiredstringYour own id for the person or entity (e.g. agent_123, company)

Examples

curl -X POST https://api.relaypoints.online/v1/social/posts/sp_4Hn7Vq2Lx9Ws/approve \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"approver_end_user_id":"manager_7"}'

Responses

200 The postSocialPost

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"social_post"
end_user_idRequiredstring
author_end_user_idRequiredstring
modeRequired"live" | "test"
textRequiredstring
titleRequiredstring | null
hashtagsRequiredstring[]
image_urlRequiredstring | null
video_urlRequiredstring | null
mediaRequiredstring[]
link_urlRequiredstring | null
overridesRequiredmap<string, any>
statusRequiredenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atRequiredinteger | null
published_atRequiredinteger | null
approved_byRequiredstring | null
approved_atRequiredinteger | null
rejected_reasonRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
targetsRequiredobject[]
targets[].connectionRequiredstring
targets[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationRequiredstring
targets[].destination_nameRequiredstring | null
targets[].statusRequired"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idRequiredstring | nullThe network's post id (test_… in test mode)
targets[].urlRequiredstring | null
targets[].privacyRequiredstring | null
targets[].errorRequiredobject | null
targets[].attemptsRequiredinteger-9007199254740991–9007199254740991
targets[].next_attempt_atRequiredinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequiredobject | null

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
POST/v1/social/posts/{id}/reject

Reject a post

Scope: social

approver_end_user_id must have the approver role; reason is shown to the author.

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
approver_end_user_idRequiredstringYour own id for the person or entity (e.g. agent_123, company)
reasonoptionalstring0–500 chars

Examples

curl -X POST https://api.relaypoints.online/v1/social/posts/sp_4Hn7Vq2Lx9Ws/reject \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"approver_end_user_id":"manager_7","reason":"Please add the asking price."}'

Responses

200 The postSocialPost

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"social_post"
end_user_idRequiredstring
author_end_user_idRequiredstring
modeRequired"live" | "test"
textRequiredstring
titleRequiredstring | null
hashtagsRequiredstring[]
image_urlRequiredstring | null
video_urlRequiredstring | null
mediaRequiredstring[]
link_urlRequiredstring | null
overridesRequiredmap<string, any>
statusRequiredenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atRequiredinteger | null
published_atRequiredinteger | null
approved_byRequiredstring | null
approved_atRequiredinteger | null
rejected_reasonRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
targetsRequiredobject[]
targets[].connectionRequiredstring
targets[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationRequiredstring
targets[].destination_nameRequiredstring | null
targets[].statusRequired"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idRequiredstring | nullThe network's post id (test_… in test mode)
targets[].urlRequiredstring | null
targets[].privacyRequiredstring | null
targets[].errorRequiredobject | null
targets[].attemptsRequiredinteger-9007199254740991–9007199254740991
targets[].next_attempt_atRequiredinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequiredobject | null

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 forbidden
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
POST/v1/social/posts/{id}/submit

Submit a draft

Scope: social

Validates the draft again, then schedules or publishes it (or sends it for approval).

Parameters

FieldTypeDescription
id (path)Requiredstring
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X POST https://api.relaypoints.online/v1/social/posts/sp_4Hn7Vq2Lx9Ws/submit \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The postSocialPost

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"social_post"
end_user_idRequiredstring
author_end_user_idRequiredstring
modeRequired"live" | "test"
textRequiredstring
titleRequiredstring | null
hashtagsRequiredstring[]
image_urlRequiredstring | null
video_urlRequiredstring | null
mediaRequiredstring[]
link_urlRequiredstring | null
overridesRequiredmap<string, any>
statusRequiredenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atRequiredinteger | null
published_atRequiredinteger | null
approved_byRequiredstring | null
approved_atRequiredinteger | null
rejected_reasonRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
targetsRequiredobject[]
targets[].connectionRequiredstring
targets[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationRequiredstring
targets[].destination_nameRequiredstring | null
targets[].statusRequired"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idRequiredstring | nullThe network's post id (test_… in test mode)
targets[].urlRequiredstring | null
targets[].privacyRequiredstring | null
targets[].errorRequiredobject | null
targets[].attemptsRequiredinteger-9007199254740991–9007199254740991
targets[].next_attempt_atRequiredinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequiredobject | null

Possible errors

  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 422 validation_failed
  • 429 rate_limited
  • 500 internal_error
POST/v1/social/assist

AI assist

Scope: social

Writes or improves post text: caption, hashtags, rewrite, translate (to language) or listing_to_post (from a property's details). Runs on RelayPoint's rp/text-fast and is billed from your AI Credits (cost_usd); free sample text in test mode. feature_disabled when the workspace switched AI assist off.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
taskRequired"caption" | "hashtags" | "rewrite" | "translate" | "listing_to_post"
textoptionalstring0–4000 chars
listingoptionalmap<string, any>listing_to_post: the property's details (title, price, bedrooms, suburb, features…)
toneoptional"professional" | "friendly" | "enthusiastic" | "luxury" | "concise"
languageoptional"en" | "fr" | "pt"
provideroptionalenumWrite for this network's limitsfacebook, instagram, linkedin, tiktok, youtube, google_business, x

Examples

curl -X POST https://api.relaypoints.online/v1/social/assist \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"task":"listing_to_post","listing":{"title":"3 bed apartment","suburb":"Umhlanga","price":"R 4 950 000","features":["sea views","pool"]},"tone":"friendly","language":"en","provider":"instagram"}'

Responses

200 The textSocialAssist

Response fields
FieldTypeDescription
objectRequired"social_assist"
taskRequiredstring
textRequiredstring
hashtagsRequiredstring[]
modelRequiredstring
modeRequired"live" | "test"
cost_usdRequiredstringCharged to your AI Credits (0 in test mode)

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 402 insufficient_balance
  • 403 feature_disabled
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
GET/v1/social/best_times

Best times to post

Scope: social

Per network: the end user's best hours of the week from their own engagement once there are 8 or more measured posts (basis: history), researched defaults before that (basis: default), and the next three times in the workspace's time zone.

Parameters

FieldTypeDescription
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/social/best_times?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 Suggested timesBestTimes

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredobject[]
data[].providerRequiredenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
data[].basisRequired"history" | "default"
data[].timezoneRequiredstring
data[].slotsRequiredobject[]
data[].nextRequiredstring[]

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
GET/v1/social/analytics

Unified analytics

Scope: social

Totals (posts, impressions, reach, engagement, clicks, likes, comments, shares, views) across networks, grouped by provider, connection or end_user. Metrics are refreshed every 3 hours for posts from the last 30 days.

Parameters

FieldTypeDescription
end_user_id (query)optionalstringYour own id for the person or entity (e.g. agent_123, company)
from (query)optionalintegerUnix seconds (default: 30 days ago)>0–9007199254740991
to (query)optionalinteger>0–9007199254740991
group_by (query)optional"connection" | "end_user" | "provider"default "provider"
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/social/analytics?end_user_id=agent_123&group_by=provider \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The analyticsSocialAnalytics

Response fields
FieldTypeDescription
objectRequired"social_analytics"
fromRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
toRequiredintegerUnix time in seconds-9007199254740991–9007199254740991
group_byRequired"provider" | "connection" | "end_user"
totalsRequiredobject
totals.postsRequiredinteger-9007199254740991–9007199254740991
totals.impressionsRequirednumber
totals.reachRequirednumber
totals.engagementRequirednumber
totals.clicksRequirednumber
totals.likesRequirednumber
totals.commentsRequirednumber
totals.sharesRequirednumber
totals.viewsRequirednumber
dataRequiredobject[]
data[].postsRequiredinteger-9007199254740991–9007199254740991
data[].impressionsRequirednumber
data[].reachRequirednumber
data[].engagementRequirednumber
data[].clicksRequirednumber
data[].likesRequirednumber
data[].commentsRequirednumber
data[].sharesRequirednumber
data[].viewsRequirednumber
data[].keyRequiredstring
data[].provideroptionalstring
data[].labeloptionalstring

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
POST/v1/social/media

Add to the media library

Scope: social

Multipart file with end_user_id, or JSON { end_user_id, url } (a public https URL). Images: JPEG, PNG, WebP or GIF up to 20 MB. Videos: MP4, MOV or WebM up to 250 MB (100 MB through this endpoint). Use the id in a post's media.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
end_user_idRequiredstringYour own id for the person or entity (e.g. agent_123, company)
fileRequiredstringThe image or video (multipart file field). Or send JSON (SocialMediaFromUrl) instead.binary
nameoptionalstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/social/media \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -F file=@listing.jpg \
  -F end_user_id=agent_123

Responses

201 The media itemMedia

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"media"
end_user_idRequiredstring
kindRequired"image" | "video"
sourceRequiredstring
nameRequiredstring | null
mime_typeRequiredstring
sizeRequiredinteger-9007199254740991–9007199254740991
widthRequiredinteger | null
heightRequiredinteger | null
drive_file_idRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 409 idempotency_conflict
  • 413 payload_too_large
  • 415 unsupported_media_type
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/social/media

List the media library

Scope: social

The end user's images and videos (uploads, URLs and Drive imports).

Parameters

FieldTypeDescription
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/social/media?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The mediaMediaList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredMedia[]

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 429 rate_limited
  • 500 internal_error
DELETE/v1/social/media/{id}

Delete a media item

Scope: social

Removes it from the end user's library. Posts already published keep their media.

Parameters

FieldTypeDescription
id (path)Requiredstring
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X DELETE https://api.relaypoints.online/v1/social/media/med_2Kp8Wd5Rz3Nf?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 DeletedMediaDeleted

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"media"
deletedRequiredtrue

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error

Drive

The end user's Google Drive (drive.file scope): list, upload, download and import files into the media library.

GET/v1/drive/files

List Drive files

Scope: drive

The files RelayPoint can see in the end user's Google Drive (drive.file: files it created or that were picked with Google Picker). Add connection when the end user has more than one Drive connection.

Parameters

FieldTypeDescription
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
connection (query)optionalstring0–64 chars
q (query)optionalstring0–100 chars
page_size (query)optionalinteger1–100 · default 25
page_token (query)optionalstring0–500 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/drive/files?end_user_id=agent_123&q=listing&page_size=25 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 A page of filesDriveFileList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredDriveFile[]
next_page_tokenRequiredstring | null

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
POST/v1/drive/files

Upload to Drive

Scope: drive

Multipart file (at most 10 MB) with end_user_id, and optionally connection, name and folder_id.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
end_user_idRequiredstringYour own id for the person or entity (e.g. agent_123, company)
fileRequiredstringThe file (multipart file field), at most 10 MBbinary
connectionoptionalstring0–64 chars
nameoptionalstring0–200 chars
folder_idoptionalstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/drive/files \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -F file=@brochure.pdf \
  -F end_user_id=agent_123

Responses

201 The fileDriveFile

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"drive_file"
nameRequiredstring
mime_typeRequiredstring
sizeRequiredinteger | null
modifiedRequiredinteger | null
web_urlRequiredstring | null
icon_urlRequiredstring | null
thumbnail_urlRequiredstring | null

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 413 payload_too_large
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
POST/v1/drive/files/import

Import a Drive file to the media library

Scope: drive

Copies an image or video from the end user's Drive into their media library, ready for a post's media.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
end_user_idRequiredstringYour own id for the person or entity (e.g. agent_123, company)
connectionoptionalstring0–64 chars
file_idRequiredstring0–200 chars

Examples

curl -X POST https://api.relaypoints.online/v1/drive/files/import \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_user_id":"agent_123","file_id":"1aBcD2eFgH3iJkL4mNoP"}'

Responses

201 The media itemMedia

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"media"
end_user_idRequiredstring
kindRequired"image" | "video"
sourceRequiredstring
nameRequiredstring | null
mime_typeRequiredstring
sizeRequiredinteger-9007199254740991–9007199254740991
widthRequiredinteger | null
heightRequiredinteger | null
drive_file_idRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 413 payload_too_large
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
GET/v1/drive/files/{id}

Get a Drive file

Scope: drive

The file's metadata.

Parameters

FieldTypeDescription
id (path)Requiredstring
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
connection (query)optionalstring0–64 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/drive/files/1aBcD2eFgH3iJkL4mNoP?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The fileDriveFile

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"drive_file"
nameRequiredstring
mime_typeRequiredstring
sizeRequiredinteger | null
modifiedRequiredinteger | null
web_urlRequiredstring | null
icon_urlRequiredstring | null
thumbnail_urlRequiredstring | null

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
GET/v1/drive/files/{id}/content

Download a Drive file

Scope: drive

The file's bytes (at most 25 MB), with its content type.

Parameters

FieldTypeDescription
id (path)Requiredstring
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
connection (query)optionalstring0–64 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/drive/files/1aBcD2eFgH3iJkL4mNoP/content?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  --output download.bin

Responses

200 The file

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 413 payload_too_large
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable

WhatsApp

The end user's own WhatsApp Business number (Cloud API): approved templates, opted-in contacts, messages within the 24-hour window, broadcasts and inbound webhooks. Messaging only: there is no posting on WhatsApp.

GET/v1/whatsapp/templates

List message templates

Scope: whatsapp

The approved templates of the end user's WhatsApp Business account.

Parameters

FieldTypeDescription
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
connection (query)optionalstring0–64 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/whatsapp/templates?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The templatesWhatsAppTemplateList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredobject[]
data[].nameRequiredstring
data[].languageRequiredstring
data[].categoryoptionalstring
data[].statusoptionalstring
data[].componentsoptionalany[]

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
POST/v1/whatsapp/contacts

Add or update a contact

Scope: whatsapp

phone in international format. Record opt_in (source, proof, at) to send templates and broadcasts: keep what the person agreed to and how.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
end_user_idRequiredstringYour own id for the person or entity (e.g. agent_123, company)
connectionoptionalstring0–64 chars
phoneRequiredstringInternational format, e.g. +278212345670–32 chars
nameoptionalstring0–120 chars
opt_inoptionalobject
opt_in.sourceRequiredstringWhere they opted in (e.g. website enquiry form)1–200 chars
opt_in.proofRequiredstringWhat they agreed to and how (checkbox wording, form URL, timestamp, message id…)1–2000 chars
opt_in.atoptionalstring | integerISO 8601 or unix seconds

Examples

curl -X POST https://api.relaypoints.online/v1/whatsapp/contacts \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_user_id":"agent_123","phone":"+27821234567","name":"Sipho N.","opt_in":{"source":"website enquiry form","proof":"Ticked 'Send me updates on WhatsApp' on /listing/123 at 2026-11-12T09:14:00Z"}}'

Responses

201 The contactWhatsAppContact

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"whatsapp_contact"
phoneRequiredstring
nameRequiredstring | null
opted_inRequiredboolean
opt_inRequiredobject | null
opted_out_atRequiredinteger | null
last_inbound_atRequiredinteger | null
window_openRequiredbooleanFree-form text is allowed (within 24 hours of the contact's last message)
unreadRequiredinteger-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/whatsapp/contacts

List contacts

Scope: whatsapp

With opted_in, the opt-in proof, window_open (the 24-hour window) and unread counts. opted_in=true lists only opted-in contacts.

Parameters

FieldTypeDescription
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
connection (query)optionalstring0–64 chars
opted_in (query)optional"true" | "false"
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/whatsapp/contacts?end_user_id=agent_123&opted_in=true \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The contactsWhatsAppContactList

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredWhatsAppContact[]

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
DELETE/v1/whatsapp/contacts/{id}

Opt a contact out

Scope: whatsapp

Records an opt-out: no more templates or broadcasts. Inbound "STOP", "arrêt" and "parar" do the same.

Parameters

FieldTypeDescription
id (path)Requiredstring
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
connection (query)optionalstring0–64 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Examples

curl -X DELETE https://api.relaypoints.online/v1/whatsapp/contacts/wac_6Tb3Yh8Ms1Qe?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The contactWhatsAppContact

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"whatsapp_contact"
phoneRequiredstring
nameRequiredstring | null
opted_inRequiredboolean
opt_inRequiredobject | null
opted_out_atRequiredinteger | null
last_inbound_atRequiredinteger | null
window_openRequiredbooleanFree-form text is allowed (within 24 hours of the contact's last message)
unreadRequiredinteger-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
POST/v1/whatsapp/messages

Send a message

Scope: whatsapp

Either an approved template (needs the contact's opt-in: opt_in_required) or free-form text, allowed only within 24 hours of the contact's last message (window_closed: send a template instead). Meta bills message fees to the end user's own WhatsApp Business account. Fair use: messages per number per day (daily_limit_reached).

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription

Examples

curl -X POST https://api.relaypoints.online/v1/whatsapp/messages \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_user_id":"agent_123","contact":"wac_6Tb3Yh8Ms1Qe","template":{"name":"viewing_reminder","language":"en","components":[{"type":"body","parameters":[{"type":"text","text":"Saturday 10:00"}]}]}}'

Responses

201 The messageWhatsAppMessage

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"whatsapp_message"
contactRequiredstring
directionRequired"in" | "out"
typeRequiredstring
textRequiredstring | null
templateRequiredstring | null
statusRequiredstringqueued, sent, delivered, read, failed or received
errorRequiredstring | null
broadcastRequiredstring | null
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 opt_in_required
  • 400 upstream_rejected
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 409 window_closed
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 daily_limit_reached
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
GET/v1/whatsapp/messages

Get a conversation

Scope: whatsapp

The messages with one contact (oldest first), and marks them read.

Parameters

FieldTypeDescription
end_user_id (query)RequiredstringYour own id for the person or entity (e.g. agent_123, company)
connection (query)optionalstring0–64 chars
contact (query)Requiredstring0–64 chars
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Examples

curl https://api.relaypoints.online/v1/whatsapp/messages?end_user_id=agent_123&contact=wac_6Tb3Yh8Ms1Qe \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Responses

200 The conversationWhatsAppConversation

Response fields
FieldTypeDescription
objectRequired"list"
dataRequiredWhatsAppMessage[]
contactRequiredWhatsAppContact

Possible errors

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 429 rate_limited
  • 500 internal_error
POST/v1/whatsapp/broadcasts

Broadcast a template

Scope: whatsapp

Sends an approved template to opted-in contacts only (all of them, or the listed contacts). The worker sends in paced batches within the daily limit; contacts without opt-in are skipped.

Parameters

FieldTypeDescription
RelayPoint-Account (header)optionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optionalstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Request body

FieldTypeDescription
end_user_idRequiredstringYour own id for the person or entity (e.g. agent_123, company)
connectionoptionalstring0–64 chars
templateRequiredobject
template.nameRequiredstring0–512 chars
template.languageoptionalstring0–15 chars · default "en"
template.componentsoptionalany[]0–20 items
contactsoptionalstring[]Default: every opted-in contact0–500 items

Examples

curl -X POST https://api.relaypoints.online/v1/whatsapp/broadcasts \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_user_id":"agent_123","template":{"name":"new_listing_alert","language":"en"}}'

Responses

201 The queued broadcastWhatsAppBroadcast

Response fields
FieldTypeDescription
idRequiredstring
objectRequired"whatsapp_broadcast"
templateRequiredstring
languageRequiredstring
statusRequiredstringqueued, sending, done or canceled
totalRequiredinteger-9007199254740991–9007199254740991
sentRequiredinteger-9007199254740991–9007199254740991
failedRequiredinteger-9007199254740991–9007199254740991
skippedRequiredinteger-9007199254740991–9007199254740991
createdRequiredintegerUnix time in seconds-9007199254740991–9007199254740991

Possible errors

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 conflict
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error