Envie a sua chave API como token bearer. As chaves live (rp_live_…) fazem chamadas reais e cobradas; as chaves de teste (rp_test_…) devolvem resultados de exemplo e nunca são cobradas.
Cabeçalhos
Authorization: Bearer rp_live_…
A sua chave API.
RelayPoint-Account: org_…
Revendedores: agir por uma das suas subcontas.
Idempotency-Key: …
Repetir pedidos POST em segurança; nunca cobrado duas vezes.
Permissões
Uma chave com “*” pode usar todas as permissões exceto as duas permissões de ligações abaixo, que têm de ser concedidas pelo nome numa chave live.
chatembeddingsimagesjobsaudiousagebillingsub_accountsconnectionswebhooksconnections:credentials · concedida só pelo nomeconnections:request · concedida só pelo nomesocialdrivewhatsapp
Erros
Cada erro é um JSON com error.code, error.message e error.request_id. O estado HTTP depende do código:
Código
Estado
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
Permissão: 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]).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
modelObrigatório
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_callsopcional
ToolCall[]
role assistant: the tool calls of an earlier answer, sent back as they came0–128 items
max_tokensopcional
integer
1–32768
max_completion_tokensopcional
integer
1–32768
temperatureopcional
number
0–2
top_popcional
number
0–1
stopopcional
string | string[]
seedopcional
integer
-9007199254740991–9007199254740991
streamopcional
boolean
response_formatopcional
object
toolsopcional
ToolDefinition[]
Functions the model may call. Not supported with stream: true.0–128 items
tool_choiceopcional
"auto" | "none" | "required" | object
Default auto when tools are sent
parallel_tool_callsopcional
boolean
false asks for at most one tool call per answer
provideropcional
"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.
useropcional
string
0–200 chars
Exemplos
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}'
Respostas
200 The completionChatCompletion
Com stream: true, eventos do servidor (SSE) do tipo ChatCompletionChunk
Campos da resposta
Campo
Tipo
Descrição
idObrigatório
string
objectObrigatório
"chat.completion"
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
modelObrigatório
string
The RelayPoint product id you asked for
choicesObrigatório
object[]
choices[].indexObrigatório
integer
-9007199254740991–9007199254740991
choices[].messageObrigatório
object
choices[].finish_reasonObrigatório
"stop" | "length" | "tool_calls"
usageObrigatório
ChatUsage
Erros possíveis
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
Permissão: 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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
modelopcional
string
1–100 chars · predefinido "rp/embed"
inputObrigatório
string | string[]
encoding_formatopcional
"float" | "base64"
predefinido "float"
useropcional
string
0–200 chars
Exemplos
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"]}'
Respostas
200 The vectors, in input orderEmbeddingList
Campos da resposta
Campo
Tipo
Descrição
objectObrigatório
"list"
modelObrigatório
string
dataObrigatório
object[]
data[].objectObrigatório
"embedding"
data[].indexObrigatório
integer
-9007199254740991–9007199254740991
data[].embeddingObrigatório
number[] | string
usageObrigatório
object
usage.prompt_tokensObrigatório
integer
-9007199254740991–9007199254740991
usage.total_tokensObrigatório
integer
-9007199254740991–9007199254740991
usage.cost_usdObrigatório
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
modelObrigatório
string
dataObrigatório
object[]
data[].urlopcional
string
data[].file_idopcional
string
data[].expires_atopcional
integer
Unix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonopcional
string
usageObrigatório
object
usage.imagesObrigatório
integer
-9007199254740991–9007199254740991
usage.cost_usdObrigatório
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erros possíveis
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)
Permissão: images
Same as POST /v1/images, at the path OpenAI clients use.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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"}'
Respostas
200 The imagesImageResponse
Campos da resposta
Campo
Tipo
Descrição
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
modelObrigatório
string
dataObrigatório
object[]
data[].urlopcional
string
data[].file_idopcional
string
data[].expires_atopcional
integer
Unix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonopcional
string
usageObrigatório
object
usage.imagesObrigatório
integer
-9007199254740991–9007199254740991
usage.cost_usdObrigatório
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Respostas
200 The audio
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
modelopcional
string
1–100 chars · predefinido "rp/stt"
languageopcional
string
2–12 chars
response_formatopcional
"json" | "text" | "verbose_json"
predefinido "json"
diarizeopcional
"true" | "false"
num_speakersopcional
integer
1–32
fileObrigatório
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[].textObrigatório
string
words[].startObrigatório
number
words[].endObrigatório
number
words[].speakerObrigatório
string | null
fallback_fromopcional
string
Set when the provider was unavailable and the house product answered (fallback is opt-in)
usageObrigatório
object
usage.secondsObrigatório
number
usage.cost_usdObrigatório
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
usage.billing_modeopcional
"byok"
usage.provideropcional
string
usage.platform_fee_usdopcional
string
usage.list_equivalent_cost_usdopcional
string
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
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
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
deletedObrigatório
integer | null
Erros possíveis
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
Permissão: audio
Deletes the voice at the supplier and here; it can no longer be used. The consent record and recording are kept as evidence.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
deletedObrigatório
integer | null
Erros possíveis
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
Permissão: 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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
modelopcional
"rp/voice-live"
predefinido "rp/voice-live"
instructionsopcional
string
0–16000 chars · predefinido "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?"}'
Respostas
201 The session and how to join itVoiceLiveSessionCreated
Campos da resposta
Campo
Tipo
Descrição
objectObrigatório
"voice_live.session"
idObrigatório
string
modelObrigatório
"rp/voice-live"
statusObrigatório
"created" | "active" | "ended"
voiceObrigatório
string
languageObrigatório
string
transportObrigatório
"websocket" | "twilio"
audio_formatObrigatório
"pcm16" | "mulaw"
sample_rateObrigatório
integer
-9007199254740991–9007199254740991
max_minutesObrigatório
integer
-9007199254740991–9007199254740991
max_duration_secondsObrigatório
integer
The call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsObrigatório
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
accountObrigatório
string
metadataObrigatório
map<string, string> | null
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
startedObrigatório
integer | null
completedObrigatório
integer | null
outputsObrigatório
object[]
outputs[].file_idObrigatório
string
outputs[].nameObrigatório
string
outputs[].content_typeObrigatório
string
outputs[].sizeObrigatório
integer | null
outputs[].urlObrigatório
string | null
Signed download URL while outputs are kept
outputs_expire_atObrigatório
integer | null
resultObrigatório
any | null
Product-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorObrigatório
object | null
usageObrigatório
object | null
billing_modeopcional
"credits" | "byok"
provideropcional
string
fallback_fromopcional
string
Set when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedopcional
boolean
true for generated media: label it as AI-generated where the law requires
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
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)
avatarsObrigatório
object[]
avatars[].idObrigatório
string
avatars[].nameObrigatório
string
avatars[].typeObrigatório
string
avatars[].preview_image_urlObrigatório
string | null
avatars[].preview_video_urlObrigatório
string | null
avatars[].default_voice_idObrigatório
string | null
avatars[].ownedObrigatório
boolean
Your own avatar (consent needed)
voicesObrigatório
object[]
voices[].idObrigatório
string
voices[].nameObrigatório
string
voices[].languageObrigatório
string
voices[].genderObrigatório
string
voices[].preview_audio_urlObrigatório
string | null
voices[].ownedObrigatório
boolean
cached_for_secondsObrigatório
integer
-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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"}'
Respostas
202 The pending characterCharacter
Campos da resposta
Campo
Tipo
Descrição
idObrigatório
string
chr_…
objectObrigatório
"character"
stockObrigatório
boolean
true for RelayPoint's ready stock presenters (original AI-generated people)
kindObrigatório
"generated" | "trained" | "stock"
statusObrigatório
"pending" | "ready" | "failed" | "disabled"
nameObrigatório
string
descriptionObrigatório
string
clothingObrigatório
string
styleObrigatório
string
backgroundObrigatório
string | null
genderObrigatório
string | null
age_bandObrigatório
string | null
ethnicityObrigatório
string | null
roleObrigatório
string | null
tagsObrigatório
string[]
voice_idObrigatório
string | null
Default voice for this character (GET /v1/voices)
parent_idObrigatório
string | null
Variants: the character they were made from (same identity and seed)
referenceObrigatório
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksopcional
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedopcional
true
job_idObrigatório
string | null
errorObrigatório
string | null
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
age (consulta)opcional
"18-29" | "30-44" | "45-59" | "60+"
gender (consulta)opcional
"female" | "male"
ethnicity (consulta)opcional
string
0–40 chars
style (consulta)opcional
string
0–40 chars
q (consulta)opcional
string
0–80 chars
stock (consulta)opcional
"true" | "false"
limit (consulta)opcional
integer
1–100 · predefinido 50
RelayPoint-Account (cabeçalho)opcional
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)
kindObrigatório
"generated" | "trained" | "stock"
statusObrigatório
"pending" | "ready" | "failed" | "disabled"
nameObrigatório
string
descriptionObrigatório
string
clothingObrigatório
string
styleObrigatório
string
backgroundObrigatório
string | null
genderObrigatório
string | null
age_bandObrigatório
string | null
ethnicityObrigatório
string | null
roleObrigatório
string | null
tagsObrigatório
string[]
voice_idObrigatório
string | null
Default voice for this character (GET /v1/voices)
parent_idObrigatório
string | null
Variants: the character they were made from (same identity and seed)
referenceObrigatório
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksopcional
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedopcional
true
job_idObrigatório
string | null
errorObrigatório
string | null
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
clothingopcional
string
0–300 chars
backgroundopcional
string
0–300 chars
Exemplos
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"}'
Respostas
202 The pending variantCharacter
Campos da resposta
Campo
Tipo
Descrição
idObrigatório
string
chr_…
objectObrigatório
"character"
stockObrigatório
boolean
true for RelayPoint's ready stock presenters (original AI-generated people)
kindObrigatório
"generated" | "trained" | "stock"
statusObrigatório
"pending" | "ready" | "failed" | "disabled"
nameObrigatório
string
descriptionObrigatório
string
clothingObrigatório
string
styleObrigatório
string
backgroundObrigatório
string | null
genderObrigatório
string | null
age_bandObrigatório
string | null
ethnicityObrigatório
string | null
roleObrigatório
string | null
tagsObrigatório
string[]
voice_idObrigatório
string | null
Default voice for this character (GET /v1/voices)
parent_idObrigatório
string | null
Variants: the character they were made from (same identity and seed)
referenceObrigatório
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksopcional
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedopcional
true
job_idObrigatório
string | null
errorObrigatório
string | null
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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)
kindObrigatório
"generated" | "trained" | "stock"
statusObrigatório
"pending" | "ready" | "failed" | "disabled"
nameObrigatório
string
descriptionObrigatório
string
clothingObrigatório
string
styleObrigatório
string
backgroundObrigatório
string | null
genderObrigatório
string | null
age_bandObrigatório
string | null
ethnicityObrigatório
string | null
roleObrigatório
string | null
tagsObrigatório
string[]
voice_idObrigatório
string | null
Default voice for this character (GET /v1/voices)
parent_idObrigatório
string | null
Variants: the character they were made from (same identity and seed)
referenceObrigatório
object | null
Reference images (signed URLs, 1 hour) once ready
photo_checksopcional
any
Trained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedopcional
true
job_idObrigatório
string | null
errorObrigatório
string | null
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
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[].productsObrigatório
string[]
data[].availableObrigatório
boolean
A route can speak it right now on rp/tts
data[].tiersObrigatório
object
Spoken now by rp/tts (ultra) / rp/tts-standard (standard)
languages_without_voiceObrigatório
object[]
languages_without_voice[].languageObrigatório
string
languages_without_voice[].nameObrigatório
string
languages_without_voice[].noteObrigatório
string
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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"}'
Respostas
200 The scriptScript
Campos da resposta
Campo
Tipo
Descrição
objectObrigatório
"script"
scriptObrigatório
string
languageObrigatório
string
styleObrigatório
string
estimated_secondsObrigatório
integer
Speaking time of the script-9007199254740991–9007199254740991
usageObrigatório
object
usage.tokensObrigatório
integer
-9007199254740991–9007199254740991
usage.cost_usdObrigatório
string
What this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
scriptObrigatório
string
1–20000 chars
languageopcional
string
2–12 chars · predefinido "en"
modeopcional
"character_only" | "character_visuals"
predefinido "character_only"
Exemplos
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"}'
Respostas
200 The planVideoAvatarPlan
Campos da resposta
Campo
Tipo
Descrição
objectObrigatório
"video_avatar.plan"
modeObrigatório
"character_only" | "character_visuals"
languageObrigatório
string
estimated_secondsObrigatório
integer
-9007199254740991–9007199254740991
scenesObrigatório
object[]
Edit and send back as `scenes` on POST /v1/video/avatar
scenes[].start_sObrigatório
number
scenes[].end_sObrigatório
number
scenes[].textObrigatório
string
scenes[].layoutObrigatório
"presenter" | "fullscreen" | "side" | "pip"
How the presenter and the scene's visual share the frame
scenes[].visual_promptObrigatório
string
usageObrigatório
object
usage.tokensObrigatório
integer
-9007199254740991–9007199254740991
usage.cost_usdObrigatório
string
What planning cost (character_visuals only). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
modeopcional
"character_only" | "character_visuals"
predefinido "character_only"
character_idopcional
string
1–64 chars
image_urlopcional
string
uri · 0–2000 chars
scriptopcional
string
1–20000 chars
audio_urlopcional
string
uri · 0–2000 chars
voice_idopcional
string
0–64 chars
languageopcional
string
2–12 chars · predefinido "en"
aspect_ratioopcional
"9:16" | "16:9" | "1:1"
predefinido "16:9"
framingopcional
"head" | "presenter"
predefinido "presenter"
qualityopcional
"ultra" | "standard"
predefinido "ultra"
resolutionopcional
"480p" | "720p" | "1080p"
predefinido "1080p"
backgroundopcional
object
background.typeObrigatório
"character" | "color" | "image" | "blur"
background.valueopcional
string
0–2000 chars
mediaopcional
object[]
0–30 items
media[].typeObrigatório
"image" | "video" | "slide" | "logo"
media[].urlopcional
string
uri · 0–2000 chars
media[].titleopcional
string
1–120 chars
media[].bulletsopcional
string[]
0–6 items
media[].slideopcional
object
media[].start_sObrigatório
number
0–3600
media[].end_sObrigatório
number
0–3600
media[].layoutopcional
"fullscreen" | "side" | "pip" | "lower-third"
predefinido "fullscreen"
scenesopcional
object[]
1–120 items
scenes[].start_sopcional
number
0–3600 · predefinido 0
scenes[].end_sopcional
number
0–3600 · predefinido 0
scenes[].textObrigatório
string
1–2000 chars
scenes[].visual_promptopcional
string
0–1000 chars · predefinido ""
scenes[].layoutopcional
"presenter" | "fullscreen" | "side" | "pip"
visuals_motionopcional
boolean
predefinido false
captionsopcional
object
captions.onopcional
boolean
predefinido true
captions.styleopcional
"classic" | "bold" | "minimal"
predefinido "classic"
musicopcional
object
music.track_idObrigatório
"calm" | "bright" | "warm" | "pulse"
music.volumeopcional
number
0–1 · predefinido 0.15
max_secondsopcional
integer
1–3600
metadataopcional
map<string, string>
pronunciationsopcional
object[]
0–200 items
pronunciations[].textObrigatório
string
1–100 chars
pronunciations[].sayObrigatório
string
1–200 chars
Exemplos
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"}}'
Respostas
200 The estimateVideoAvatarEstimate
Campos da resposta
Campo
Tipo
Descrição
objectObrigatório
"video_avatar.estimate"
secondsObrigatório
integer
-9007199254740991–9007199254740991
by_modeObrigatório
object
by_mode.character_onlyObrigatório
object
by_mode.character_visualsObrigatório
object
max_secondsObrigatório
integer
The longest video allowed for this request (your max_seconds, never above the platform maximum)-9007199254740991–9007199254740991
fitsObrigatório
boolean
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
modeopcional
"character_only" | "character_visuals"
predefinido "character_only"
character_idopcional
string
1–64 chars
image_urlopcional
string
uri · 0–2000 chars
scriptopcional
string
1–20000 chars
audio_urlopcional
string
uri · 0–2000 chars
voice_idopcional
string
0–64 chars
languageopcional
string
2–12 chars · predefinido "en"
aspect_ratioopcional
"9:16" | "16:9" | "1:1"
predefinido "16:9"
framingopcional
"head" | "presenter"
predefinido "presenter"
qualityopcional
"ultra" | "standard"
predefinido "ultra"
resolutionopcional
"480p" | "720p" | "1080p"
predefinido "1080p"
backgroundopcional
object
background.typeObrigatório
"character" | "color" | "image" | "blur"
background.valueopcional
string
0–2000 chars
mediaopcional
object[]
0–30 items
media[].typeObrigatório
"image" | "video" | "slide" | "logo"
media[].urlopcional
string
uri · 0–2000 chars
media[].titleopcional
string
1–120 chars
media[].bulletsopcional
string[]
0–6 items
media[].slideopcional
object
media[].start_sObrigatório
number
0–3600
media[].end_sObrigatório
number
0–3600
media[].layoutopcional
"fullscreen" | "side" | "pip" | "lower-third"
predefinido "fullscreen"
scenesopcional
object[]
1–120 items
scenes[].start_sopcional
number
0–3600 · predefinido 0
scenes[].end_sopcional
number
0–3600 · predefinido 0
scenes[].textObrigatório
string
1–2000 chars
scenes[].visual_promptopcional
string
0–1000 chars · predefinido ""
scenes[].layoutopcional
"presenter" | "fullscreen" | "side" | "pip"
visuals_motionopcional
boolean
predefinido false
captionsopcional
object
captions.onopcional
boolean
predefinido true
captions.styleopcional
"classic" | "bold" | "minimal"
predefinido "classic"
musicopcional
object
music.track_idObrigatório
"calm" | "bright" | "warm" | "pulse"
music.volumeopcional
number
0–1 · predefinido 0.15
max_secondsopcional
integer
1–3600
metadataopcional
map<string, string>
pronunciationsopcional
object[]
0–200 items
pronunciations[].textObrigatório
string
1–100 chars
pronunciations[].sayObrigatório
string
1–200 chars
Exemplos
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"
linesObrigatório
object[]
One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productObrigatório
string
lines[].unitsObrigatório
number
lines[].cost_usdObrigatório
string
This line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusObrigatório
"held" | "settled" | "released"
scenesObrigatório
object[]
scenes[].start_sObrigatório
number
scenes[].end_sObrigatório
number
scenes[].textObrigatório
string
scenes[].layoutObrigatório
"presenter" | "fullscreen" | "side" | "pip"
How the presenter and the scene's visual share the frame
scenes[].visual_promptObrigatório
string
segmentsObrigatório
object[]
segments[].indexObrigatório
integer
-9007199254740991–9007199254740991
segments[].start_sObrigatório
number
segments[].end_sObrigatório
number
segments[].statusObrigatório
"pending" | "running" | "done"
resultObrigatório
object | null
errorObrigatório
object | null
ai_generatedObrigatório
true
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
completedObrigatório
integer | null
outputs_expire_atObrigatório
integer | null
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
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_ownObrigatório
boolean
watermark_set_by_parentObrigatório
boolean
Set by the reseller for all its sub-accounts
Erros possíveis
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
Permissão: jobs
Turns the visible watermark on or off for this account (and, for a reseller, all its sub-accounts). Recorded in the audit log.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Permissão: Qualquer chave 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Com stream: true, eventos do servidor (SSE) do tipo CatalogEvent
Erros possíveis
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
Permissão: connectionsSó chaves live
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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
catalog_slugObrigatório
string
Catalogue item, e.g. gmail (see GET /v1/catalog)1–120 chars
labelopcional
string
0–120 chars
redirect_urlopcional
string
Where the account owner is sent after connectinguri · 0–2000 chars
Unix time in seconds-9007199254740991–9007199254740991
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
urlopcional
string
The hosted page to send the account owner to (returned once, on create)
Erros possíveis
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
Permissão: connections
An open link stops working at once.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
urlopcional
string
The hosted page to send the account owner to (returned once, on create)
Erros possíveis
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
Permissão: 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).
Parâmetros
Campo
Tipo
Descrição
include_sub_accounts (consulta)opcional
"true" | "false"
Resellers: include connections of sub-accounts
include_disconnected (consulta)opcional
"true" | "false"
end_user_id (consulta)opcional
string
RelayPoint Connect: only this end user's connections (in the key's mode: test keys see test connections)
RelayPoint-Account (cabeçalho)opcional
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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
catalog_slugObrigatório
string
1–120 chars
credentialsObrigatório
map<string, string>
The item's fields (see `fields` in GET /v1/catalog)
Unix time in seconds-9007199254740991–9007199254740991
disconnectedObrigatório
integer | null
Erros possíveis
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
Permissão: connections
Revokes the tokens at the provider where possible and stops billing the connection.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
disconnectedObrigatório
integer | null
Erros possíveis
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)
Permissão: connections:requestSó chaves live
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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
methodopcional
"GET" | "POST" | "PUT" | "PATCH" | "DELETE"
predefinido "GET"
pathObrigatório
string
Path on the provider's API host (e.g. /v1.0/me) or a full https URL on an allowed host1–2000 chars
queryopcional
map<string, string | string[]>
headersopcional
map<string, string>
Only accept, content-type, if-match, if-none-match, prefer and a few provider headers are forwarded
bodyopcional
any
JSON body (objects are sent as application/json; strings as given)
The provider's HTTP status-9007199254740991–9007199254740991
headersObrigatório
map<string, string>
content-type, etag, location, retry-after and the provider's rate-limit headers
bodyObrigatório
any
Parsed JSON, text, or base64 (see body_encoding)
body_encodingObrigatório
"json" | "text" | "base64"
Erros possíveis
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
Permissão: connections:credentialsSó chaves live
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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Same as GET, for clients that avoid GET for secrets.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Exemplos
curl -X POST https://api.relaypoints.online/v1/connections/conn_8bQ2xV0yLmN4/credentials \
-H "Authorization: Bearer $RELAYPOINT_LIVE_KEY"
Respostas
200 The credentialsConnectionCredentials
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
nameObrigatório
string
1–120 chars
external_refopcional
string
Your own customer id (unique per reseller)1–120 chars
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: sub_accounts
Name, reference, monthly cap (null for none), mark-up profile, billing email, or suspend/reactivate.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
nameopcional
string
1–120 chars
external_refopcional
string
Your own customer id (unique per reseller)1–120 chars
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: sub_accountsSó chaves live
Moves its remaining credits back to your wallet and closes it.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
Idempotency-Key (cabeçalho)opcional
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
Erros possíveis
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
Permissão: sub_accountsSó chaves live
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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
Idempotency-Key (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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_deliveriesObrigatório
object[]
recent_deliveries[].idObrigatório
string
recent_deliveries[].event_idObrigatório
string
recent_deliveries[].typeObrigatório
string
recent_deliveries[].statusObrigatório
string
recent_deliveries[].attemptsObrigatório
integer
-9007199254740991–9007199254740991
recent_deliveries[].last_status_codeObrigatório
integer | null
recent_deliveries[].next_attemptObrigatório
integer | null
recent_deliveries[].createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: webhooks
URL, events, description, or enable/disable.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Erros possíveis
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
Permissão: webhooks
Stops deliveries to it.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Exemplos
curl -X POST https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4/rotate_secret \
-H "Authorization: Bearer $RELAYPOINT_API_KEY"
Respostas
200 The endpoint and its new secretWebhookEndpointWithSecret
Campos da resposta
Campo
Tipo
Descrição
idObrigatório
string
objectObrigatório
"webhook_endpoint"
urlObrigatório
string
eventsObrigatório
enum[]
descriptionObrigatório
string | null
enabledObrigatório
boolean
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
secretObrigatório
string
whsec_… signing secret, shown only here
Erros possíveis
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
Permissão: webhooks
Queues a signed ping event to this endpoint.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Exemplos
curl -X POST https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4/test \
-H "Authorization: Bearer $RELAYPOINT_API_KEY"
Respostas
202 QueuedWebhookTest
Campos da resposta
Campo
Tipo
Descrição
objectObrigatório
"webhook_test"
endpointObrigatório
string
delivery_idObrigatório
string | null
Erros possíveis
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
Permissão: 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".
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
providersopcional
"all" | enum[]
"all" (the providers available to the account) or a listpredefinido "all"
redirect_urlopcional
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.
urlopcional
string
The hosted connect page (full-page mode): only in the create response
connectionsObrigatório
string[]
expires_atObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
createdObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
display_nameopcional
string
0–120 chars
return_urlopcional
string
The hub's back link (your portal)uri · 0–2000 chars
Unix time in seconds-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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).
Parâmetros
Campo
Tipo
Descrição
publishable_key (consulta)opcional
string
0–80 chars
origin (consulta)opcional
string
0–300 chars
RelayPoint-Account (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
approval_requiredopcional
boolean
ai_assist_enabledopcional
boolean
timezoneopcional
string
IANA time zone, e.g. Africa/Johannesburg0–64 chars
x_client_idopcional
string | null
Your own X developer app (OAuth 2.0 client id). Callback URL to register: <app>/connect/callback
x_client_secretopcional
string | null
Stored encrypted; never returned
x_use_relaypoint_appopcional
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).
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
display_nameopcional
string | null
roleopcional
"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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Publishable-Key (cabeçalho)Obrigatório
string
Your publishable key (rp_pk_live_… / rp_pk_test_…).
200 The end user's connectionsClientConnectionList
Campos da resposta
Campo
Tipo
Descrição
objectObrigatório
"list"
dataObrigatório
object[]
data[].idObrigatório
string
data[].providerObrigatório
enum | null
data[].account_labelObrigatório
string | null
data[].statusObrigatório
string
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
end_user_id (consulta)Obrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (cabeçalho)opcional
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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
string
Whose connections it posts to
author_end_user_idopcional
string
Who wrote it (default end_user_id). A drafter's post waits for an approver.
textopcional
string
0–10000 chars · predefinido ""
titleopcional
string
YouTube title (default: the first line of the text)0–100 chars
hashtagsopcional
string[]
0–30 items
image_urlopcional
string
uri · 0–2000 chars
video_urlopcional
string
uri · 0–2000 chars
mediaopcional
string[]
A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urlopcional
string
uri · 0–2000 chars
overridesopcional
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
string
Whose connections it posts to
author_end_user_idopcional
string
Who wrote it (default end_user_id). A drafter's post waits for an approver.
textopcional
string
0–10000 chars · predefinido ""
titleopcional
string
YouTube title (default: the first line of the text)0–100 chars
hashtagsopcional
string[]
0–30 items
image_urlopcional
string
uri · 0–2000 chars
video_urlopcional
string
uri · 0–2000 chars
mediaopcional
string[]
A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urlopcional
string
uri · 0–2000 chars
overridesopcional
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)
Exemplos
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[].metricsObrigatório
object | null
Erros possíveis
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
Permissão: social
Cancels a draft, a scheduled post or one pending approval. Published posts stay on the networks.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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[].metricsObrigatório
object | null
Erros possíveis
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
Permissão: social
approver_end_user_id must have the approver role. The post is then scheduled or published.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
approver_end_user_idObrigatório
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[].metricsObrigatório
object | null
Erros possíveis
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
Permissão: social
approver_end_user_id must have the approver role; reason is shown to the author.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
approver_end_user_idObrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
reasonopcional
string
0–500 chars
Exemplos
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[].metricsObrigatório
object | null
Erros possíveis
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
Permissão: social
Validates the draft again, then schedules or publishes it (or sends it for approval).
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Exemplos
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[].metricsObrigatório
object | null
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
end_user_id (consulta)Obrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
end_user_id (consulta)opcional
string
Your own id for the person or entity (e.g. agent_123, company)
from (consulta)opcional
integer
Unix seconds (default: 30 days ago)>0–9007199254740991
to (consulta)opcional
integer
>0–9007199254740991
group_by (consulta)opcional
"connection" | "end_user" | "provider"
predefinido "provider"
RelayPoint-Account (cabeçalho)opcional
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
toObrigatório
integer
Unix time in seconds-9007199254740991–9007199254740991
group_byObrigatório
"provider" | "connection" | "end_user"
totalsObrigatório
object
totals.postsObrigatório
integer
-9007199254740991–9007199254740991
totals.impressionsObrigatório
number
totals.reachObrigatório
number
totals.engagementObrigatório
number
totals.clicksObrigatório
number
totals.likesObrigatório
number
totals.commentsObrigatório
number
totals.sharesObrigatório
number
totals.viewsObrigatório
number
dataObrigatório
object[]
data[].postsObrigatório
integer
-9007199254740991–9007199254740991
data[].impressionsObrigatório
number
data[].reachObrigatório
number
data[].engagementObrigatório
number
data[].clicksObrigatório
number
data[].likesObrigatório
number
data[].commentsObrigatório
number
data[].sharesObrigatório
number
data[].viewsObrigatório
number
data[].keyObrigatório
string
data[].provideropcional
string
data[].labelopcional
string
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
fileObrigatório
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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
end_user_id (consulta)Obrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
end_user_id (consulta)Obrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcional
string
0–64 chars
q (consulta)opcional
string
0–100 chars
page_size (consulta)opcional
integer
1–100 · predefinido 25
page_token (consulta)opcional
string
0–500 chars
RelayPoint-Account (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
fileObrigatório
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
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
Permissão: whatsapp
The approved templates of the end user's WhatsApp Business account.
Parâmetros
Campo
Tipo
Descrição
end_user_id (consulta)Obrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcional
string
0–64 chars
RelayPoint-Account (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
connectionopcional
string
0–64 chars
phoneObrigatório
string
International format, e.g. +278212345670–32 chars
nameopcional
string
0–120 chars
opt_inopcional
object
opt_in.sourceObrigatório
string
Where they opted in (e.g. website enquiry form)1–200 chars
opt_in.proofObrigatório
string
What they agreed to and how (checkbox wording, form URL, timestamp, message id…)1–2000 chars
opt_in.atopcional
string | integer
ISO 8601 or unix seconds
Exemplos
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"}}'
Respostas
201 The contactWhatsAppContact
Campos da resposta
Campo
Tipo
Descrição
idObrigatório
string
objectObrigatório
"whatsapp_contact"
phoneObrigatório
string
nameObrigatório
string | null
opted_inObrigatório
boolean
opt_inObrigatório
object | null
opted_out_atObrigatório
integer | null
last_inbound_atObrigatório
integer | null
window_openObrigatório
boolean
Free-form text is allowed (within 24 hours of the contact's last message)
unreadObrigatório
integer
-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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.
Parâmetros
Campo
Tipo
Descrição
end_user_id (consulta)Obrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcional
string
0–64 chars
opted_in (consulta)opcional
"true" | "false"
RelayPoint-Account (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
id (caminho)Obrigatório
string
end_user_id (consulta)Obrigatório
string
Your own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcional
string
0–64 chars
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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)
unreadObrigatório
integer
-9007199254740991–9007199254740991
Erros possíveis
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
Permissão: 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).
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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.
Parâmetros
Campo
Tipo
Descrição
RelayPoint-Account (cabeçalho)opcional
string
Resellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcional
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
Corpo do pedido
Campo
Tipo
Descrição
end_user_idObrigatório
string
Your own id for the person or entity (e.g. agent_123, company)