Envoyez votre clé API comme jeton bearer. Les clés live (rp_live_…) font de vrais appels facturés ; les clés de test (rp_test_…) renvoient des résultats d’exemple et ne sont jamais facturées.
En-têtes
Authorization: Bearer rp_live_…
Votre clé API.
RelayPoint-Account: org_…
Revendeurs : agir pour l’un de vos sous-comptes.
Idempotency-Key: …
Réessayer les requêtes POST sans risque ; jamais facturé deux fois.
Permissions
Une clé « * » peut utiliser toutes les permissions sauf les deux permissions de connexion ci-dessous, qui doivent être accordées nommément sur une clé live.
Chaque erreur est un JSON avec error.code, error.message et error.request_id. Le statut HTTP dépend du code :
Code
Statut
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
Permission: 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]).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
modelObligatoire
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_callsfacultatif
ToolCall[]
role assistant: the tool calls of an earlier answer, sent back as they came0–128 items
max_tokensfacultatif
integer
1–32768
max_completion_tokensfacultatif
integer
1–32768
temperaturefacultatif
number
0–2
top_pfacultatif
number
0–1
stopfacultatif
string | string[]
seedfacultatif
integer
-9007199254740991–9007199254740991
streamfacultatif
boolean
response_formatfacultatif
object
toolsfacultatif
ToolDefinition[]
Functions the model may call. Not supported with stream: true.0–128 items
tool_choicefacultatif
"auto" | "none" | "required" | object
Default auto when tools are sent
parallel_tool_callsfacultatif
boolean
false asks for at most one tool call per answer
providerfacultatif
"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.
userfacultatif
string
0–200 chars
Exemples
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}'
Réponses
200 The completionChatCompletion
Avec stream: true, des événements serveur (SSE) de type ChatCompletionChunk
Champs de la réponse
Champ
Type
Description
idObligatoire
string
objectObligatoire
"chat.completion"
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
modelObligatoire
string
The RelayPoint product id you asked for
choicesObligatoire
object[]
choices[].indexObligatoire
integer
-9007199254740991–9007199254740991
choices[].messageObligatoire
object
choices[].finish_reasonObligatoire
"stop" | "length" | "tool_calls"
usageObligatoire
ChatUsage
Erreurs possibles
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
Permission: 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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
modelfacultatif
string
1–100 chars · par défaut "rp/embed"
inputObligatoire
string | string[]
encoding_formatfacultatif
"float" | "base64"
par défaut "float"
userfacultatif
string
0–200 chars
Exemples
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"]}'
Réponses
200 The vectors, in input orderEmbeddingList
Champs de la réponse
Champ
Type
Description
objectObligatoire
"list"
modelObligatoire
string
dataObligatoire
object[]
data[].objectObligatoire
"embedding"
data[].indexObligatoire
integer
-9007199254740991–9007199254740991
data[].embeddingObligatoire
number[] | string
usageObligatoire
object
usage.prompt_tokensObligatoire
integer
-9007199254740991–9007199254740991
usage.total_tokensObligatoire
integer
-9007199254740991–9007199254740991
usage.cost_usdObligatoire
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
modelObligatoire
string
dataObligatoire
object[]
data[].urlfacultatif
string
data[].file_idfacultatif
string
data[].expires_atfacultatif
integer
Unix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonfacultatif
string
usageObligatoire
object
usage.imagesObligatoire
integer
-9007199254740991–9007199254740991
usage.cost_usdObligatoire
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erreurs possibles
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)
Permission: images
Same as POST /v1/images, at the path OpenAI clients use.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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"}'
Réponses
200 The imagesImageResponse
Champs de la réponse
Champ
Type
Description
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
modelObligatoire
string
dataObligatoire
object[]
data[].urlfacultatif
string
data[].file_idfacultatif
string
data[].expires_atfacultatif
integer
Unix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonfacultatif
string
usageObligatoire
object
usage.imagesObligatoire
integer
-9007199254740991–9007199254740991
usage.cost_usdObligatoire
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Réponses
200 The audio
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
modelfacultatif
string
1–100 chars · par défaut "rp/stt"
languagefacultatif
string
2–12 chars
response_formatfacultatif
"json" | "text" | "verbose_json"
par défaut "json"
diarizefacultatif
"true" | "false"
num_speakersfacultatif
integer
1–32
fileObligatoire
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[].textObligatoire
string
words[].startObligatoire
number
words[].endObligatoire
number
words[].speakerObligatoire
string | null
fallback_fromfacultatif
string
Set when the provider was unavailable and the house product answered (fallback is opt-in)
usageObligatoire
object
usage.secondsObligatoire
number
usage.cost_usdObligatoire
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
usage.billing_modefacultatif
"byok"
usage.providerfacultatif
string
usage.platform_fee_usdfacultatif
string
usage.list_equivalent_cost_usdfacultatif
string
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
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
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
deletedObligatoire
integer | null
Erreurs possibles
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
Permission: audio
Deletes the voice at the supplier and here; it can no longer be used. The consent record and recording are kept as evidence.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
deletedObligatoire
integer | null
Erreurs possibles
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
Permission: 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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
modelfacultatif
"rp/voice-live"
par défaut "rp/voice-live"
instructionsfacultatif
string
0–16000 chars · par défaut "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?"}'
Réponses
201 The session and how to join itVoiceLiveSessionCreated
Champs de la réponse
Champ
Type
Description
objectObligatoire
"voice_live.session"
idObligatoire
string
modelObligatoire
"rp/voice-live"
statusObligatoire
"created" | "active" | "ended"
voiceObligatoire
string
languageObligatoire
string
transportObligatoire
"websocket" | "twilio"
audio_formatObligatoire
"pcm16" | "mulaw"
sample_rateObligatoire
integer
-9007199254740991–9007199254740991
max_minutesObligatoire
integer
-9007199254740991–9007199254740991
max_duration_secondsObligatoire
integer
The call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsObligatoire
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
accountObligatoire
string
metadataObligatoire
map<string, string> | null
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
startedObligatoire
integer | null
completedObligatoire
integer | null
outputsObligatoire
object[]
outputs[].file_idObligatoire
string
outputs[].nameObligatoire
string
outputs[].content_typeObligatoire
string
outputs[].sizeObligatoire
integer | null
outputs[].urlObligatoire
string | null
Signed download URL while outputs are kept
outputs_expire_atObligatoire
integer | null
resultObligatoire
any | null
Product-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorObligatoire
object | null
usageObligatoire
object | null
billing_modefacultatif
"credits" | "byok"
providerfacultatif
string
fallback_fromfacultatif
string
Set when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedfacultatif
boolean
true for generated media: label it as AI-generated where the law requires
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
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)
avatarsObligatoire
object[]
avatars[].idObligatoire
string
avatars[].nameObligatoire
string
avatars[].typeObligatoire
string
avatars[].preview_image_urlObligatoire
string | null
avatars[].preview_video_urlObligatoire
string | null
avatars[].default_voice_idObligatoire
string | null
avatars[].ownedObligatoire
boolean
Your own avatar (consent needed)
voicesObligatoire
object[]
voices[].idObligatoire
string
voices[].nameObligatoire
string
voices[].languageObligatoire
string
voices[].genderObligatoire
string
voices[].preview_audio_urlObligatoire
string | null
voices[].ownedObligatoire
boolean
cached_for_secondsObligatoire
integer
-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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"}'
Réponses
202 The pending characterCharacter
Champs de la réponse
Champ
Type
Description
idObligatoire
string
chr_…
objectObligatoire
"character"
stockObligatoire
boolean
true for RelayPoint's ready stock presenters (original AI-generated people)
kindObligatoire
"generated" | "trained" | "stock"
statusObligatoire
"pending" | "ready" | "failed" | "disabled"
nameObligatoire
string
descriptionObligatoire
string
clothingObligatoire
string
styleObligatoire
string
backgroundObligatoire
string | null
genderObligatoire
string | null
age_bandObligatoire
string | null
ethnicityObligatoire
string | null
roleObligatoire
string | null
tagsObligatoire
string[]
voice_idObligatoire
string | null
Default voice for this character (GET /v1/voices)
parent_idObligatoire
string | null
Variants: the character they were made from (same identity and seed)
referenceObligatoire
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksfacultatif
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedfacultatif
true
job_idObligatoire
string | null
errorObligatoire
string | null
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
age (requête)facultatif
"18-29" | "30-44" | "45-59" | "60+"
gender (requête)facultatif
"female" | "male"
ethnicity (requête)facultatif
string
0–40 chars
style (requête)facultatif
string
0–40 chars
q (requête)facultatif
string
0–80 chars
stock (requête)facultatif
"true" | "false"
limit (requête)facultatif
integer
1–100 · par défaut 50
RelayPoint-Account (en-tête)facultatif
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)
kindObligatoire
"generated" | "trained" | "stock"
statusObligatoire
"pending" | "ready" | "failed" | "disabled"
nameObligatoire
string
descriptionObligatoire
string
clothingObligatoire
string
styleObligatoire
string
backgroundObligatoire
string | null
genderObligatoire
string | null
age_bandObligatoire
string | null
ethnicityObligatoire
string | null
roleObligatoire
string | null
tagsObligatoire
string[]
voice_idObligatoire
string | null
Default voice for this character (GET /v1/voices)
parent_idObligatoire
string | null
Variants: the character they were made from (same identity and seed)
referenceObligatoire
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksfacultatif
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedfacultatif
true
job_idObligatoire
string | null
errorObligatoire
string | null
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
clothingfacultatif
string
0–300 chars
backgroundfacultatif
string
0–300 chars
Exemples
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"}'
Réponses
202 The pending variantCharacter
Champs de la réponse
Champ
Type
Description
idObligatoire
string
chr_…
objectObligatoire
"character"
stockObligatoire
boolean
true for RelayPoint's ready stock presenters (original AI-generated people)
kindObligatoire
"generated" | "trained" | "stock"
statusObligatoire
"pending" | "ready" | "failed" | "disabled"
nameObligatoire
string
descriptionObligatoire
string
clothingObligatoire
string
styleObligatoire
string
backgroundObligatoire
string | null
genderObligatoire
string | null
age_bandObligatoire
string | null
ethnicityObligatoire
string | null
roleObligatoire
string | null
tagsObligatoire
string[]
voice_idObligatoire
string | null
Default voice for this character (GET /v1/voices)
parent_idObligatoire
string | null
Variants: the character they were made from (same identity and seed)
referenceObligatoire
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksfacultatif
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedfacultatif
true
job_idObligatoire
string | null
errorObligatoire
string | null
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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)
kindObligatoire
"generated" | "trained" | "stock"
statusObligatoire
"pending" | "ready" | "failed" | "disabled"
nameObligatoire
string
descriptionObligatoire
string
clothingObligatoire
string
styleObligatoire
string
backgroundObligatoire
string | null
genderObligatoire
string | null
age_bandObligatoire
string | null
ethnicityObligatoire
string | null
roleObligatoire
string | null
tagsObligatoire
string[]
voice_idObligatoire
string | null
Default voice for this character (GET /v1/voices)
parent_idObligatoire
string | null
Variants: the character they were made from (same identity and seed)
referenceObligatoire
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksfacultatif
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedfacultatif
true
job_idObligatoire
string | null
errorObligatoire
string | null
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
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[].productsObligatoire
string[]
data[].availableObligatoire
boolean
A route can speak it right now on rp/tts
data[].tiersObligatoire
object
Spoken now by rp/tts (ultra) / rp/tts-standard (standard)
languages_without_voiceObligatoire
object[]
languages_without_voice[].languageObligatoire
string
languages_without_voice[].nameObligatoire
string
languages_without_voice[].noteObligatoire
string
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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"}'
Réponses
200 The scriptScript
Champs de la réponse
Champ
Type
Description
objectObligatoire
"script"
scriptObligatoire
string
languageObligatoire
string
styleObligatoire
string
estimated_secondsObligatoire
integer
Speaking time of the script-9007199254740991–9007199254740991
usageObligatoire
object
usage.tokensObligatoire
integer
-9007199254740991–9007199254740991
usage.cost_usdObligatoire
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
scriptObligatoire
string
1–20000 chars
languagefacultatif
string
2–12 chars · par défaut "en"
modefacultatif
"character_only" | "character_visuals"
par défaut "character_only"
Exemples
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"}'
Réponses
200 The planVideoAvatarPlan
Champs de la réponse
Champ
Type
Description
objectObligatoire
"video_avatar.plan"
modeObligatoire
"character_only" | "character_visuals"
languageObligatoire
string
estimated_secondsObligatoire
integer
-9007199254740991–9007199254740991
scenesObligatoire
object[]
Edit and send back as `scenes` on POST /v1/video/avatar
scenes[].start_sObligatoire
number
scenes[].end_sObligatoire
number
scenes[].textObligatoire
string
scenes[].layoutObligatoire
"presenter" | "fullscreen" | "side" | "pip"
How the presenter and the scene's visual share the frame
scenes[].visual_promptObligatoire
string
usageObligatoire
object
usage.tokensObligatoire
integer
-9007199254740991–9007199254740991
usage.cost_usdObligatoire
string
What planning cost (character_visuals only). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
modefacultatif
"character_only" | "character_visuals"
par défaut "character_only"
character_idfacultatif
string
1–64 chars
image_urlfacultatif
string
uri · 0–2000 chars
scriptfacultatif
string
1–20000 chars
audio_urlfacultatif
string
uri · 0–2000 chars
voice_idfacultatif
string
0–64 chars
languagefacultatif
string
2–12 chars · par défaut "en"
aspect_ratiofacultatif
"9:16" | "16:9" | "1:1"
par défaut "16:9"
framingfacultatif
"head" | "presenter"
par défaut "presenter"
qualityfacultatif
"ultra" | "standard"
par défaut "ultra"
resolutionfacultatif
"480p" | "720p" | "1080p"
par défaut "1080p"
backgroundfacultatif
object
background.typeObligatoire
"character" | "color" | "image" | "blur"
background.valuefacultatif
string
0–2000 chars
mediafacultatif
object[]
0–30 items
media[].typeObligatoire
"image" | "video" | "slide" | "logo"
media[].urlfacultatif
string
uri · 0–2000 chars
media[].titlefacultatif
string
1–120 chars
media[].bulletsfacultatif
string[]
0–6 items
media[].slidefacultatif
object
media[].start_sObligatoire
number
0–3600
media[].end_sObligatoire
number
0–3600
media[].layoutfacultatif
"fullscreen" | "side" | "pip" | "lower-third"
par défaut "fullscreen"
scenesfacultatif
object[]
1–120 items
scenes[].start_sfacultatif
number
0–3600 · par défaut 0
scenes[].end_sfacultatif
number
0–3600 · par défaut 0
scenes[].textObligatoire
string
1–2000 chars
scenes[].visual_promptfacultatif
string
0–1000 chars · par défaut ""
scenes[].layoutfacultatif
"presenter" | "fullscreen" | "side" | "pip"
visuals_motionfacultatif
boolean
par défaut false
captionsfacultatif
object
captions.onfacultatif
boolean
par défaut true
captions.stylefacultatif
"classic" | "bold" | "minimal"
par défaut "classic"
musicfacultatif
object
music.track_idObligatoire
"calm" | "bright" | "warm" | "pulse"
music.volumefacultatif
number
0–1 · par défaut 0.15
max_secondsfacultatif
integer
1–3600
metadatafacultatif
map<string, string>
pronunciationsfacultatif
object[]
0–200 items
pronunciations[].textObligatoire
string
1–100 chars
pronunciations[].sayObligatoire
string
1–200 chars
Exemples
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"}}'
Réponses
200 The estimateVideoAvatarEstimate
Champs de la réponse
Champ
Type
Description
objectObligatoire
"video_avatar.estimate"
secondsObligatoire
integer
-9007199254740991–9007199254740991
by_modeObligatoire
object
by_mode.character_onlyObligatoire
object
by_mode.character_visualsObligatoire
object
max_secondsObligatoire
integer
The longest video allowed for this request (your max_seconds, never above the platform maximum)-9007199254740991–9007199254740991
fitsObligatoire
boolean
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
modefacultatif
"character_only" | "character_visuals"
par défaut "character_only"
character_idfacultatif
string
1–64 chars
image_urlfacultatif
string
uri · 0–2000 chars
scriptfacultatif
string
1–20000 chars
audio_urlfacultatif
string
uri · 0–2000 chars
voice_idfacultatif
string
0–64 chars
languagefacultatif
string
2–12 chars · par défaut "en"
aspect_ratiofacultatif
"9:16" | "16:9" | "1:1"
par défaut "16:9"
framingfacultatif
"head" | "presenter"
par défaut "presenter"
qualityfacultatif
"ultra" | "standard"
par défaut "ultra"
resolutionfacultatif
"480p" | "720p" | "1080p"
par défaut "1080p"
backgroundfacultatif
object
background.typeObligatoire
"character" | "color" | "image" | "blur"
background.valuefacultatif
string
0–2000 chars
mediafacultatif
object[]
0–30 items
media[].typeObligatoire
"image" | "video" | "slide" | "logo"
media[].urlfacultatif
string
uri · 0–2000 chars
media[].titlefacultatif
string
1–120 chars
media[].bulletsfacultatif
string[]
0–6 items
media[].slidefacultatif
object
media[].start_sObligatoire
number
0–3600
media[].end_sObligatoire
number
0–3600
media[].layoutfacultatif
"fullscreen" | "side" | "pip" | "lower-third"
par défaut "fullscreen"
scenesfacultatif
object[]
1–120 items
scenes[].start_sfacultatif
number
0–3600 · par défaut 0
scenes[].end_sfacultatif
number
0–3600 · par défaut 0
scenes[].textObligatoire
string
1–2000 chars
scenes[].visual_promptfacultatif
string
0–1000 chars · par défaut ""
scenes[].layoutfacultatif
"presenter" | "fullscreen" | "side" | "pip"
visuals_motionfacultatif
boolean
par défaut false
captionsfacultatif
object
captions.onfacultatif
boolean
par défaut true
captions.stylefacultatif
"classic" | "bold" | "minimal"
par défaut "classic"
musicfacultatif
object
music.track_idObligatoire
"calm" | "bright" | "warm" | "pulse"
music.volumefacultatif
number
0–1 · par défaut 0.15
max_secondsfacultatif
integer
1–3600
metadatafacultatif
map<string, string>
pronunciationsfacultatif
object[]
0–200 items
pronunciations[].textObligatoire
string
1–100 chars
pronunciations[].sayObligatoire
string
1–200 chars
Exemples
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"
linesObligatoire
object[]
One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productObligatoire
string
lines[].unitsObligatoire
number
lines[].cost_usdObligatoire
string
This line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusObligatoire
"held" | "settled" | "released"
scenesObligatoire
object[]
scenes[].start_sObligatoire
number
scenes[].end_sObligatoire
number
scenes[].textObligatoire
string
scenes[].layoutObligatoire
"presenter" | "fullscreen" | "side" | "pip"
How the presenter and the scene's visual share the frame
scenes[].visual_promptObligatoire
string
segmentsObligatoire
object[]
segments[].indexObligatoire
integer
-9007199254740991–9007199254740991
segments[].start_sObligatoire
number
segments[].end_sObligatoire
number
segments[].statusObligatoire
"pending" | "running" | "done"
resultObligatoire
object | null
errorObligatoire
object | null
ai_generatedObligatoire
true
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
completedObligatoire
integer | null
outputs_expire_atObligatoire
integer | null
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
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_ownObligatoire
boolean
watermark_set_by_parentObligatoire
boolean
Set by the reseller for all its sub-accounts
Erreurs possibles
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
Permission: jobs
Turns the visible watermark on or off for this account (and, for a reseller, all its sub-accounts). Recorded in the audit log.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Permission: Toute clé API
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Avec stream: true, des événements serveur (SSE) de type CatalogEvent
Erreurs possibles
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
Permission: connectionsClés live uniquement
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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
catalog_slugObligatoire
string
Catalogue item, e.g. gmail (see GET /v1/catalog)1–120 chars
labelfacultatif
string
0–120 chars
redirect_urlfacultatif
string
Where the account owner is sent after connectinguri · 0–2000 chars
Unix time in seconds-9007199254740991–9007199254740991
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
urlfacultatif
string
The hosted page to send the account owner to (returned once, on create)
Erreurs possibles
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
Permission: connections
An open link stops working at once.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
urlfacultatif
string
The hosted page to send the account owner to (returned once, on create)
Erreurs possibles
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
Permission: 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).
Paramètres
Champ
Type
Description
include_sub_accounts (requête)facultatif
"true" | "false"
Resellers: include connections of sub-accounts
include_disconnected (requête)facultatif
"true" | "false"
end_user_id (requête)facultatif
string
RelayPoint Connect: only this end user's connections (in the key's mode: test keys see test connections)
RelayPoint-Account (en-tête)facultatif
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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
catalog_slugObligatoire
string
1–120 chars
credentialsObligatoire
map<string, string>
The item's fields (see `fields` in GET /v1/catalog)
Unix time in seconds-9007199254740991–9007199254740991
disconnectedObligatoire
integer | null
Erreurs possibles
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
Permission: connections
Revokes the tokens at the provider where possible and stops billing the connection.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
disconnectedObligatoire
integer | null
Erreurs possibles
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)
Permission: connections:requestClés live uniquement
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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
methodfacultatif
"GET" | "POST" | "PUT" | "PATCH" | "DELETE"
par défaut "GET"
pathObligatoire
string
Path on the provider's API host (e.g. /v1.0/me) or a full https URL on an allowed host1–2000 chars
queryfacultatif
map<string, string | string[]>
headersfacultatif
map<string, string>
Only accept, content-type, if-match, if-none-match, prefer and a few provider headers are forwarded
bodyfacultatif
any
JSON body (objects are sent as application/json; strings as given)
The provider's HTTP status-9007199254740991–9007199254740991
headersObligatoire
map<string, string>
content-type, etag, location, retry-after and the provider's rate-limit headers
bodyObligatoire
any
Parsed JSON, text, or base64 (see body_encoding)
body_encodingObligatoire
"json" | "text" | "base64"
Erreurs possibles
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
Permission: connections:credentialsClés live uniquement
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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Permission: connections:credentialsClés live uniquement
Same as GET, for clients that avoid GET for secrets.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Exemples
curl -X POST https://api.relaypoints.online/v1/connections/conn_8bQ2xV0yLmN4/credentials \
-H "Authorization: Bearer $RELAYPOINT_LIVE_KEY"
Réponses
200 The credentialsConnectionCredentials
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
nameObligatoire
string
1–120 chars
external_reffacultatif
string
Your own customer id (unique per reseller)1–120 chars
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: sub_accounts
Name, reference, monthly cap (null for none), mark-up profile, billing email, or suspend/reactivate.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
namefacultatif
string
1–120 chars
external_reffacultatif
string
Your own customer id (unique per reseller)1–120 chars
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: sub_accountsClés live uniquement
Moves its remaining credits back to your wallet and closes it.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
Idempotency-Key (en-tête)facultatif
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
Erreurs possibles
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
Permission: sub_accountsClés live uniquement
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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
Idempotency-Key (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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_deliveriesObligatoire
object[]
recent_deliveries[].idObligatoire
string
recent_deliveries[].event_idObligatoire
string
recent_deliveries[].typeObligatoire
string
recent_deliveries[].statusObligatoire
string
recent_deliveries[].attemptsObligatoire
integer
-9007199254740991–9007199254740991
recent_deliveries[].last_status_codeObligatoire
integer | null
recent_deliveries[].next_attemptObligatoire
integer | null
recent_deliveries[].createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: webhooks
URL, events, description, or enable/disable.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Erreurs possibles
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
Permission: webhooks
Stops deliveries to it.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Exemples
curl -X POST https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4/rotate_secret \
-H "Authorization: Bearer $RELAYPOINT_API_KEY"
Réponses
200 The endpoint and its new secretWebhookEndpointWithSecret
Champs de la réponse
Champ
Type
Description
idObligatoire
string
objectObligatoire
"webhook_endpoint"
urlObligatoire
string
eventsObligatoire
enum[]
descriptionObligatoire
string | null
enabledObligatoire
boolean
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
secretObligatoire
string
whsec_… signing secret, shown only here
Erreurs possibles
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
Permission: webhooks
Queues a signed ping event to this endpoint.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Exemples
curl -X POST https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4/test \
-H "Authorization: Bearer $RELAYPOINT_API_KEY"
Réponses
202 QueuedWebhookTest
Champs de la réponse
Champ
Type
Description
objectObligatoire
"webhook_test"
endpointObligatoire
string
delivery_idObligatoire
string | null
Erreurs possibles
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
Permission: 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".
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
providersfacultatif
"all" | enum[]
"all" (the providers available to the account) or a listpar défaut "all"
redirect_urlfacultatif
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.
urlfacultatif
string
The hosted connect page (full-page mode): only in the create response
connectionsObligatoire
string[]
expires_atObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
createdObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
display_namefacultatif
string
0–120 chars
return_urlfacultatif
string
The hub's back link (your portal)uri · 0–2000 chars
Unix time in seconds-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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).
Paramètres
Champ
Type
Description
publishable_key (requête)facultatif
string
0–80 chars
origin (requête)facultatif
string
0–300 chars
RelayPoint-Account (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
approval_requiredfacultatif
boolean
ai_assist_enabledfacultatif
boolean
timezonefacultatif
string
IANA time zone, e.g. Africa/Johannesburg0–64 chars
x_client_idfacultatif
string | null
Your own X developer app (OAuth 2.0 client id). Callback URL to register: <app>/connect/callback
x_client_secretfacultatif
string | null
Stored encrypted; never returned
x_use_relaypoint_appfacultatif
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).
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
display_namefacultatif
string | null
rolefacultatif
"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.
Paramètres
Champ
Type
Description
RelayPoint-Publishable-Key (en-tête)Obligatoire
string
Your publishable key (rp_pk_live_… / rp_pk_test_…).
200 The end user's connectionsClientConnectionList
Champs de la réponse
Champ
Type
Description
objectObligatoire
"list"
dataObligatoire
object[]
data[].idObligatoire
string
data[].providerObligatoire
enum | null
data[].account_labelObligatoire
string | null
data[].statusObligatoire
string
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
end_user_id (requête)Obligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (en-tête)facultatif
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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
string
Whose connections it posts to
author_end_user_idfacultatif
string
Who wrote it (default end_user_id). A drafter's post waits for an approver.
textfacultatif
string
0–10000 chars · par défaut ""
titlefacultatif
string
YouTube title (default: the first line of the text)0–100 chars
hashtagsfacultatif
string[]
0–30 items
image_urlfacultatif
string
uri · 0–2000 chars
video_urlfacultatif
string
uri · 0–2000 chars
mediafacultatif
string[]
A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urlfacultatif
string
uri · 0–2000 chars
overridesfacultatif
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
string
Whose connections it posts to
author_end_user_idfacultatif
string
Who wrote it (default end_user_id). A drafter's post waits for an approver.
textfacultatif
string
0–10000 chars · par défaut ""
titlefacultatif
string
YouTube title (default: the first line of the text)0–100 chars
hashtagsfacultatif
string[]
0–30 items
image_urlfacultatif
string
uri · 0–2000 chars
video_urlfacultatif
string
uri · 0–2000 chars
mediafacultatif
string[]
A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urlfacultatif
string
uri · 0–2000 chars
overridesfacultatif
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)
Exemples
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[].metricsObligatoire
object | null
Erreurs possibles
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
Permission: social
Cancels a draft, a scheduled post or one pending approval. Published posts stay on the networks.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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[].metricsObligatoire
object | null
Erreurs possibles
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
Permission: social
approver_end_user_id must have the approver role. The post is then scheduled or published.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
approver_end_user_idObligatoire
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[].metricsObligatoire
object | null
Erreurs possibles
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
Permission: social
approver_end_user_id must have the approver role; reason is shown to the author.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
approver_end_user_idObligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
reasonfacultatif
string
0–500 chars
Exemples
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[].metricsObligatoire
object | null
Erreurs possibles
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
Permission: social
Validates the draft again, then schedules or publishes it (or sends it for approval).
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Exemples
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[].metricsObligatoire
object | null
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
end_user_id (requête)Obligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
end_user_id (requête)facultatif
string
Your own id for the person or entity (e.g. agent_123, company)
from (requête)facultatif
integer
Unix seconds (default: 30 days ago)>0–9007199254740991
to (requête)facultatif
integer
>0–9007199254740991
group_by (requête)facultatif
"connection" | "end_user" | "provider"
par défaut "provider"
RelayPoint-Account (en-tête)facultatif
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
toObligatoire
integer
Unix time in seconds-9007199254740991–9007199254740991
group_byObligatoire
"provider" | "connection" | "end_user"
totalsObligatoire
object
totals.postsObligatoire
integer
-9007199254740991–9007199254740991
totals.impressionsObligatoire
number
totals.reachObligatoire
number
totals.engagementObligatoire
number
totals.clicksObligatoire
number
totals.likesObligatoire
number
totals.commentsObligatoire
number
totals.sharesObligatoire
number
totals.viewsObligatoire
number
dataObligatoire
object[]
data[].postsObligatoire
integer
-9007199254740991–9007199254740991
data[].impressionsObligatoire
number
data[].reachObligatoire
number
data[].engagementObligatoire
number
data[].clicksObligatoire
number
data[].likesObligatoire
number
data[].commentsObligatoire
number
data[].sharesObligatoire
number
data[].viewsObligatoire
number
data[].keyObligatoire
string
data[].providerfacultatif
string
data[].labelfacultatif
string
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
fileObligatoire
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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
end_user_id (requête)Obligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Permission: 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.
Paramètres
Champ
Type
Description
end_user_id (requête)Obligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatif
string
0–64 chars
q (requête)facultatif
string
0–100 chars
page_size (requête)facultatif
integer
1–100 · par défaut 25
page_token (requête)facultatif
string
0–500 chars
RelayPoint-Account (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
fileObligatoire
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
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
Permission: whatsapp
The approved templates of the end user's WhatsApp Business account.
Paramètres
Champ
Type
Description
end_user_id (requête)Obligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatif
string
0–64 chars
RelayPoint-Account (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
connectionfacultatif
string
0–64 chars
phoneObligatoire
string
International format, e.g. +278212345670–32 chars
namefacultatif
string
0–120 chars
opt_infacultatif
object
opt_in.sourceObligatoire
string
Where they opted in (e.g. website enquiry form)1–200 chars
opt_in.proofObligatoire
string
What they agreed to and how (checkbox wording, form URL, timestamp, message id…)1–2000 chars
opt_in.atfacultatif
string | integer
ISO 8601 or unix seconds
Exemples
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"}}'
Réponses
201 The contactWhatsAppContact
Champs de la réponse
Champ
Type
Description
idObligatoire
string
objectObligatoire
"whatsapp_contact"
phoneObligatoire
string
nameObligatoire
string | null
opted_inObligatoire
boolean
opt_inObligatoire
object | null
opted_out_atObligatoire
integer | null
last_inbound_atObligatoire
integer | null
window_openObligatoire
boolean
Free-form text is allowed (within 24 hours of the contact's last message)
unreadObligatoire
integer
-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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.
Paramètres
Champ
Type
Description
end_user_id (requête)Obligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatif
string
0–64 chars
opted_in (requête)facultatif
"true" | "false"
RelayPoint-Account (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
id (chemin)Obligatoire
string
end_user_id (requête)Obligatoire
string
Your own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatif
string
0–64 chars
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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)
unreadObligatoire
integer
-9007199254740991–9007199254740991
Erreurs possibles
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
Permission: 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).
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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.
Paramètres
Champ
Type
Description
RelayPoint-Account (en-tête)facultatif
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatif
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
Corps de la requête
Champ
Type
Description
end_user_idObligatoire
string
Your own id for the person or entity (e.g. agent_123, company)