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:
Code
Status
invalid_request
400
invalid_json
400
unknown_product
400
upstream_rejected
400
consent_required
400
content_rejected
400
video_too_long
400
provider_unavailable
400
opt_in_required
400
unauthorized
401
invalid_api_key
401
insufficient_balance
402
spend_cap_reached
402
insufficient_provider_credit
402
package_required
402
forbidden
403
feature_disabled
403
ip_not_allowed
403
domain_not_allowed
403
missing_scope
403
account_suspended
403
kyc_required
403
byok_required
403
not_found
404
method_not_allowed
405
conflict
409
idempotency_conflict
409
idempotency_mismatch
422
validation_failed
422
window_closed
409
daily_limit_reached
429
payload_too_large
413
byok_key_invalid
424
unsupported_media_type
415
rate_limited
429
internal_error
500
upstream_unavailable
503
upstream_timeout
504
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
modelRequired
string
RelayPoint product id, e.g. rp/text-pro1–100 chars
role tool: the id of the tool call this message answers0–100 chars
messages[].tool_callsoptional
ToolCall[]
role assistant: the tool calls of an earlier answer, sent back as they came0–128 items
max_tokensoptional
integer
1–32768
max_completion_tokensoptional
integer
1–32768
temperatureoptional
number
0–2
top_poptional
number
0–1
stopoptional
string | string[]
seedoptional
integer
-9007199254740991–9007199254740991
streamoptional
boolean
response_formatoptional
object
toolsoptional
ToolDefinition[]
Functions the model may call. Not supported with stream: true.0–128 items
tool_choiceoptional
"auto" | "none" | "required" | object
Default auto when tools are sent
parallel_tool_callsoptional
boolean
false 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.
useroptional
string
0–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
Field
Type
Description
idRequired
string
objectRequired
"chat.completion"
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
modelRequired
string
The RelayPoint product id you asked for
choicesRequired
object[]
choices[].indexRequired
integer
-9007199254740991–9007199254740991
choices[].messageRequired
object
choices[].finish_reasonRequired
"stop" | "length" | "tool_calls"
usageRequired
ChatUsage
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
modeloptional
string
1–100 chars · default "rp/embed"
inputRequired
string | string[]
encoding_formatoptional
"float" | "base64"
default "float"
useroptional
string
0–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
Field
Type
Description
objectRequired
"list"
modelRequired
string
dataRequired
object[]
data[].objectRequired
"embedding"
data[].indexRequired
integer
-9007199254740991–9007199254740991
data[].embeddingRequired
number[] | string
usageRequired
object
usage.prompt_tokensRequired
integer
-9007199254740991–9007199254740991
usage.total_tokensRequired
integer
-9007199254740991–9007199254740991
usage.cost_usdRequired
string
What 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Unix time in seconds-9007199254740991–9007199254740991
modelRequired
string
dataRequired
object[]
data[].urloptional
string
data[].file_idoptional
string
data[].expires_atoptional
integer
Unix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonoptional
string
usageRequired
object
usage.imagesRequired
integer
-9007199254740991–9007199254740991
usage.cost_usdRequired
string
What 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
modelRequired
string
dataRequired
object[]
data[].urloptional
string
data[].file_idoptional
string
data[].expires_atoptional
integer
Unix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonoptional
string
usageRequired
object
usage.imagesRequired
integer
-9007199254740991–9007199254740991
usage.cost_usdRequired
string
What 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
modeloptional
string
1–100 chars · default "rp/stt"
languageoptional
string
2–12 chars
response_formatoptional
"json" | "text" | "verbose_json"
default "json"
diarizeoptional
"true" | "false"
num_speakersoptional
integer
1–32
fileRequired
string
The audio file (multipart file field), up to 25 MBbinary
rp/stt-pro with verbose_json or diarize=true: words with timings and speaker labels
words[].textRequired
string
words[].startRequired
number
words[].endRequired
number
words[].speakerRequired
string | null
fallback_fromoptional
string
Set when the provider was unavailable and the house product answered (fallback is opt-in)
usageRequired
object
usage.secondsRequired
number
usage.cost_usdRequired
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
usage.billing_modeoptional
"byok"
usage.provideroptional
string
usage.platform_fee_usdoptional
string
usage.list_equivalent_cost_usdoptional
string
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
The owner's spoken consent recording is kept as evidence
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
deletedRequired
integer | 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
The owner's spoken consent recording is kept as evidence
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
deletedRequired
integer | 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
modeloptional
"rp/voice-live"
default "rp/voice-live"
instructionsoptional
string
0–16000 chars · default "You are a friendly, helpful assistant."
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
Field
Type
Description
objectRequired
"voice_live.session"
idRequired
string
modelRequired
"rp/voice-live"
statusRequired
"created" | "active" | "ended"
voiceRequired
string
languageRequired
string
transportRequired
"websocket" | "twilio"
audio_formatRequired
"pcm16" | "mulaw"
sample_rateRequired
integer
-9007199254740991–9007199254740991
max_minutesRequired
integer
-9007199254740991–9007199254740991
max_duration_secondsRequired
integer
The call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsRequired
integer
Seconds without caller speech before the call ends (0 = never)-9007199254740991–9007199254740991
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
0–100, updated by the worker while the job runs; 100 when it succeeded0–100
accountRequired
string
metadataRequired
map<string, string> | null
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
startedRequired
integer | null
completedRequired
integer | null
outputsRequired
object[]
outputs[].file_idRequired
string
outputs[].nameRequired
string
outputs[].content_typeRequired
string
outputs[].sizeRequired
integer | null
outputs[].urlRequired
string | null
Signed download URL while outputs are kept
outputs_expire_atRequired
integer | null
resultRequired
any | null
Product-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorRequired
object | null
usageRequired
object | null
billing_modeoptional
"credits" | "byok"
provideroptional
string
fallback_fromoptional
string
Set when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedoptional
boolean
true 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
true: your reseller's key (stock avatars and voices only)
avatarsRequired
object[]
avatars[].idRequired
string
avatars[].nameRequired
string
avatars[].typeRequired
string
avatars[].preview_image_urlRequired
string | null
avatars[].preview_video_urlRequired
string | null
avatars[].default_voice_idRequired
string | null
avatars[].ownedRequired
boolean
Your own avatar (consent needed)
voicesRequired
object[]
voices[].idRequired
string
voices[].nameRequired
string
voices[].languageRequired
string
voices[].genderRequired
string
voices[].preview_audio_urlRequired
string | null
voices[].ownedRequired
boolean
cached_for_secondsRequired
integer
-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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
idRequired
string
chr_…
objectRequired
"character"
stockRequired
boolean
true for RelayPoint's ready stock presenters (original AI-generated people)
kindRequired
"generated" | "trained" | "stock"
statusRequired
"pending" | "ready" | "failed" | "disabled"
nameRequired
string
descriptionRequired
string
clothingRequired
string
styleRequired
string
backgroundRequired
string | null
genderRequired
string | null
age_bandRequired
string | null
ethnicityRequired
string | null
roleRequired
string | null
tagsRequired
string[]
voice_idRequired
string | null
Default voice for this character (GET /v1/voices)
parent_idRequired
string | null
Variants: the character they were made from (same identity and seed)
referenceRequired
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksoptional
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedoptional
true
job_idRequired
string | null
errorRequired
string | null
createdRequired
integer
Unix 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
Field
Type
Description
age (query)optional
"18-29" | "30-44" | "45-59" | "60+"
gender (query)optional
"female" | "male"
ethnicity (query)optional
string
0–40 chars
style (query)optional
string
0–40 chars
q (query)optional
string
0–80 chars
stock (query)optional
"true" | "false"
limit (query)optional
integer
1–100 · default 50
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
true for RelayPoint's ready stock presenters (original AI-generated people)
kindRequired
"generated" | "trained" | "stock"
statusRequired
"pending" | "ready" | "failed" | "disabled"
nameRequired
string
descriptionRequired
string
clothingRequired
string
styleRequired
string
backgroundRequired
string | null
genderRequired
string | null
age_bandRequired
string | null
ethnicityRequired
string | null
roleRequired
string | null
tagsRequired
string[]
voice_idRequired
string | null
Default voice for this character (GET /v1/voices)
parent_idRequired
string | null
Variants: the character they were made from (same identity and seed)
referenceRequired
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksoptional
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedoptional
true
job_idRequired
string | null
errorRequired
string | null
createdRequired
integer
Unix 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
clothingoptional
string
0–300 chars
backgroundoptional
string
0–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
Field
Type
Description
idRequired
string
chr_…
objectRequired
"character"
stockRequired
boolean
true for RelayPoint's ready stock presenters (original AI-generated people)
kindRequired
"generated" | "trained" | "stock"
statusRequired
"pending" | "ready" | "failed" | "disabled"
nameRequired
string
descriptionRequired
string
clothingRequired
string
styleRequired
string
backgroundRequired
string | null
genderRequired
string | null
age_bandRequired
string | null
ethnicityRequired
string | null
roleRequired
string | null
tagsRequired
string[]
voice_idRequired
string | null
Default voice for this character (GET /v1/voices)
parent_idRequired
string | null
Variants: the character they were made from (same identity and seed)
referenceRequired
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksoptional
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedoptional
true
job_idRequired
string | null
errorRequired
string | null
createdRequired
integer
Unix 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
true for RelayPoint's ready stock presenters (original AI-generated people)
kindRequired
"generated" | "trained" | "stock"
statusRequired
"pending" | "ready" | "failed" | "disabled"
nameRequired
string
descriptionRequired
string
clothingRequired
string
styleRequired
string
backgroundRequired
string | null
genderRequired
string | null
age_bandRequired
string | null
ethnicityRequired
string | null
roleRequired
string | null
tagsRequired
string[]
voice_idRequired
string | null
Default voice for this character (GET /v1/voices)
parent_idRequired
string | null
Variants: the character they were made from (same identity and seed)
referenceRequired
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksoptional
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedoptional
true
job_idRequired
string | null
errorRequired
string | null
createdRequired
integer
Unix 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
A short sample (signed URL, 1 hour), or null until generated
data[].productsRequired
string[]
data[].availableRequired
boolean
A route can speak it right now on rp/tts
data[].tiersRequired
object
Spoken now by rp/tts (ultra) / rp/tts-standard (standard)
languages_without_voiceRequired
object[]
languages_without_voice[].languageRequired
string
languages_without_voice[].nameRequired
string
languages_without_voice[].noteRequired
string
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
objectRequired
"script"
scriptRequired
string
languageRequired
string
styleRequired
string
estimated_secondsRequired
integer
Speaking time of the script-9007199254740991–9007199254740991
usageRequired
object
usage.tokensRequired
integer
-9007199254740991–9007199254740991
usage.cost_usdRequired
string
What 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
scriptRequired
string
1–20000 chars
languageoptional
string
2–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
Field
Type
Description
objectRequired
"video_avatar.plan"
modeRequired
"character_only" | "character_visuals"
languageRequired
string
estimated_secondsRequired
integer
-9007199254740991–9007199254740991
scenesRequired
object[]
Edit and send back as `scenes` on POST /v1/video/avatar
scenes[].start_sRequired
number
scenes[].end_sRequired
number
scenes[].textRequired
string
scenes[].layoutRequired
"presenter" | "fullscreen" | "side" | "pip"
How the presenter and the scene's visual share the frame
scenes[].visual_promptRequired
string
usageRequired
object
usage.tokensRequired
integer
-9007199254740991–9007199254740991
usage.cost_usdRequired
string
What 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
modeoptional
"character_only" | "character_visuals"
default "character_only"
character_idoptional
string
1–64 chars
image_urloptional
string
uri · 0–2000 chars
scriptoptional
string
1–20000 chars
audio_urloptional
string
uri · 0–2000 chars
voice_idoptional
string
0–64 chars
languageoptional
string
2–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"
backgroundoptional
object
background.typeRequired
"character" | "color" | "image" | "blur"
background.valueoptional
string
0–2000 chars
mediaoptional
object[]
0–30 items
media[].typeRequired
"image" | "video" | "slide" | "logo"
media[].urloptional
string
uri · 0–2000 chars
media[].titleoptional
string
1–120 chars
media[].bulletsoptional
string[]
0–6 items
media[].slideoptional
object
media[].start_sRequired
number
0–3600
media[].end_sRequired
number
0–3600
media[].layoutoptional
"fullscreen" | "side" | "pip" | "lower-third"
default "fullscreen"
scenesoptional
object[]
1–120 items
scenes[].start_soptional
number
0–3600 · default 0
scenes[].end_soptional
number
0–3600 · default 0
scenes[].textRequired
string
1–2000 chars
scenes[].visual_promptoptional
string
0–1000 chars · default ""
scenes[].layoutoptional
"presenter" | "fullscreen" | "side" | "pip"
visuals_motionoptional
boolean
default false
captionsoptional
object
captions.onoptional
boolean
default true
captions.styleoptional
"classic" | "bold" | "minimal"
default "classic"
musicoptional
object
music.track_idRequired
"calm" | "bright" | "warm" | "pulse"
music.volumeoptional
number
0–1 · default 0.15
max_secondsoptional
integer
1–3600
metadataoptional
map<string, string>
pronunciationsoptional
object[]
0–200 items
pronunciations[].textRequired
string
1–100 chars
pronunciations[].sayRequired
string
1–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
Field
Type
Description
objectRequired
"video_avatar.estimate"
secondsRequired
integer
-9007199254740991–9007199254740991
by_modeRequired
object
by_mode.character_onlyRequired
object
by_mode.character_visualsRequired
object
max_secondsRequired
integer
The longest video allowed for this request (your max_seconds, never above the platform maximum)-9007199254740991–9007199254740991
fitsRequired
boolean
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
modeoptional
"character_only" | "character_visuals"
default "character_only"
character_idoptional
string
1–64 chars
image_urloptional
string
uri · 0–2000 chars
scriptoptional
string
1–20000 chars
audio_urloptional
string
uri · 0–2000 chars
voice_idoptional
string
0–64 chars
languageoptional
string
2–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"
backgroundoptional
object
background.typeRequired
"character" | "color" | "image" | "blur"
background.valueoptional
string
0–2000 chars
mediaoptional
object[]
0–30 items
media[].typeRequired
"image" | "video" | "slide" | "logo"
media[].urloptional
string
uri · 0–2000 chars
media[].titleoptional
string
1–120 chars
media[].bulletsoptional
string[]
0–6 items
media[].slideoptional
object
media[].start_sRequired
number
0–3600
media[].end_sRequired
number
0–3600
media[].layoutoptional
"fullscreen" | "side" | "pip" | "lower-third"
default "fullscreen"
scenesoptional
object[]
1–120 items
scenes[].start_soptional
number
0–3600 · default 0
scenes[].end_soptional
number
0–3600 · default 0
scenes[].textRequired
string
1–2000 chars
scenes[].visual_promptoptional
string
0–1000 chars · default ""
scenes[].layoutoptional
"presenter" | "fullscreen" | "side" | "pip"
visuals_motionoptional
boolean
default false
captionsoptional
object
captions.onoptional
boolean
default true
captions.styleoptional
"classic" | "bold" | "minimal"
default "classic"
musicoptional
object
music.track_idRequired
"calm" | "bright" | "warm" | "pulse"
music.volumeoptional
number
0–1 · default 0.15
max_secondsoptional
integer
1–3600
metadataoptional
map<string, string>
pronunciationsoptional
object[]
0–200 items
pronunciations[].textRequired
string
1–100 chars
pronunciations[].sayRequired
string
1–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"}}'
Charged so far (the final cost once done; 0 when failed). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
linesRequired
object[]
One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productRequired
string
lines[].unitsRequired
number
lines[].cost_usdRequired
string
This line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusRequired
"held" | "settled" | "released"
scenesRequired
object[]
scenes[].start_sRequired
number
scenes[].end_sRequired
number
scenes[].textRequired
string
scenes[].layoutRequired
"presenter" | "fullscreen" | "side" | "pip"
How the presenter and the scene's visual share the frame
scenes[].visual_promptRequired
string
segmentsRequired
object[]
segments[].indexRequired
integer
-9007199254740991–9007199254740991
segments[].start_sRequired
number
segments[].end_sRequired
number
segments[].statusRequired
"pending" | "running" | "done"
resultRequired
object | null
errorRequired
object | null
ai_generatedRequired
true
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
completedRequired
integer | null
outputs_expire_atRequired
integer | 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
A visible "AI-generated" mark is drawn on this account's videos
watermark_ownRequired
boolean
watermark_set_by_parentRequired
boolean
Set 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
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.
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
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.
POST/v1/connect_links
Create a connect link
Scope: connectionsLive keys only
A single-use hosted page (branded with your name and logo) where the account owner signs in to the provider. Send url to them; you receive connection.created when they finish. With RelayPoint-Account the link is for one of your customers. Resellers need approved business verification (kyc_required).
Parameters
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
catalog_slugRequired
string
Catalogue item, e.g. gmail (see GET /v1/catalog)1–120 chars
labeloptional
string
0–120 chars
redirect_urloptional
string
Where the account owner is sent after connectinguri · 0–2000 chars
Unix time in seconds-9007199254740991–9007199254740991
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
urloptional
string
The hosted page to send the account owner to (returned once, on create)
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/connect_links/{id}
Revoke a connect link
Scope: connections
An open link stops working at once.
Parameters
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Unix time in seconds-9007199254740991–9007199254740991
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
urloptional
string
The hosted page to send the account owner to (returned once, on create)
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/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
Field
Type
Description
include_sub_accounts (query)optional
"true" | "false"
Resellers: include connections of sub-accounts
include_disconnected (query)optional
"true" | "false"
end_user_id (query)optional
string
RelayPoint Connect: only this end user's connections (in the key's mode: test keys see test connections)
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
catalog_slugRequired
string
1–120 chars
credentialsRequired
map<string, string>
The item's fields (see `fields` in GET /v1/catalog)
Unix time in seconds-9007199254740991–9007199254740991
disconnectedRequired
integer | 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Unix time in seconds-9007199254740991–9007199254740991
disconnectedRequired
integer | 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
methodoptional
"GET" | "POST" | "PUT" | "PATCH" | "DELETE"
default "GET"
pathRequired
string
Path on the provider's API host (e.g. /v1.0/me) or a full https URL on an allowed host1–2000 chars
queryoptional
map<string, string | string[]>
headersoptional
map<string, string>
Only accept, content-type, if-match, if-none-match, prefer and a few provider headers are forwarded
bodyoptional
any
JSON body (objects are sent as application/json; strings as given)
The provider's HTTP status-9007199254740991–9007199254740991
headersRequired
map<string, string>
content-type, etag, location, retry-after and the provider's rate-limit headers
bodyRequired
any
Parsed 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Same as GET, for clients that avoid GET for secrets.
Parameters
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
nameRequired
string
1–120 chars
external_refoptional
string
Your own customer id (unique per reseller)1–120 chars
Unix 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
Field
Type
Description
id (path)Required
string
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
nameoptional
string
1–120 chars
external_refoptional
string
Your own customer id (unique per reseller)1–120 chars
Unix 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
Field
Type
Description
id (path)Required
string
Idempotency-Key (header)optional
string
Your 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
Unix 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
Field
Type
Description
id (path)Required
string
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Unix time in seconds-9007199254740991–9007199254740991
recent_deliveriesRequired
object[]
recent_deliveries[].idRequired
string
recent_deliveries[].event_idRequired
string
recent_deliveries[].typeRequired
string
recent_deliveries[].statusRequired
string
recent_deliveries[].attemptsRequired
integer
-9007199254740991–9007199254740991
recent_deliveries[].last_status_codeRequired
integer | null
recent_deliveries[].next_attemptRequired
integer | null
recent_deliveries[].createdRequired
integer
Unix 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Unix 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Returns the new secret once; deliveries are signed with it from now on.
Parameters
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
idRequired
string
objectRequired
"webhook_endpoint"
urlRequired
string
eventsRequired
enum[]
descriptionRequired
string | null
enabledRequired
boolean
createdRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
secretRequired
string
whsec_… 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
objectRequired
"webhook_test"
endpointRequired
string
delivery_idRequired
string | 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Your 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_urloptional
string
Full-page mode: where the browser returns after connectinguri · 0–2000 chars
cst_…: only in the create response. Pass it to RelayPointConnect.open() in the browser.
urloptional
string
The hosted connect page (full-page mode): only in the create response
connectionsRequired
string[]
expires_atRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
createdRequired
integer
Unix 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
POST/v1/connect/hub-links
Create a Social hub link
Scope: connections
A signed, single-use link (1–60 minutes, default 10) that opens the hosted Social hub for one end user, branded with your name, logo and colours, without a RelayPoint login. Opening it starts a 2-hour hub session. Create it when the person clicks "Social hub" in your portal and redirect them to url. Live keys need the RelayPoint Connections package (package_required).
Parameters
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Your own id for the person or entity (e.g. agent_123, company)
display_nameoptional
string
0–120 chars
return_urloptional
string
The hub's back link (your portal)uri · 0–2000 chars
Unix time in seconds-9007199254740991–9007199254740991
Possible errors
400 invalid_request
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/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
Field
Type
Description
publishable_key (query)optional
string
0–80 chars
origin (query)optional
string
0–300 chars
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Send only the fields to change. x_client_id and x_client_secret go together; the secret is stored encrypted and never returned.
Parameters
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
approval_requiredoptional
boolean
ai_assist_enabledoptional
boolean
timezoneoptional
string
IANA time zone, e.g. Africa/Johannesburg0–64 chars
x_client_idoptional
string | null
Your own X developer app (OAuth 2.0 client id). Callback URL to register: <app>/connect/callback
x_client_secretoptional
string | null
Stored encrypted; never returned
x_use_relaypoint_appoptional
boolean
Without your own key: use RelayPoint's X app (monthly post cap per account)
Roles: member (default), drafter (with approval_required on, their posts wait in pending_approval) and approver (approves or rejects them).
Parameters
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
display_nameoptional
string | null
roleoptional
"member" | "drafter" | "approver"
drafter: posts wait for an approver when approvals are on
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
Field
Type
Description
RelayPoint-Publishable-Key (header)Required
string
Your publishable key (rp_pk_live_… / rp_pk_test_…).
200 The end user's connectionsClientConnectionList
Response fields
Field
Type
Description
objectRequired
"list"
dataRequired
object[]
data[].idRequired
string
data[].providerRequired
enum | null
data[].account_labelRequired
string | null
data[].statusRequired
string
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
Field
Type
Description
end_user_id (query)Required
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Whose connections it posts to
author_end_user_idoptional
string
Who wrote it (default end_user_id). A drafter's post waits for an approver.
textoptional
string
0–10000 chars · default ""
titleoptional
string
YouTube title (default: the first line of the text)0–100 chars
hashtagsoptional
string[]
0–30 items
image_urloptional
string
uri · 0–2000 chars
video_urloptional
string
uri · 0–2000 chars
mediaoptional
string[]
A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urloptional
string
uri · 0–2000 chars
overridesoptional
map<string, object>
Per network (facebook, instagram…) or per connection id: text, hashtags, link_url, title
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Whose connections it posts to
author_end_user_idoptional
string
Who wrote it (default end_user_id). A drafter's post waits for an approver.
textoptional
string
0–10000 chars · default ""
titleoptional
string
YouTube title (default: the first line of the text)0–100 chars
hashtagsoptional
string[]
0–30 items
image_urloptional
string
uri · 0–2000 chars
video_urloptional
string
uri · 0–2000 chars
mediaoptional
string[]
A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urloptional
string
uri · 0–2000 chars
overridesoptional
map<string, object>
Per network (facebook, instagram…) or per connection id: text, hashtags, link_url, title
Save 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"]}'
queued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequired
object | 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
queued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequired
object | 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
approver_end_user_idRequired
string
Your own id for the person or entity (e.g. agent_123, company)
queued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequired
object | 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
approver_end_user_idRequired
string
Your own id for the person or entity (e.g. agent_123, company)
reasonoptional
string
0–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."}'
queued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequired
object | 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
Field
Type
Description
id (path)Required
string
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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"
queued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsRequired
object | 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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
end_user_id (query)Required
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
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
Field
Type
Description
end_user_id (query)optional
string
Your own id for the person or entity (e.g. agent_123, company)
from (query)optional
integer
Unix seconds (default: 30 days ago)>0–9007199254740991
to (query)optional
integer
>0–9007199254740991
group_by (query)optional
"connection" | "end_user" | "provider"
default "provider"
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Unix time in seconds-9007199254740991–9007199254740991
toRequired
integer
Unix time in seconds-9007199254740991–9007199254740991
group_byRequired
"provider" | "connection" | "end_user"
totalsRequired
object
totals.postsRequired
integer
-9007199254740991–9007199254740991
totals.impressionsRequired
number
totals.reachRequired
number
totals.engagementRequired
number
totals.clicksRequired
number
totals.likesRequired
number
totals.commentsRequired
number
totals.sharesRequired
number
totals.viewsRequired
number
dataRequired
object[]
data[].postsRequired
integer
-9007199254740991–9007199254740991
data[].impressionsRequired
number
data[].reachRequired
number
data[].engagementRequired
number
data[].clicksRequired
number
data[].likesRequired
number
data[].commentsRequired
number
data[].sharesRequired
number
data[].viewsRequired
number
data[].keyRequired
string
data[].provideroptional
string
data[].labeloptional
string
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Your own id for the person or entity (e.g. agent_123, company)
fileRequired
string
The image or video (multipart file field). Or send JSON (SocialMediaFromUrl) instead.binary
Removes it from the end user's library. Posts already published keep their media.
Parameters
Field
Type
Description
id (path)Required
string
end_user_id (query)Required
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
end_user_id (query)Required
string
Your own id for the person or entity (e.g. agent_123, company)
connection (query)optional
string
0–64 chars
q (query)optional
string
0–100 chars
page_size (query)optional
integer
1–100 · default 25
page_token (query)optional
string
0–500 chars
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Multipart file (at most 10 MB) with end_user_id, and optionally connection, name and folder_id.
Parameters
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Your own id for the person or entity (e.g. agent_123, company)
fileRequired
string
The file (multipart file field), at most 10 MBbinary
Copies an image or video from the end user's Drive into their media library, ready for a post's media.
Parameters
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Your own id for the person or entity (e.g. agent_123, company)
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
Field
Type
Description
end_user_id (query)Required
string
Your own id for the person or entity (e.g. agent_123, company)
connection (query)optional
string
0–64 chars
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
phone in international format. Record opt_in (source, proof, at) to send templates and broadcasts: keep what the person agreed to and how.
Parameters
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Your own id for the person or entity (e.g. agent_123, company)
connectionoptional
string
0–64 chars
phoneRequired
string
International format, e.g. +278212345670–32 chars
nameoptional
string
0–120 chars
opt_inoptional
object
opt_in.sourceRequired
string
Where they opted in (e.g. website enquiry form)1–200 chars
opt_in.proofRequired
string
What they agreed to and how (checkbox wording, form URL, timestamp, message id…)1–2000 chars
opt_in.atoptional
string | integer
ISO 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
Field
Type
Description
idRequired
string
objectRequired
"whatsapp_contact"
phoneRequired
string
nameRequired
string | null
opted_inRequired
boolean
opt_inRequired
object | null
opted_out_atRequired
integer | null
last_inbound_atRequired
integer | null
window_openRequired
boolean
Free-form text is allowed (within 24 hours of the contact's last message)
unreadRequired
integer
-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
Field
Type
Description
end_user_id (query)Required
string
Your own id for the person or entity (e.g. agent_123, company)
connection (query)optional
string
0–64 chars
opted_in (query)optional
"true" | "false"
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Records an opt-out: no more templates or broadcasts. Inbound "STOP", "arrêt" and "parar" do the same.
Parameters
Field
Type
Description
id (path)Required
string
end_user_id (query)Required
string
Your own id for the person or entity (e.g. agent_123, company)
connection (query)optional
string
0–64 chars
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Free-form text is allowed (within 24 hours of the contact's last message)
unreadRequired
integer
-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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
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
Field
Type
Description
RelayPoint-Account (header)optional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (header)optional
string
Your 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
Field
Type
Description
end_user_idRequired
string
Your own id for the person or entity (e.g. agent_123, company)