Referência da API

Todos os endpoints /v1, gerados a partir dos mesmos esquemas com que a API valida os pedidos. As descrições estão em inglês.

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

Autenticação

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ódigoEstado
invalid_request400
invalid_json400
unknown_product400
upstream_rejected400
consent_required400
content_rejected400
video_too_long400
provider_unavailable400
opt_in_required400
unauthorized401
invalid_api_key401
insufficient_balance402
spend_cap_reached402
insufficient_provider_credit402
package_required402
forbidden403
feature_disabled403
ip_not_allowed403
domain_not_allowed403
missing_scope403
account_suspended403
kyc_required403
byok_required403
not_found404
method_not_allowed405
conflict409
idempotency_conflict409
idempotency_mismatch422
validation_failed422
window_closed409
daily_limit_reached429
payload_too_large413
byok_key_invalid424
unsupported_media_type415
rate_limited429
internal_error500
upstream_unavailable503
upstream_timeout504

AI

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

POST/v1/chat/completions

Create a chat completion

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modelObrigatóriostringRelayPoint product id, e.g. rp/text-pro1–100 chars
messagesObrigatórioobject[]1–1000 items
messages[].roleObrigatório"system" | "developer" | "user" | "assistant" | "tool"
messages[].contentObrigatóriostring | object[] | null
messages[].nameopcionalstring0–64 chars
messages[].tool_call_idopcionalstringrole tool: the id of the tool call this message answers0–100 chars
messages[].tool_callsopcionalToolCall[]role assistant: the tool calls of an earlier answer, sent back as they came0–128 items
max_tokensopcionalinteger1–32768
max_completion_tokensopcionalinteger1–32768
temperatureopcionalnumber0–2
top_popcionalnumber0–1
stopopcionalstring | string[]
seedopcionalinteger-9007199254740991–9007199254740991
streamopcionalboolean
response_formatopcionalobject
toolsopcionalToolDefinition[]Functions the model may call. Not supported with stream: true.0–128 items
tool_choiceopcional"auto" | "none" | "required" | objectDefault auto when tools are sent
parallel_tool_callsopcionalbooleanfalse 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.
useropcionalstring0–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
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"chat.completion"
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
modelObrigatóriostringThe RelayPoint product id you asked for
choicesObrigatórioobject[]
choices[].indexObrigatóriointeger-9007199254740991–9007199254740991
choices[].messageObrigatórioobject
choices[].finish_reasonObrigatório"stop" | "length" | "tool_calls"
usageObrigatórioChatUsage

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modelopcionalstring1–100 chars · predefinido "rp/embed"
inputObrigatóriostring | string[]
encoding_formatopcional"float" | "base64"predefinido "float"
useropcionalstring0–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
CampoTipoDescrição
objectObrigatório"list"
modelObrigatóriostring
dataObrigatórioobject[]
data[].objectObrigatório"embedding"
data[].indexObrigatóriointeger-9007199254740991–9007199254740991
data[].embeddingObrigatórionumber[] | string
usageObrigatórioobject
usage.prompt_tokensObrigatóriointeger-9007199254740991–9007199254740991
usage.total_tokensObrigatóriointeger-9007199254740991–9007199254740991
usage.cost_usdObrigatóriostringWhat 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modelopcionalstring1–100 chars · predefinido "rp/image"
promptObrigatóriostring1–4000 chars
nopcionalinteger1–4 · predefinido 1
sizeopcional"256x256" | "512x512" | "768x768" | "1024x1024" | "1024x1792" | "1792x1024"predefinido "1024x1024"
response_formatopcional"url" | "b64_json"predefinido "url"
useropcionalstring0–200 chars

Exemplos

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

Respostas

200 The imagesImageResponse

Campos da resposta
CampoTipoDescrição
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
modelObrigatóriostring
dataObrigatórioobject[]
data[].urlopcionalstring
data[].file_idopcionalstring
data[].expires_atopcionalintegerUnix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonopcionalstring
usageObrigatórioobject
usage.imagesObrigatóriointeger-9007199254740991–9007199254740991
usage.cost_usdObrigatóriostringWhat 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modelopcionalstring1–100 chars · predefinido "rp/image"
promptObrigatóriostring1–4000 chars
nopcionalinteger1–4 · predefinido 1
sizeopcional"256x256" | "512x512" | "768x768" | "1024x1024" | "1024x1792" | "1792x1024"predefinido "1024x1024"
response_formatopcional"url" | "b64_json"predefinido "url"
useropcionalstring0–200 chars

Exemplos

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
CampoTipoDescrição
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
modelObrigatóriostring
dataObrigatórioobject[]
data[].urlopcionalstring
data[].file_idopcionalstring
data[].expires_atopcionalintegerUnix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonopcionalstring
usageObrigatórioobject
usage.imagesObrigatóriointeger-9007199254740991–9007199254740991
usage.cost_usdObrigatóriostringWhat 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modelopcionalstring1–100 chars · predefinido "rp/tts"
inputopcionalstring1–20000 chars
segmentsopcionalobject[]1–200 items
segments[].textObrigatóriostring1–4000 chars
segments[].emotionopcionalenumneutral, warm, cheerful, excited, calm, empathetic, apologetic, serious, confident, reassuring, sad
segments[].paceopcional"slow" | "relaxed" | "normal" | "brisk" | "fast"
segments[].energyopcional"low" | "normal" | "high"
styleopcionalobject
style.emotionopcionalenumneutral, warm, cheerful, excited, calm, empathetic, apologetic, serious, confident, reassuring, sad
style.paceopcional"slow" | "relaxed" | "normal" | "brisk" | "fast"
style.energyopcional"low" | "normal" | "high"
normalizeopcionalboolean
languageopcionalstring
voiceopcionalstring1–64 chars · predefinido "default"
response_formatopcional"wav" | "mp3" | "pcm" | "mulaw"predefinido "mp3"
streamopcionalboolean
timingsopcionalboolean
pronunciationsopcionalobject[]0–200 items
pronunciations[].textObrigatóriostring1–100 chars
pronunciations[].sayObrigatóriostring1–200 chars

Exemplos

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modelopcionalstring1–100 chars · predefinido "rp/stt"
languageopcionalstring2–12 chars
response_formatopcional"json" | "text" | "verbose_json"predefinido "json"
diarizeopcional"true" | "false"
num_speakersopcionalinteger1–32
fileObrigatóriostringThe audio file (multipart file field), up to 25 MBbinary

Exemplos

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

Respostas

200 The transcriptTranscription

Campos da resposta
CampoTipoDescrição
textObrigatóriostring
languageopcionalstring | nullverbose_json only
durationopcionalnumberverbose_json only: seconds
modelopcionalstringverbose_json only
wordsopcionalobject[]rp/stt-pro with verbose_json or diarize=true: words with timings and speaker labels
words[].textObrigatóriostring
words[].startObrigatórionumber
words[].endObrigatórionumber
words[].speakerObrigatóriostring | null
fallback_fromopcionalstringSet when the provider was unavailable and the house product answered (fallback is opt-in)
usageObrigatórioobject
usage.secondsObrigatórionumber
usage.cost_usdObrigatóriostringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
usage.billing_modeopcional"byok"
usage.provideropcionalstring
usage.platform_fee_usdopcionalstring
usage.list_equivalent_cost_usdopcionalstring

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The statementConsentStatement

Campos da resposta
CampoTipoDescrição
objectObrigatório"consent_statement"
languageObrigatóriostring
textObrigatóriostring
instructionsObrigatóriostring
languagesObrigatóriostring[]

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
GET/v1/voice_clones

List your cloned voices

Permissão: audio

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 Your clonesVoiceCloneList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioVoiceClone[]
has_moreObrigatórioboolean

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
GET/v1/voice_clones/{id}

Retrieve a cloned voice

Permissão: audio

One of your cloned voices.

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The cloneVoiceClone

Campos da resposta
CampoTipoDescrição
idObrigatóriostringvc_…: use it as `voice` on rp/tts
objectObrigatório"voice_clone"
nameObrigatóriostring
languageObrigatóriostring
statusObrigatório"ready" | "deleted"
sample_secondsObrigatóriointeger-9007199254740991–9007199254740991
consentObrigatórioobject
consent.attestedObrigatóriobooleanThe consent checkbox was ticked
consent.textObrigatóriostring | nullThe checkbox wording
consent.atObrigatóriointeger | null
consent.recordingObrigatóriobooleanThe owner's spoken consent recording is kept as evidence
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
deletedObrigatóriointeger | 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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 DELETE https://api.relaypoints.online/v1/voice_clones/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Respostas

200 The deleted cloneVoiceClone

Campos da resposta
CampoTipoDescrição
idObrigatóriostringvc_…: use it as `voice` on rp/tts
objectObrigatório"voice_clone"
nameObrigatóriostring
languageObrigatóriostring
statusObrigatório"ready" | "deleted"
sample_secondsObrigatóriointeger-9007199254740991–9007199254740991
consentObrigatórioobject
consent.attestedObrigatóriobooleanThe consent checkbox was ticked
consent.textObrigatóriostring | nullThe checkbox wording
consent.atObrigatóriointeger | null
consent.recordingObrigatóriobooleanThe owner's spoken consent recording is kept as evidence
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
deletedObrigatóriointeger | 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modelopcional"rp/voice-live"predefinido "rp/voice-live"
instructionsopcionalstring0–16000 chars · predefinido "You are a friendly, helpful assistant."
voiceopcionalstring0–64 chars · predefinido "default"
languageopcionalstring
toolsopcional"save_lead" | "book_meeting" | "hand_over" | object[]0–16 items · predefinido []
audio_formatopcional"pcm16" | "mulaw"
transportopcional"websocket" | "twilio"predefinido "websocket"
max_minutesopcionalinteger1–120 · predefinido 30
max_duration_secondsopcionalinteger10–7200
silence_timeout_secondsopcionalinteger0–600 · predefinido 30
end_of_turn_msopcionalinteger200–2000 · predefinido 450
end_of_turnopcionalobject
end_of_turn.modeopcional"semantic" | "silence"predefinido "semantic"
end_of_turn.min_msopcionalinteger150–1000 · predefinido 250
end_of_turn.max_msopcionalinteger500–3000 · predefinido 1400
fillersopcionalboolean
backchannelsopcionalboolean
affective_dialogopcionalbooleanpredefinido true
proactive_audioopcionalbooleanpredefinido true
normalizeopcionalbooleanpredefinido true
phone_bandopcional"auto" | booleanpredefinido "auto"
greetingopcionalstring0–500 chars
tool_webhook_urlopcionalstring0–2000 chars
metadataopcionalmap<string, string>

Exemplos

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
CampoTipoDescrição
objectObrigatório"voice_live.session"
idObrigatóriostring
modelObrigatório"rp/voice-live"
statusObrigatório"created" | "active" | "ended"
voiceObrigatóriostring
languageObrigatóriostring
transportObrigatório"websocket" | "twilio"
audio_formatObrigatório"pcm16" | "mulaw"
sample_rateObrigatóriointeger-9007199254740991–9007199254740991
max_minutesObrigatóriointeger-9007199254740991–9007199254740991
max_duration_secondsObrigatóriointegerThe call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsObrigatóriointegerSeconds without caller speech before the call ends (0 = never)-9007199254740991–9007199254740991
toolsObrigatóriostring[]
metadataObrigatóriomap<string, string>
engineObrigatório"native" | "cascade" | nullnative: speech-to-speech; cascade: speech-to-text, model, text-to-speech
expires_atObrigatóriostringJoin before this time (60 s after creation)
started_atObrigatóriostring | null
ended_atObrigatóriostring | null
end_reasonObrigatóriostring | nullcaller_hangup, client_ended (session.end), credit_exhausted, time_limit, silence_timeout, handover, idle, upstream_unavailable, server_shutdown
secondsObrigatóriointeger-9007199254740991–9007199254740991
turnsObrigatóriointeger-9007199254740991–9007199254740991
avg_latency_msObrigatóriointeger | nullAverage time from the caller stopping to the first audio of the answer
cost_usdObrigatóriostringUS dollars as a decimal string with 6 decimals
usageObrigatóriomap<string, object>
created_atObrigatóriostring
client_secretObrigatóriostringOne-time secret to join the call (within 60 s). Keep it out of logs.
urlObrigatóriostringwss:// URL to join from a browser or app (secret in the query string)
stream_urlObrigatóriostringwss:// URL with the secret in the path, for Twilio-style media streams
webhook_secretopcionalstringSigns tool-call webhooks (RelayPoint-Signature), when tool_webhook_url is set

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
GET/v1/voice_live/sessions

List voice calls

Permissão: audio

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 CallsVoiceLiveSessionList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioVoiceLiveSession[]
has_moreObrigatórioboolean

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
GET/v1/voice_live/sessions/{id}

Retrieve a voice call

Permissão: audio

One call of this account.

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The callVoiceLiveSession

Campos da resposta
CampoTipoDescrição
objectObrigatório"voice_live.session"
idObrigatóriostring
modelObrigatório"rp/voice-live"
statusObrigatório"created" | "active" | "ended"
voiceObrigatóriostring
languageObrigatóriostring
transportObrigatório"websocket" | "twilio"
audio_formatObrigatório"pcm16" | "mulaw"
sample_rateObrigatóriointeger-9007199254740991–9007199254740991
max_minutesObrigatóriointeger-9007199254740991–9007199254740991
max_duration_secondsObrigatóriointegerThe call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsObrigatóriointegerSeconds without caller speech before the call ends (0 = never)-9007199254740991–9007199254740991
toolsObrigatóriostring[]
metadataObrigatóriomap<string, string>
engineObrigatório"native" | "cascade" | nullnative: speech-to-speech; cascade: speech-to-text, model, text-to-speech
expires_atObrigatóriostringJoin before this time (60 s after creation)
started_atObrigatóriostring | null
ended_atObrigatóriostring | null
end_reasonObrigatóriostring | nullcaller_hangup, client_ended (session.end), credit_exhausted, time_limit, silence_timeout, handover, idle, upstream_unavailable, server_shutdown
secondsObrigatóriointeger-9007199254740991–9007199254740991
turnsObrigatóriointeger-9007199254740991–9007199254740991
avg_latency_msObrigatóriointeger | nullAverage time from the caller stopping to the first audio of the answer
cost_usdObrigatóriostringUS dollars as a decimal string with 6 decimals
usageObrigatóriomap<string, object>
created_atObrigatóriostring

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/elevenlabs/voices

List ElevenLabs voices

Permissão: audio

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 VoicesElevenLabsVoices

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
providerObrigatório"elevenlabs"
shared_keyObrigatórioboolean
dataObrigatórioobject[]
data[].idObrigatóriostring
data[].nameObrigatóriostring
data[].categoryObrigatóriostringpremade, cloned, generated, professional
data[].labelsObrigatóriomap<string, string>
data[].preview_urlObrigatóriostring | null
cached_for_secondsObrigatóriointeger-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

Jobs

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

POST/v1/jobs

Start a job

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modelObrigatóriostring1–100 chars
inputObrigatóriomap<string, any>Product-specific input: rp/video-avatar → JobInput_rp_video_avatar, rp/video-gen → JobInput_rp_video_gen, rp/tts → JobInput_rp_tts, rp/voice-clone → JobInput_rp_voice_clone, rp/tts-standard → JobInput_rp_tts_standard, rp/image-pro → JobInput_rp_image_pro, rp/video-pro → JobInput_rp_video_pro, rp/video-avatar-pro-house → JobInput_rp_video_avatar_pro_house, rp/music → JobInput_rp_music, rp/tts-premium → JobInput_rp_tts_premium, rp/ocr → JobInput_rp_ocr, rp/video-avatar-pro → JobInput_rp_video_avatar_pro, rp/video-translate → JobInput_rp_video_translate, rp/tts-pro → JobInput_rp_tts_pro, rp/voice-clone-pro → JobInput_rp_voice_clone_pro.
metadataopcionalmap<string, string>

Exemplos

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

Respostas

202 The queued jobJob

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"job"
modelObrigatóriostring
statusObrigatório"queued" | "running" | "succeeded" | "failed" | "expired"
progressObrigatóriointeger0–100, updated by the worker while the job runs; 100 when it succeeded0–100
accountObrigatóriostring
metadataObrigatóriomap<string, string> | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
startedObrigatóriointeger | null
completedObrigatóriointeger | null
outputsObrigatórioobject[]
outputs[].file_idObrigatóriostring
outputs[].nameObrigatóriostring
outputs[].content_typeObrigatóriostring
outputs[].sizeObrigatóriointeger | null
outputs[].urlObrigatóriostring | nullSigned download URL while outputs are kept
outputs_expire_atObrigatóriointeger | null
resultObrigatórioany | nullProduct-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorObrigatórioobject | null
usageObrigatórioobject | null
billing_modeopcional"credits" | "byok"
provideropcionalstring
fallback_fromopcionalstringSet when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedopcionalbooleantrue for generated media: label it as AI-generated where the law requires

Erros possíveis

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

List jobs

Permissão: jobs

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

Parâmetros

CampoTipoDescrição
limit (consulta)opcionalinteger1–100 · predefinido 20
starting_after (consulta)opcionalstring0–100 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 A page of jobsJobList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioJob[]
has_moreObrigatórioboolean

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
GET/v1/jobs/{id}

Get a job

Permissão: jobs

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The jobJob

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"job"
modelObrigatóriostring
statusObrigatório"queued" | "running" | "succeeded" | "failed" | "expired"
progressObrigatóriointeger0–100, updated by the worker while the job runs; 100 when it succeeded0–100
accountObrigatóriostring
metadataObrigatóriomap<string, string> | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
startedObrigatóriointeger | null
completedObrigatóriointeger | null
outputsObrigatórioobject[]
outputs[].file_idObrigatóriostring
outputs[].nameObrigatóriostring
outputs[].content_typeObrigatóriostring
outputs[].sizeObrigatóriointeger | null
outputs[].urlObrigatóriostring | nullSigned download URL while outputs are kept
outputs_expire_atObrigatóriointeger | null
resultObrigatórioany | nullProduct-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorObrigatórioobject | null
usageObrigatórioobject | null
billing_modeopcional"credits" | "byok"
provideropcionalstring
fallback_fromopcionalstringSet when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedopcionalbooleantrue 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 Avatars and voicesHeyGenAssets

Campos da resposta
CampoTipoDescrição
objectObrigatório"heygen_assets"
providerObrigatório"heygen"
shared_keyObrigatóriobooleantrue: your reseller's key (stock avatars and voices only)
avatarsObrigatórioobject[]
avatars[].idObrigatóriostring
avatars[].nameObrigatóriostring
avatars[].typeObrigatóriostring
avatars[].preview_image_urlObrigatóriostring | null
avatars[].preview_video_urlObrigatóriostring | null
avatars[].default_voice_idObrigatóriostring | null
avatars[].ownedObrigatóriobooleanYour own avatar (consent needed)
voicesObrigatórioobject[]
voices[].idObrigatóriostring
voices[].nameObrigatóriostring
voices[].languageObrigatóriostring
voices[].genderObrigatóriostring
voices[].preview_audio_urlObrigatóriostring | null
voices[].ownedObrigatórioboolean
cached_for_secondsObrigatóriointeger-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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
nameObrigatóriostring1–80 chars
descriptionObrigatóriostring3–800 chars
clothingopcionalstring0–300 chars · predefinido ""
styleopcional"realistic" | "studio" | "cinematic" | "illustrated"predefinido "realistic"
backgroundopcionalstring0–300 chars · predefinido ""
genderopcional"female" | "male"
voice_idopcionalstring0–64 chars

Exemplos

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
CampoTipoDescrição
idObrigatóriostringchr_…
objectObrigatório"character"
stockObrigatóriobooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindObrigatório"generated" | "trained" | "stock"
statusObrigatório"pending" | "ready" | "failed" | "disabled"
nameObrigatóriostring
descriptionObrigatóriostring
clothingObrigatóriostring
styleObrigatóriostring
backgroundObrigatóriostring | null
genderObrigatóriostring | null
age_bandObrigatóriostring | null
ethnicityObrigatóriostring | null
roleObrigatóriostring | null
tagsObrigatóriostring[]
voice_idObrigatóriostring | nullDefault voice for this character (GET /v1/voices)
parent_idObrigatóriostring | nullVariants: the character they were made from (same identity and seed)
referenceObrigatórioobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksopcionalanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedopcionaltrue
job_idObrigatóriostring | null
errorObrigatóriostring | null
createdObrigatóriointegerUnix 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

CampoTipoDescrição
age (consulta)opcional"18-29" | "30-44" | "45-59" | "60+"
gender (consulta)opcional"female" | "male"
ethnicity (consulta)opcionalstring0–40 chars
style (consulta)opcionalstring0–40 chars
q (consulta)opcionalstring0–80 chars
stock (consulta)opcional"true" | "false"
limit (consulta)opcionalinteger1–100 · predefinido 50
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 CharactersCharacterList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioCharacter[]

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
GET/v1/characters/{id}

Get a character

Permissão: jobs

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The characterCharacter

Campos da resposta
CampoTipoDescrição
idObrigatóriostringchr_…
objectObrigatório"character"
stockObrigatóriobooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindObrigatório"generated" | "trained" | "stock"
statusObrigatório"pending" | "ready" | "failed" | "disabled"
nameObrigatóriostring
descriptionObrigatóriostring
clothingObrigatóriostring
styleObrigatóriostring
backgroundObrigatóriostring | null
genderObrigatóriostring | null
age_bandObrigatóriostring | null
ethnicityObrigatóriostring | null
roleObrigatóriostring | null
tagsObrigatóriostring[]
voice_idObrigatóriostring | nullDefault voice for this character (GET /v1/voices)
parent_idObrigatóriostring | nullVariants: the character they were made from (same identity and seed)
referenceObrigatórioobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksopcionalanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedopcionaltrue
job_idObrigatóriostring | null
errorObrigatóriostring | null
createdObrigatóriointegerUnix 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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 DELETE https://api.relaypoints.online/v1/characters/chr_4Lp8sV2nQe1 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Respostas

200 DeletedDeleted

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatóriostring
deletedObrigatóriotrue

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/characters/{id}/variants

New outfit or background

Permissão: jobs

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
clothingopcionalstring0–300 chars
backgroundopcionalstring0–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
CampoTipoDescrição
idObrigatóriostringchr_…
objectObrigatório"character"
stockObrigatóriobooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindObrigatório"generated" | "trained" | "stock"
statusObrigatório"pending" | "ready" | "failed" | "disabled"
nameObrigatóriostring
descriptionObrigatóriostring
clothingObrigatóriostring
styleObrigatóriostring
backgroundObrigatóriostring | null
genderObrigatóriostring | null
age_bandObrigatóriostring | null
ethnicityObrigatóriostring | null
roleObrigatóriostring | null
tagsObrigatóriostring[]
voice_idObrigatóriostring | nullDefault voice for this character (GET /v1/voices)
parent_idObrigatóriostring | nullVariants: the character they were made from (same identity and seed)
referenceObrigatórioobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksopcionalanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedopcionaltrue
job_idObrigatóriostring | null
errorObrigatóriostring | null
createdObrigatóriointegerUnix 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
nameObrigatóriostring1–80 chars
genderObrigatório"female" | "male"
ageopcionalinteger1–120
roleopcionalstring0–120 chars
voice_idopcionalstring0–64 chars
consentObrigatóriostring2–4000 chars
photos[]Obrigatóriostring[]3–10 photos (multipart file fields)3–10 items

Exemplos

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

Respostas

202 The pending characterCharacter

Campos da resposta
CampoTipoDescrição
idObrigatóriostringchr_…
objectObrigatório"character"
stockObrigatóriobooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindObrigatório"generated" | "trained" | "stock"
statusObrigatório"pending" | "ready" | "failed" | "disabled"
nameObrigatóriostring
descriptionObrigatóriostring
clothingObrigatóriostring
styleObrigatóriostring
backgroundObrigatóriostring | null
genderObrigatóriostring | null
age_bandObrigatóriostring | null
ethnicityObrigatóriostring | null
roleObrigatóriostring | null
tagsObrigatóriostring[]
voice_idObrigatóriostring | nullDefault voice for this character (GET /v1/voices)
parent_idObrigatóriostring | nullVariants: the character they were made from (same identity and seed)
referenceObrigatórioobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksopcionalanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedopcionaltrue
job_idObrigatóriostring | null
errorObrigatóriostring | null
createdObrigatóriointegerUnix 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 VoicesVoiceList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioobject[]
data[].idObrigatóriostring
data[].objectObrigatório"voice"
data[].nameObrigatóriostring
data[].languageObrigatóriostringBCP 47, e.g. sw-KE
data[].genderObrigatório"female" | "male"
data[].accentObrigatóriostring | null
data[].engineObrigatório"kokoro" | "chatterbox" | "ultra"
data[].defaultObrigatórioboolean
data[].preview_urlObrigatóriostring | nullA short sample (signed URL, 1 hour), or null until generated
data[].productsObrigatóriostring[]
data[].availableObrigatóriobooleanA route can speak it right now on rp/tts
data[].tiersObrigatórioobjectSpoken now by rp/tts (ultra) / rp/tts-standard (standard)
languages_without_voiceObrigatórioobject[]
languages_without_voice[].languageObrigatóriostring
languages_without_voice[].nameObrigatóriostring
languages_without_voice[].noteObrigatóriostring

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
promptObrigatóriostring3–4000 chars
styleopcionalenumauto, advertisement, informative, storytelling, tutorial, sales, announcement · predefinido "auto"
length_secondsopcionalinteger5–600 · predefinido 30
languageopcionalstring2–12 chars · predefinido "en"

Exemplos

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
CampoTipoDescrição
objectObrigatório"script"
scriptObrigatóriostring
languageObrigatóriostring
styleObrigatóriostring
estimated_secondsObrigatóriointegerSpeaking time of the script-9007199254740991–9007199254740991
usageObrigatórioobject
usage.tokensObrigatóriointeger-9007199254740991–9007199254740991
usage.cost_usdObrigatóriostringWhat 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
scriptObrigatóriostring1–20000 chars
languageopcionalstring2–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
CampoTipoDescrição
objectObrigatório"video_avatar.plan"
modeObrigatório"character_only" | "character_visuals"
languageObrigatóriostring
estimated_secondsObrigatóriointeger-9007199254740991–9007199254740991
scenesObrigatórioobject[]Edit and send back as `scenes` on POST /v1/video/avatar
scenes[].start_sObrigatórionumber
scenes[].end_sObrigatórionumber
scenes[].textObrigatóriostring
scenes[].layoutObrigatório"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptObrigatóriostring
usageObrigatórioobject
usage.tokensObrigatóriointeger-9007199254740991–9007199254740991
usage.cost_usdObrigatóriostringWhat 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modeopcional"character_only" | "character_visuals"predefinido "character_only"
character_idopcionalstring1–64 chars
image_urlopcionalstringuri · 0–2000 chars
scriptopcionalstring1–20000 chars
audio_urlopcionalstringuri · 0–2000 chars
voice_idopcionalstring0–64 chars
languageopcionalstring2–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"
backgroundopcionalobject
background.typeObrigatório"character" | "color" | "image" | "blur"
background.valueopcionalstring0–2000 chars
mediaopcionalobject[]0–30 items
media[].typeObrigatório"image" | "video" | "slide" | "logo"
media[].urlopcionalstringuri · 0–2000 chars
media[].titleopcionalstring1–120 chars
media[].bulletsopcionalstring[]0–6 items
media[].slideopcionalobject
media[].start_sObrigatórionumber0–3600
media[].end_sObrigatórionumber0–3600
media[].layoutopcional"fullscreen" | "side" | "pip" | "lower-third"predefinido "fullscreen"
scenesopcionalobject[]1–120 items
scenes[].start_sopcionalnumber0–3600 · predefinido 0
scenes[].end_sopcionalnumber0–3600 · predefinido 0
scenes[].textObrigatóriostring1–2000 chars
scenes[].visual_promptopcionalstring0–1000 chars · predefinido ""
scenes[].layoutopcional"presenter" | "fullscreen" | "side" | "pip"
visuals_motionopcionalbooleanpredefinido false
captionsopcionalobject
captions.onopcionalbooleanpredefinido true
captions.styleopcional"classic" | "bold" | "minimal"predefinido "classic"
musicopcionalobject
music.track_idObrigatório"calm" | "bright" | "warm" | "pulse"
music.volumeopcionalnumber0–1 · predefinido 0.15
max_secondsopcionalinteger1–3600
metadataopcionalmap<string, string>
pronunciationsopcionalobject[]0–200 items
pronunciations[].textObrigatóriostring1–100 chars
pronunciations[].sayObrigatóriostring1–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
CampoTipoDescrição
objectObrigatório"video_avatar.estimate"
secondsObrigatóriointeger-9007199254740991–9007199254740991
by_modeObrigatórioobject
by_mode.character_onlyObrigatórioobject
by_mode.character_visualsObrigatórioobject
max_secondsObrigatóriointegerThe longest video allowed for this request (your max_seconds, never above the platform maximum)-9007199254740991–9007199254740991
fitsObrigatórioboolean

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
modeopcional"character_only" | "character_visuals"predefinido "character_only"
character_idopcionalstring1–64 chars
image_urlopcionalstringuri · 0–2000 chars
scriptopcionalstring1–20000 chars
audio_urlopcionalstringuri · 0–2000 chars
voice_idopcionalstring0–64 chars
languageopcionalstring2–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"
backgroundopcionalobject
background.typeObrigatório"character" | "color" | "image" | "blur"
background.valueopcionalstring0–2000 chars
mediaopcionalobject[]0–30 items
media[].typeObrigatório"image" | "video" | "slide" | "logo"
media[].urlopcionalstringuri · 0–2000 chars
media[].titleopcionalstring1–120 chars
media[].bulletsopcionalstring[]0–6 items
media[].slideopcionalobject
media[].start_sObrigatórionumber0–3600
media[].end_sObrigatórionumber0–3600
media[].layoutopcional"fullscreen" | "side" | "pip" | "lower-third"predefinido "fullscreen"
scenesopcionalobject[]1–120 items
scenes[].start_sopcionalnumber0–3600 · predefinido 0
scenes[].end_sopcionalnumber0–3600 · predefinido 0
scenes[].textObrigatóriostring1–2000 chars
scenes[].visual_promptopcionalstring0–1000 chars · predefinido ""
scenes[].layoutopcional"presenter" | "fullscreen" | "side" | "pip"
visuals_motionopcionalbooleanpredefinido false
captionsopcionalobject
captions.onopcionalbooleanpredefinido true
captions.styleopcional"classic" | "bold" | "minimal"predefinido "classic"
musicopcionalobject
music.track_idObrigatório"calm" | "bright" | "warm" | "pulse"
music.volumeopcionalnumber0–1 · predefinido 0.15
max_secondsopcionalinteger1–3600
metadataopcionalmap<string, string>
pronunciationsopcionalobject[]0–200 items
pronunciations[].textObrigatóriostring1–100 chars
pronunciations[].sayObrigatóriostring1–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"}}'

Respostas

202 The queued videoVideoAvatar

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"video_avatar"
modeObrigatório"character_only" | "character_visuals"
statusObrigatórioenumqueued, scripting, planning, voicing, visuals, rendering, composing, done, failed
progressObrigatóriointeger0–100
accountObrigatóriostring
character_idObrigatóriostring | null
metadataObrigatóriomap<string, string> | null
cost_so_far_usdObrigatóriostringCharged so far (the final cost once done; 0 when failed). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
linesObrigatórioobject[]One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productObrigatóriostring
lines[].unitsObrigatórionumber
lines[].cost_usdObrigatóriostringThis line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusObrigatório"held" | "settled" | "released"
scenesObrigatórioobject[]
scenes[].start_sObrigatórionumber
scenes[].end_sObrigatórionumber
scenes[].textObrigatóriostring
scenes[].layoutObrigatório"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptObrigatóriostring
segmentsObrigatórioobject[]
segments[].indexObrigatóriointeger-9007199254740991–9007199254740991
segments[].start_sObrigatórionumber
segments[].end_sObrigatórionumber
segments[].statusObrigatório"pending" | "running" | "done"
resultObrigatórioobject | null
errorObrigatórioobject | null
ai_generatedObrigatóriotrue
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
completedObrigatóriointeger | null
outputs_expire_atObrigatóriointeger | 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The videoVideoAvatar

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"video_avatar"
modeObrigatório"character_only" | "character_visuals"
statusObrigatórioenumqueued, scripting, planning, voicing, visuals, rendering, composing, done, failed
progressObrigatóriointeger0–100
accountObrigatóriostring
character_idObrigatóriostring | null
metadataObrigatóriomap<string, string> | null
cost_so_far_usdObrigatóriostringCharged so far (the final cost once done; 0 when failed). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
linesObrigatórioobject[]One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productObrigatóriostring
lines[].unitsObrigatórionumber
lines[].cost_usdObrigatóriostringThis line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusObrigatório"held" | "settled" | "released"
scenesObrigatórioobject[]
scenes[].start_sObrigatórionumber
scenes[].end_sObrigatórionumber
scenes[].textObrigatóriostring
scenes[].layoutObrigatório"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptObrigatóriostring
segmentsObrigatórioobject[]
segments[].indexObrigatóriointeger-9007199254740991–9007199254740991
segments[].start_sObrigatórionumber
segments[].end_sObrigatórionumber
segments[].statusObrigatório"pending" | "running" | "done"
resultObrigatórioobject | null
errorObrigatórioobject | null
ai_generatedObrigatóriotrue
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
completedObrigatóriointeger | null
outputs_expire_atObrigatóriointeger | 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
GET/v1/video/avatar/settings

Get avatar settings

Permissão: jobs

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 SettingsVideoAvatarSettings

Campos da resposta
CampoTipoDescrição
objectObrigatório"video_avatar.settings"
watermarkObrigatóriobooleanA visible "AI-generated" mark is drawn on this account's videos
watermark_ownObrigatórioboolean
watermark_set_by_parentObrigatóriobooleanSet 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
watermarkObrigatórioboolean

Exemplos

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

Respostas

200 SettingsVideoAvatarSettings

Campos da resposta
CampoTipoDescrição
objectObrigatório"video_avatar.settings"
watermarkObrigatóriobooleanA visible "AI-generated" mark is drawn on this account's videos
watermark_ownObrigatórioboolean
watermark_set_by_parentObrigatóriobooleanSet by the reseller for all its sub-accounts

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
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error

Account

Products and prices, the wallet balance and usage records.

GET/v1/models

List products

Permissão: Qualquer chave API

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The productsModelList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioModel[]

Erros possíveis

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

Get the wallet balance

Permissão: Qualquer chave API

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The balanceBalance

Campos da resposta
CampoTipoDescrição
objectObrigatório"balance"
accountObrigatóriostring
currencyObrigatório"USD"
available_usdObrigatórionumber
held_usdObrigatórionumberReserved for running calls and jobs
amount_owed_usdObrigatórionumberAbove 0 when the wallet is below $0; spending is paused until it is paid
spending_pausedObrigatórioboolean
month_to_date_usdObrigatórionumber
monthly_cap_usdObrigatórionumber | null
reseller_profit_usdopcionalnumberResellers: mark-up earned and not yet withdrawn

Erros possíveis

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

List usage records

Permissão: usage

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

Parâmetros

CampoTipoDescrição
from (consulta)opcionalstringStart (inclusive), ISO 8601date-time
to (consulta)opcionalstringEnd (exclusive), ISO 8601date-time
model (consulta)opcionalstringOnly this product id0–100 chars
include_sub_accounts (consulta)opcional"true" | "false"Resellers: include usage of sub-accounts
limit (consulta)opcionalinteger1–100 · predefinido 50
starting_after (consulta)opcionalstringCursor: the last id of the previous page0–100 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 A page of usageUsageList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioUsageRecord[]
has_moreObrigatórioboolean
totalsObrigatórioobject
totals.requestsObrigatóriointeger-9007199254740991–9007199254740991
totals.price_usdObrigatórionumber

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
GET/v1/orders

List orders

Permissão: billing

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

Parâmetros

CampoTipoDescrição
status (consulta)opcional"awaiting_payment" | "paid" | "failed" | "void" | "refunded" | "partially_refunded"
kind (consulta)opcional"credits" | "bundle" | "single_connection" | "addon"credits = credit top-ups and reseller packages; bundle, single_connection, addon = connections
limit (consulta)opcionalinteger1–100 · predefinido 20
starting_after (consulta)opcionalstringCursor: the last id of the previous page0–100 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 A page of ordersOrderList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioOrder[]
has_moreObrigatórioboolean
total_countObrigatóriointeger-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
  • 429 rate_limited
  • 500 internal_error
GET/v1/orders/{id}

Get an order

Permissão: billing

One of your orders.

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The orderOrder

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"order"
accountObrigatóriostring
numberObrigatóriostringOrder number shown on the invoice
referenceObrigatóriostring
kindObrigatório"credits" | "bundle" | "single_connection" | "addon"credits = credit top-up or reseller package
descriptionObrigatóriostring
statusObrigatório"awaiting_payment" | "paid" | "failed" | "void" | "refunded" | "partially_refunded"
currencyObrigatório"USD"
amount_usdObrigatórionumber
credits_usdObrigatórionumberCredits added to the wallet (bonus included)
connectionsObrigatóriointeger-9007199254740991–9007199254740991
refunded_usdObrigatórionumber
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
paid_atObrigatóriointeger | null
invoiceObrigatórioobject
invoice.numberObrigatóriostring | nullCiel invoice number
invoice.pay_urlObrigatóriostring | nullPayment page while the order awaits payment
invoice.pdf_urlObrigatóriostring | nullInvoice PDF (API key auth, `billing` scope) once paid
invoice.currencyObrigatóriostring | nullCurrency of the Ciel invoice (Ciel's company currency, e.g. ZAR). Credits stay in USD.
invoice.amountObrigatórionumber | nullAmount of the Ciel invoice in its currency
invoice.fx_rateObrigatórionumber | null1 USD = fx_rate in the invoice currency, fixed when the order was created

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/orders/{id}/invoice

Download an invoice

Permissão: billing

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The invoice PDF

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

Catalog

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

GET/v1/catalog

Get the catalog

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

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

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioCatalogItem[]The connections catalogue (needs the connections scope; empty otherwise)
versionObrigatóriointegerCatalog version: bumped by every change that affects clients-9007199254740991–9007199254740991
account_versionObrigatóriointegerThis account's own version (custom prices, mark-ups, names, caps)-9007199254740991–9007199254740991
etagObrigatóriostringSame as the ETag header: send it as If-None-Match to get 304 while nothing changed
generated_atObrigatóriostring
currencyObrigatório"USD"
productsObrigatórioCatalogProduct[]
packsObrigatórioobject[]Credit top-up packs for this account type
packs[].idObrigatóriostring
packs[].skuObrigatóriostring | null
packs[].nameObrigatóriostring
packs[].price_usdObrigatóriostring | null
packs[].credit_usdObrigatóriostring | null
packs[].bonus_pctObrigatóriointeger-9007199254740991–9007199254740991
packs[].custom_amountObrigatórioboolean
packs[].minimum_usdObrigatóriostring | null
plansObrigatórioobject[]
plans[].idObrigatóriostring
plans[].skuObrigatóriostring | null
plans[].kindObrigatóriostring
plans[].nameObrigatóriostring
plans[].price_usdObrigatóriostringUS dollars as a decimal string with 6 decimals
plans[].connectionsObrigatóriointeger-9007199254740991–9007199254740991
plans[].monthlyObrigatórioboolean
voicesObrigatórioobject[]
voices[].idObrigatóriostring
voices[].nameObrigatóriostring
voices[].languageObrigatóriostring
voices[].genderObrigatóriostring
voices[].accentObrigatóriostring | null
voices[].defaultObrigatórioboolean
voices[].productsObrigatóriostring[]
voices[].availableObrigatórioboolean
languages_without_voiceObrigatórioobject[]
languages_without_voice[].languageObrigatóriostring
languages_without_voice[].nameObrigatóriostring
limitsObrigatórioobject
limits.video_avatar_max_secondsObrigatóriointeger-9007199254740991–9007199254740991
limits.rate_limit_per_minuteObrigatóriointeger-9007199254740991–9007199254740991
limits.monthly_cap_usdopcionalstring | nullNeeds the billing scope
limits.kyc_threshold_usdObrigatóriostringUS dollars as a decimal string with 6 decimals
limits.max_webhook_endpointsObrigatóriointeger-9007199254740991–9007199254740991
fx_ratesObrigatóriomap<string, number>Display-only exchange rates (1 USD = rate)
featuresObrigatóriomap<string, boolean>
service_statusObrigatórioobject
service_status.maintenanceObrigatórioobject
service_status.servicesObrigatórioobject[]
accountObrigatórioobject
account.idObrigatóriostring
account.typeObrigatóriostring
account.sub_accountObrigatórioboolean
account.statusObrigatóriostring
account.markup_profilesopcionalmap<string, any>[]Resellers, with the sub_accounts scope
account.white_label_namesopcionalmap<string, string>

Erros possíveis

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

Check the catalog version

Permissão: Qualquer chave API

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The versionsCatalogVersion

Campos da resposta
CampoTipoDescrição
objectObrigatório"catalog_version"
versionObrigatóriointeger-9007199254740991–9007199254740991
account_versionObrigatóriointeger-9007199254740991–9007199254740991
etagObrigatóriostring

Erros possíveis

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

Stock library preview

Permissão: Qualquer chave API

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.

Parâmetros

CampoTipoDescrição
kind (caminho)Obrigatóriostring
file (caminho)Obrigatóriostring

Exemplos

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

Respostas

200 The media (after a 302 redirect)

Erros possíveis

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

Stream catalog events (SSE)

Permissão: Qualquer chave API

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 text/event-stream

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.

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

CampoTipoDescrição
include_sub_accounts (consulta)opcional"true" | "false"Resellers: include connections of sub-accounts
include_disconnected (consulta)opcional"true" | "false"
end_user_id (consulta)opcionalstringRelayPoint Connect: only this end user's connections (in the key's mode: test keys see test connections)
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The connectionsConnectionList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioConnection[]
has_moreObrigatórioboolean

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/connections

Connect with credentials

Permissão: connectionsSó chaves live

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
catalog_slugObrigatóriostring1–120 chars
credentialsObrigatóriomap<string, string>The item's fields (see `fields` in GET /v1/catalog)

Exemplos

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

Respostas

201 The connectionConnection

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"connection"
accountObrigatóriostring
catalog_slugObrigatóriostring
statusObrigatório"pending" | "active" | "expired" | "error" | "disconnected"
account_labelObrigatóriostring | null
external_account_idObrigatóriostring | null
scopesObrigatóriostring[]
billingObrigatório"pool" | "wallet"
connect_linkObrigatóriostring | null
last_errorObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedObrigatóriointeger | null

Erros possíveis

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

Get a connection

Permissão: connections

Status, account label and granted scopes.

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The connectionConnection

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"connection"
accountObrigatóriostring
catalog_slugObrigatóriostring
statusObrigatório"pending" | "active" | "expired" | "error" | "disconnected"
account_labelObrigatóriostring | null
external_account_idObrigatóriostring | null
scopesObrigatóriostring[]
billingObrigatório"pool" | "wallet"
connect_linkObrigatóriostring | null
last_errorObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedObrigatóriointeger | 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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 DELETE https://api.relaypoints.online/v1/connections/conn_8bQ2xV0yLmN4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Respostas

200 The disconnected connectionConnection

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"connection"
accountObrigatóriostring
catalog_slugObrigatóriostring
statusObrigatório"pending" | "active" | "expired" | "error" | "disconnected"
account_labelObrigatóriostring | null
external_account_idObrigatóriostring | null
scopesObrigatóriostring[]
billingObrigatório"pool" | "wallet"
connect_linkObrigatóriostring | null
last_errorObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedObrigatóriointeger | 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
methodopcional"GET" | "POST" | "PUT" | "PATCH" | "DELETE"predefinido "GET"
pathObrigatóriostringPath on the provider's API host (e.g. /v1.0/me) or a full https URL on an allowed host1–2000 chars
queryopcionalmap<string, string | string[]>
headersopcionalmap<string, string>Only accept, content-type, if-match, if-none-match, prefer and a few provider headers are forwarded
bodyopcionalanyJSON body (objects are sent as application/json; strings as given)

Exemplos

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

Respostas

200 The provider's answerConnectionResponse

Campos da resposta
CampoTipoDescrição
objectObrigatório"connection_response"
connectionObrigatóriostring
statusObrigatóriointegerThe provider's HTTP status-9007199254740991–9007199254740991
headersObrigatóriomap<string, string>content-type, etag, location, retry-after and the provider's rate-limit headers
bodyObrigatórioanyParsed 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

curl 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
POST/v1/connections/{id}/credentials

Get credentials (POST)

Permissão: connections:credentialsSó chaves live

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
nameObrigatóriostring1–120 chars
external_refopcionalstringYour own customer id (unique per reseller)1–120 chars
monthly_cap_usdopcionalnumber | null
markup_profile_idopcionalstring | null
countryopcionalstringISO 3166-1 alpha-22–2 chars
billing_emailopcionalstring | null

Exemplos

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

Respostas

201 The sub-accountSubAccount

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"sub_account"
nameObrigatóriostring
external_refObrigatóriostring | null
statusObrigatório"active" | "suspended" | "closed"
countryObrigatóriostring
billing_emailObrigatóriostring | null
monthly_cap_usdObrigatórionumber | null
markup_profile_idObrigatóriostring | null
balanceObrigatórioobject
balance.available_usdObrigatórionumber
balance.held_usdObrigatórionumber
balance.amount_owed_usdObrigatórionumber
month_to_date_usdObrigatórionumber
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991

Erros possíveis

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

List sub-accounts

Permissão: sub_accounts

With balances and month-to-date spend.

Parâmetros

CampoTipoDescrição
limit (consulta)opcionalinteger1–100 · predefinido 50
offset (consulta)opcionalinteger0–9007199254740991 · predefinido 0
external_ref (consulta)opcionalstring0–120 chars

Exemplos

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

Respostas

200 A page of sub-accountsSubAccountList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioSubAccount[]
has_moreObrigatórioboolean

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
  • 429 rate_limited
  • 500 internal_error
GET/v1/sub_accounts/{id}

Get a sub-account

Permissão: sub_accounts

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring

Exemplos

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

Respostas

200 The sub-accountSubAccount

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"sub_account"
nameObrigatóriostring
external_refObrigatóriostring | null
statusObrigatório"active" | "suspended" | "closed"
countryObrigatóriostring
billing_emailObrigatóriostring | null
monthly_cap_usdObrigatórionumber | null
markup_profile_idObrigatóriostring | null
balanceObrigatórioobject
balance.available_usdObrigatórionumber
balance.held_usdObrigatórionumber
balance.amount_owed_usdObrigatórionumber
month_to_date_usdObrigatórionumber
createdObrigatóriointegerUnix 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
nameopcionalstring1–120 chars
external_refopcionalstringYour own customer id (unique per reseller)1–120 chars
monthly_cap_usdopcionalnumber | null
markup_profile_idopcionalstring | null
countryopcionalstringISO 3166-1 alpha-22–2 chars
billing_emailopcionalstring | null
statusopcional"active" | "suspended"

Exemplos

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

Respostas

200 The sub-accountSubAccount

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"sub_account"
nameObrigatóriostring
external_refObrigatóriostring | null
statusObrigatório"active" | "suspended" | "closed"
countryObrigatóriostring
billing_emailObrigatóriostring | null
monthly_cap_usdObrigatórionumber | null
markup_profile_idObrigatóriostring | null
balanceObrigatórioobject
balance.available_usdObrigatórionumber
balance.held_usdObrigatórionumber
balance.amount_owed_usdObrigatórionumber
month_to_date_usdObrigatórionumber
createdObrigatóriointegerUnix 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
Idempotency-Key (cabeçalho)opcionalstringYour 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 DELETE https://api.relaypoints.online/v1/sub_accounts/org_7Hk3Zr1pQs9W \
  -H "Authorization: Bearer $RELAYPOINT_LIVE_KEY"

Respostas

200 The closed sub-accountSubAccount

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"sub_account"
nameObrigatóriostring
external_refObrigatóriostring | null
statusObrigatório"active" | "suspended" | "closed"
countryObrigatóriostring
billing_emailObrigatóriostring | null
monthly_cap_usdObrigatórionumber | null
markup_profile_idObrigatóriostring | null
balanceObrigatórioobject
balance.available_usdObrigatórionumber
balance.held_usdObrigatórionumber
balance.amount_owed_usdObrigatórionumber
month_to_date_usdObrigatórionumber
createdObrigatóriointegerUnix 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
amount_usdObrigatórionumber>0–10000000
directionopcional"to_sub_account" | "to_parent"predefinido "to_sub_account"
memoopcionalstring0–200 chars

Exemplos

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

Respostas

201 The transferTransfer

Campos da resposta
CampoTipoDescrição
objectObrigatório"transfer"
idObrigatóriostring
sub_accountObrigatóriostring
directionObrigatório"to_sub_account" | "to_parent"
amount_usdObrigatórionumber
sub_account_balanceObrigatórioobject
sub_account_balance.available_usdObrigatórionumber
sub_account_balance.held_usdObrigatórionumber
sub_account_balance.amount_owed_usdObrigatórionumber

Erros possíveis

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

Webhooks

Signed event deliveries to your HTTPS endpoints.

POST/v1/webhook_endpoints

Add a webhook endpoint

Permissão: webhooks

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
urlObrigatóriostringuri · 0–2000 chars
eventsopcionalenum[]1–25 items · predefinido ["*"]
descriptionopcionalstring0–200 chars

Exemplos

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

Respostas

201 The endpoint and its secretWebhookEndpointWithSecret

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"webhook_endpoint"
urlObrigatóriostring
eventsObrigatórioenum[]
descriptionObrigatóriostring | null
enabledObrigatórioboolean
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
secretObrigatóriostringwhsec_… signing secret, shown only here

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
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/webhook_endpoints

List webhook endpoints

Permissão: webhooks

Without secrets.

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The endpointsWebhookEndpointList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioWebhookEndpoint[]
has_moreObrigatórioboolean

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
GET/v1/webhook_endpoints/{id}

Get a webhook endpoint

Permissão: webhooks

With its 20 latest deliveries.

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The endpointWebhookEndpointDetail

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"webhook_endpoint"
urlObrigatóriostring
eventsObrigatórioenum[]
descriptionObrigatóriostring | null
enabledObrigatórioboolean
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
recent_deliveriesObrigatórioobject[]
recent_deliveries[].idObrigatóriostring
recent_deliveries[].event_idObrigatóriostring
recent_deliveries[].typeObrigatóriostring
recent_deliveries[].statusObrigatóriostring
recent_deliveries[].attemptsObrigatóriointeger-9007199254740991–9007199254740991
recent_deliveries[].last_status_codeObrigatóriointeger | null
recent_deliveries[].next_attemptObrigatóriointeger | null
recent_deliveries[].createdObrigatóriointegerUnix 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
urlopcionalstringuri · 0–2000 chars
eventsopcionalenum[]1–25 items
descriptionopcionalstring | null
enabledopcionalboolean

Exemplos

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

Respostas

200 The endpointWebhookEndpoint

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"webhook_endpoint"
urlObrigatóriostring
eventsObrigatórioenum[]
descriptionObrigatóriostring | null
enabledObrigatórioboolean
createdObrigatóriointegerUnix 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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 DELETE https://api.relaypoints.online/v1/webhook_endpoints/we_6Rm2tY8uHb4 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Respostas

200 DeletedDeleted

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatóriostring
deletedObrigatóriotrue

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}/rotate_secret

Rotate the signing secret

Permissão: webhooks

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"webhook_endpoint"
urlObrigatóriostring
eventsObrigatórioenum[]
descriptionObrigatóriostring | null
enabledObrigatórioboolean
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
secretObrigatóriostringwhsec_… 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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
CampoTipoDescrição
objectObrigatório"webhook_test"
endpointObrigatóriostring
delivery_idObrigatóriostring | 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
end_user_idObrigatóriostringYour 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_urlopcionalstringFull-page mode: where the browser returns after connectinguri · 0–2000 chars
expires_in_minutesopcionalinteger5–1440 · predefinido 60

Exemplos

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

Respostas

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

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"connect_session"
end_user_idObrigatóriostring
modeObrigatório"live" | "test"
providersObrigatórioenum[]
statusObrigatório"open" | "expired"
tokenopcionalstringcst_…: only in the create response. Pass it to RelayPointConnect.open() in the browser.
urlopcionalstringThe hosted connect page (full-page mode): only in the create response
connectionsObrigatóriostring[]
expires_atObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991

Erros possíveis

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

Get a connect session

Permissão: connections

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The sessionConnectSession

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"connect_session"
end_user_idObrigatóriostring
modeObrigatório"live" | "test"
providersObrigatórioenum[]
statusObrigatório"open" | "expired"
tokenopcionalstringcst_…: only in the create response. Pass it to RelayPointConnect.open() in the browser.
urlopcionalstringThe hosted connect page (full-page mode): only in the create response
connectionsObrigatóriostring[]
expires_atObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
createdObrigatóriointegerUnix 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
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

CampoTipoDescrição
publishable_key (consulta)opcionalstring0–80 chars
origin (consulta)opcionalstring0–300 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The setup statusConnectStatus

Campos da resposta
CampoTipoDescrição
objectObrigatório"connect_status"
accountObrigatórioobject
account.idObrigatóriostring
account.nameObrigatóriostring
modeObrigatório"live" | "test"
package_activeObrigatóriobooleanAlways true in test mode
publishable_keyObrigatórioobject | null
script_urlObrigatóriostring
providersObrigatórioobject[]
providers[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
providers[].catalog_slugObrigatóriostring
providers[].availableObrigatórioboolean
providers[].reasonObrigatório"not_enabled" | "not_configured" | "awaiting_platform_approval" | "x_key_required" | null
providers[].notesObrigatóriostring[]

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
GET/v1/connect/settings

Get the workspace's Connect settings

Permissão: connections

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The settingsConnectSettings

Campos da resposta
CampoTipoDescrição
objectObrigatório"connect_settings"
approval_requiredObrigatórioboolean
ai_assist_enabledObrigatórioboolean
timezoneObrigatóriostring
x_client_idObrigatóriostring | null
x_client_secret_setObrigatórioboolean
x_use_relaypoint_appObrigatórioboolean

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/connect/settings

Update the workspace's Connect settings

Permissão: connections

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
approval_requiredopcionalboolean
ai_assist_enabledopcionalboolean
timezoneopcionalstringIANA time zone, e.g. Africa/Johannesburg0–64 chars
x_client_idopcionalstring | nullYour own X developer app (OAuth 2.0 client id). Callback URL to register: <app>/connect/callback
x_client_secretopcionalstring | nullStored encrypted; never returned
x_use_relaypoint_appopcionalbooleanWithout your own key: use RelayPoint's X app (monthly post cap per account)

Exemplos

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

Respostas

200 The settingsConnectSettings

Campos da resposta
CampoTipoDescrição
objectObrigatório"connect_settings"
approval_requiredObrigatórioboolean
ai_assist_enabledObrigatórioboolean
timezoneObrigatóriostring
x_client_idObrigatóriostring | null
x_client_secret_setObrigatórioboolean
x_use_relaypoint_appObrigatórioboolean

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
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/connect/end_users

List end users

Permissão: connections

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The end usersEndUserList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioEndUser[]

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
GET/v1/connect/end_users/{id}

Get an end user

Permissão: connections

Its display name and role (member by default).

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The end userEndUser

Campos da resposta
CampoTipoDescrição
objectObrigatório"end_user"
end_user_idObrigatóriostring
display_nameObrigatóriostring | null
roleObrigatório"member" | "drafter" | "approver"

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
PATCH/v1/connect/end_users/{id}

Set an end user's role or name

Permissão: connections

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
display_nameopcionalstring | null
roleopcional"member" | "drafter" | "approver"drafter: posts wait for an approver when approvals are on

Exemplos

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

Respostas

200 The end userEndUser

Campos da resposta
CampoTipoDescrição
objectObrigatório"end_user"
end_user_idObrigatóriostring
display_nameObrigatóriostring | null
roleObrigatório"member" | "drafter" | "approver"

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
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/connect/client/connections

List the session's connections (browser)

Permissão: Qualquer chave API

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

CampoTipoDescrição
RelayPoint-Publishable-Key (cabeçalho)ObrigatóriostringYour publishable key (rp_pk_live_… / rp_pk_test_…).
RelayPoint-Session (cabeçalho)ObrigatóriostringThe connect session token (cst_…).

Exemplos

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

Respostas

200 The end user's connectionsClientConnectionList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioobject[]
data[].idObrigatóriostring
data[].providerObrigatórioenum | null
data[].account_labelObrigatóriostring | null
data[].statusObrigatóriostring

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

CampoTipoDescrição
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The accountsSocialAccountList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioobject[]
data[].connectionObrigatóriostring
data[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
data[].account_labelObrigatóriostring | null
data[].statusObrigatóriostring
data[].destinationsObrigatórioobject[]
data[].errorObrigatóriostring | null

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/posts

Create a post

Permissão: social

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
end_user_idObrigatóriostringWhose connections it posts to
author_end_user_idopcionalstringWho wrote it (default end_user_id). A drafter's post waits for an approver.
textopcionalstring0–10000 chars · predefinido ""
titleopcionalstringYouTube title (default: the first line of the text)0–100 chars
hashtagsopcionalstring[]0–30 items
image_urlopcionalstringuri · 0–2000 chars
video_urlopcionalstringuri · 0–2000 chars
mediaopcionalstring[]A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urlopcionalstringuri · 0–2000 chars
overridesopcionalmap<string, object>Per network (facebook, instagram…) or per connection id: text, hashtags, link_url, title
targetsObrigatórioenum | object[]1–20 items
scheduled_atopcionalstring | integerISO 8601 or unix seconds
privacyopcionalstringYouTube: public, unlisted, private. TikTok: SELF_ONLY until RelayPoint's TikTok audit passes.0–40 chars
draftopcionalbooleanSave without publishing (POST /v1/social/posts/{id}/submit later)

Exemplos

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

Respostas

201 The post, with one entry per targetSocialPost

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"social_post"
end_user_idObrigatóriostring
author_end_user_idObrigatóriostring
modeObrigatório"live" | "test"
textObrigatóriostring
titleObrigatóriostring | null
hashtagsObrigatóriostring[]
image_urlObrigatóriostring | null
video_urlObrigatóriostring | null
mediaObrigatóriostring[]
link_urlObrigatóriostring | null
overridesObrigatóriomap<string, any>
statusObrigatórioenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObrigatóriointeger | null
published_atObrigatóriointeger | null
approved_byObrigatóriostring | null
approved_atObrigatóriointeger | null
rejected_reasonObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
targetsObrigatórioobject[]
targets[].connectionObrigatóriostring
targets[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObrigatóriostring
targets[].destination_nameObrigatóriostring | null
targets[].statusObrigatório"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObrigatóriostring | nullThe network's post id (test_… in test mode)
targets[].urlObrigatóriostring | null
targets[].privacyObrigatóriostring | null
targets[].errorObrigatórioobject | null
targets[].attemptsObrigatóriointeger-9007199254740991–9007199254740991
targets[].next_attempt_atObrigatóriointeger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObrigatórioobject | 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 idempotency_conflict
  • 422 validation_failed
  • 422 idempotency_mismatch
  • 429 daily_limit_reached
  • 429 rate_limited
  • 500 internal_error
GET/v1/social/posts

List posts

Permissão: social

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

Parâmetros

CampoTipoDescrição
end_user_id (consulta)opcionalstringYour own id for the person or entity (e.g. agent_123, company)
status (consulta)opcionalenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
limit (consulta)opcionalinteger1–100 · predefinido 25
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The postsSocialPostList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioSocialPost[]

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/posts/validate

Validate a post

Permissão: social

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
end_user_idObrigatóriostringWhose connections it posts to
author_end_user_idopcionalstringWho wrote it (default end_user_id). A drafter's post waits for an approver.
textopcionalstring0–10000 chars · predefinido ""
titleopcionalstringYouTube title (default: the first line of the text)0–100 chars
hashtagsopcionalstring[]0–30 items
image_urlopcionalstringuri · 0–2000 chars
video_urlopcionalstringuri · 0–2000 chars
mediaopcionalstring[]A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urlopcionalstringuri · 0–2000 chars
overridesopcionalmap<string, object>Per network (facebook, instagram…) or per connection id: text, hashtags, link_url, title
targetsObrigatórioenum | object[]1–20 items
scheduled_atopcionalstring | integerISO 8601 or unix seconds
privacyopcionalstringYouTube: public, unlisted, private. TikTok: SELF_ONLY until RelayPoint's TikTok audit passes.0–40 chars
draftopcionalbooleanSave 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"]}'

Respostas

200 The checks per targetSocialPostValidation

Campos da resposta
CampoTipoDescrição
objectObrigatório"social_post_validation"
okObrigatórioboolean
mediaObrigatóriostring | null
targetsObrigatórioobject[]
targets[].connectionObrigatóriostring
targets[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObrigatóriostring
targets[].destination_nameObrigatóriostring | null
targets[].okObrigatórioboolean
targets[].textObrigatóriostringThe text as it will be published (adapted)
targets[].titleObrigatóriostring | null
targets[].link_urlObrigatóriostring | null
targets[].privacyObrigatóriostring | null
targets[].mediaObrigatórioobject | null
targets[].errorsObrigatórioobject[]e.g. media_required, media_type, title_required, video_too_large, empty
targets[].warningsObrigatórioobject[]e.g. text_shortened, hashtags_trimmed, too_many_hashtags, link_not_clickable, image_cropped, image_resized, media_dropped, title_from_text, tiktok_private_only

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
  • 409 idempotency_conflict
  • 422 validation_failed
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/social/posts/{id}

Get a post

Permissão: social

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The postSocialPost

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"social_post"
end_user_idObrigatóriostring
author_end_user_idObrigatóriostring
modeObrigatório"live" | "test"
textObrigatóriostring
titleObrigatóriostring | null
hashtagsObrigatóriostring[]
image_urlObrigatóriostring | null
video_urlObrigatóriostring | null
mediaObrigatóriostring[]
link_urlObrigatóriostring | null
overridesObrigatóriomap<string, any>
statusObrigatórioenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObrigatóriointeger | null
published_atObrigatóriointeger | null
approved_byObrigatóriostring | null
approved_atObrigatóriointeger | null
rejected_reasonObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
targetsObrigatórioobject[]
targets[].connectionObrigatóriostring
targets[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObrigatóriostring
targets[].destination_nameObrigatóriostring | null
targets[].statusObrigatório"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObrigatóriostring | nullThe network's post id (test_… in test mode)
targets[].urlObrigatóriostring | null
targets[].privacyObrigatóriostring | null
targets[].errorObrigatórioobject | null
targets[].attemptsObrigatóriointeger-9007199254740991–9007199254740991
targets[].next_attempt_atObrigatóriointeger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObrigatórioobject | 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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 DELETE https://api.relaypoints.online/v1/social/posts/sp_4Hn7Vq2Lx9Ws \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Respostas

200 The canceled postSocialPost

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"social_post"
end_user_idObrigatóriostring
author_end_user_idObrigatóriostring
modeObrigatório"live" | "test"
textObrigatóriostring
titleObrigatóriostring | null
hashtagsObrigatóriostring[]
image_urlObrigatóriostring | null
video_urlObrigatóriostring | null
mediaObrigatóriostring[]
link_urlObrigatóriostring | null
overridesObrigatóriomap<string, any>
statusObrigatórioenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObrigatóriointeger | null
published_atObrigatóriointeger | null
approved_byObrigatóriostring | null
approved_atObrigatóriointeger | null
rejected_reasonObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
targetsObrigatórioobject[]
targets[].connectionObrigatóriostring
targets[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObrigatóriostring
targets[].destination_nameObrigatóriostring | null
targets[].statusObrigatório"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObrigatóriostring | nullThe network's post id (test_… in test mode)
targets[].urlObrigatóriostring | null
targets[].privacyObrigatóriostring | null
targets[].errorObrigatórioobject | null
targets[].attemptsObrigatóriointeger-9007199254740991–9007199254740991
targets[].next_attempt_atObrigatóriointeger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObrigatórioobject | 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
approver_end_user_idObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)

Exemplos

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

Respostas

200 The postSocialPost

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"social_post"
end_user_idObrigatóriostring
author_end_user_idObrigatóriostring
modeObrigatório"live" | "test"
textObrigatóriostring
titleObrigatóriostring | null
hashtagsObrigatóriostring[]
image_urlObrigatóriostring | null
video_urlObrigatóriostring | null
mediaObrigatóriostring[]
link_urlObrigatóriostring | null
overridesObrigatóriomap<string, any>
statusObrigatórioenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObrigatóriointeger | null
published_atObrigatóriointeger | null
approved_byObrigatóriostring | null
approved_atObrigatóriointeger | null
rejected_reasonObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
targetsObrigatórioobject[]
targets[].connectionObrigatóriostring
targets[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObrigatóriostring
targets[].destination_nameObrigatóriostring | null
targets[].statusObrigatório"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObrigatóriostring | nullThe network's post id (test_… in test mode)
targets[].urlObrigatóriostring | null
targets[].privacyObrigatóriostring | null
targets[].errorObrigatórioobject | null
targets[].attemptsObrigatóriointeger-9007199254740991–9007199254740991
targets[].next_attempt_atObrigatóriointeger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObrigatórioobject | 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
approver_end_user_idObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
reasonopcionalstring0–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."}'

Respostas

200 The postSocialPost

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"social_post"
end_user_idObrigatóriostring
author_end_user_idObrigatóriostring
modeObrigatório"live" | "test"
textObrigatóriostring
titleObrigatóriostring | null
hashtagsObrigatóriostring[]
image_urlObrigatóriostring | null
video_urlObrigatóriostring | null
mediaObrigatóriostring[]
link_urlObrigatóriostring | null
overridesObrigatóriomap<string, any>
statusObrigatórioenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObrigatóriointeger | null
published_atObrigatóriointeger | null
approved_byObrigatóriostring | null
approved_atObrigatóriointeger | null
rejected_reasonObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
targetsObrigatórioobject[]
targets[].connectionObrigatóriostring
targets[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObrigatóriostring
targets[].destination_nameObrigatóriostring | null
targets[].statusObrigatório"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObrigatóriostring | nullThe network's post id (test_… in test mode)
targets[].urlObrigatóriostring | null
targets[].privacyObrigatóriostring | null
targets[].errorObrigatórioobject | null
targets[].attemptsObrigatóriointeger-9007199254740991–9007199254740991
targets[].next_attempt_atObrigatóriointeger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObrigatórioobject | 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

CampoTipoDescrição
id (caminho)Obrigatóriostring
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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"

Respostas

200 The postSocialPost

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"social_post"
end_user_idObrigatóriostring
author_end_user_idObrigatóriostring
modeObrigatório"live" | "test"
textObrigatóriostring
titleObrigatóriostring | null
hashtagsObrigatóriostring[]
image_urlObrigatóriostring | null
video_urlObrigatóriostring | null
mediaObrigatóriostring[]
link_urlObrigatóriostring | null
overridesObrigatóriomap<string, any>
statusObrigatórioenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObrigatóriointeger | null
published_atObrigatóriointeger | null
approved_byObrigatóriostring | null
approved_atObrigatóriointeger | null
rejected_reasonObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
targetsObrigatórioobject[]
targets[].connectionObrigatóriostring
targets[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObrigatóriostring
targets[].destination_nameObrigatóriostring | null
targets[].statusObrigatório"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObrigatóriostring | nullThe network's post id (test_… in test mode)
targets[].urlObrigatóriostring | null
targets[].privacyObrigatóriostring | null
targets[].errorObrigatórioobject | null
targets[].attemptsObrigatóriointeger-9007199254740991–9007199254740991
targets[].next_attempt_atObrigatóriointeger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObrigatórioobject | 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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
taskObrigatório"caption" | "hashtags" | "rewrite" | "translate" | "listing_to_post"
textopcionalstring0–4000 chars
listingopcionalmap<string, any>listing_to_post: the property's details (title, price, bedrooms, suburb, features…)
toneopcional"professional" | "friendly" | "enthusiastic" | "luxury" | "concise"
languageopcional"en" | "fr" | "pt"
provideropcionalenumWrite for this network's limitsfacebook, instagram, linkedin, tiktok, youtube, google_business, x

Exemplos

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

Respostas

200 The textSocialAssist

Campos da resposta
CampoTipoDescrição
objectObrigatório"social_assist"
taskObrigatóriostring
textObrigatóriostring
hashtagsObrigatóriostring[]
modelObrigatóriostring
modeObrigatório"live" | "test"
cost_usdObrigatóriostringCharged to your AI Credits (0 in test mode)

Erros possíveis

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

Best times to post

Permissão: social

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

Parâmetros

CampoTipoDescrição
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 Suggested timesBestTimes

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioobject[]
data[].providerObrigatórioenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
data[].basisObrigatório"history" | "default"
data[].timezoneObrigatóriostring
data[].slotsObrigatórioobject[]
data[].nextObrigatóriostring[]

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
GET/v1/social/analytics

Unified analytics

Permissão: social

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

Parâmetros

CampoTipoDescrição
end_user_id (consulta)opcionalstringYour own id for the person or entity (e.g. agent_123, company)
from (consulta)opcionalintegerUnix seconds (default: 30 days ago)>0–9007199254740991
to (consulta)opcionalinteger>0–9007199254740991
group_by (consulta)opcional"connection" | "end_user" | "provider"predefinido "provider"
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The analyticsSocialAnalytics

Campos da resposta
CampoTipoDescrição
objectObrigatório"social_analytics"
fromObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
toObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991
group_byObrigatório"provider" | "connection" | "end_user"
totalsObrigatórioobject
totals.postsObrigatóriointeger-9007199254740991–9007199254740991
totals.impressionsObrigatórionumber
totals.reachObrigatórionumber
totals.engagementObrigatórionumber
totals.clicksObrigatórionumber
totals.likesObrigatórionumber
totals.commentsObrigatórionumber
totals.sharesObrigatórionumber
totals.viewsObrigatórionumber
dataObrigatórioobject[]
data[].postsObrigatóriointeger-9007199254740991–9007199254740991
data[].impressionsObrigatórionumber
data[].reachObrigatórionumber
data[].engagementObrigatórionumber
data[].clicksObrigatórionumber
data[].likesObrigatórionumber
data[].commentsObrigatórionumber
data[].sharesObrigatórionumber
data[].viewsObrigatórionumber
data[].keyObrigatóriostring
data[].provideropcionalstring
data[].labelopcionalstring

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
end_user_idObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
fileObrigatóriostringThe image or video (multipart file field). Or send JSON (SocialMediaFromUrl) instead.binary
nameopcionalstring0–200 chars

Exemplos

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

Respostas

201 The media itemMedia

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"media"
end_user_idObrigatóriostring
kindObrigatório"image" | "video"
sourceObrigatóriostring
nameObrigatóriostring | null
mime_typeObrigatóriostring
sizeObrigatóriointeger-9007199254740991–9007199254740991
widthObrigatóriointeger | null
heightObrigatóriointeger | null
drive_file_idObrigatóriostring | null
createdObrigatóriointegerUnix 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
  • 409 idempotency_conflict
  • 413 payload_too_large
  • 415 unsupported_media_type
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
GET/v1/social/media

List the media library

Permissão: social

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

Parâmetros

CampoTipoDescrição
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The mediaMediaList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioMedia[]

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
DELETE/v1/social/media/{id}

Delete a media item

Permissão: social

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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 DELETE https://api.relaypoints.online/v1/social/media/med_2Kp8Wd5Rz3Nf?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Respostas

200 DeletedMediaDeleted

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"media"
deletedObrigatóriotrue

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

Drive

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

GET/v1/drive/files

List Drive files

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

CampoTipoDescrição
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcionalstring0–64 chars
q (consulta)opcionalstring0–100 chars
page_size (consulta)opcionalinteger1–100 · predefinido 25
page_token (consulta)opcionalstring0–500 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 A page of filesDriveFileList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioDriveFile[]
next_page_tokenObrigatóriostring | null

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
  • 503 upstream_unavailable
POST/v1/drive/files

Upload to Drive

Permissão: drive

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
end_user_idObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
fileObrigatóriostringThe file (multipart file field), at most 10 MBbinary
connectionopcionalstring0–64 chars
nameopcionalstring0–200 chars
folder_idopcionalstring0–200 chars

Exemplos

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

Respostas

201 The fileDriveFile

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"drive_file"
nameObrigatóriostring
mime_typeObrigatóriostring
sizeObrigatóriointeger | null
modifiedObrigatóriointeger | null
web_urlObrigatóriostring | null
icon_urlObrigatóriostring | null
thumbnail_urlObrigatóriostring | null

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
  • 413 payload_too_large
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
POST/v1/drive/files/import

Import a Drive file to the media library

Permissão: drive

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
end_user_idObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connectionopcionalstring0–64 chars
file_idObrigatóriostring0–200 chars

Exemplos

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

Respostas

201 The media itemMedia

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"media"
end_user_idObrigatóriostring
kindObrigatório"image" | "video"
sourceObrigatóriostring
nameObrigatóriostring | null
mime_typeObrigatóriostring
sizeObrigatóriointeger-9007199254740991–9007199254740991
widthObrigatóriointeger | null
heightObrigatóriointeger | null
drive_file_idObrigatóriostring | null
createdObrigatóriointegerUnix 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
  • 413 payload_too_large
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
GET/v1/drive/files/{id}

Get a Drive file

Permissão: drive

The file's metadata.

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcionalstring0–64 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The fileDriveFile

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"drive_file"
nameObrigatóriostring
mime_typeObrigatóriostring
sizeObrigatóriointeger | null
modifiedObrigatóriointeger | null
web_urlObrigatóriostring | null
icon_urlObrigatóriostring | null
thumbnail_urlObrigatóriostring | null

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
  • 503 upstream_unavailable
GET/v1/drive/files/{id}/content

Download a Drive file

Permissão: drive

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcionalstring0–64 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The file

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
  • 413 payload_too_large
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable

WhatsApp

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

GET/v1/whatsapp/templates

List message templates

Permissão: whatsapp

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

Parâmetros

CampoTipoDescrição
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcionalstring0–64 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The templatesWhatsAppTemplateList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioobject[]
data[].nameObrigatóriostring
data[].languageObrigatóriostring
data[].categoryopcionalstring
data[].statusopcionalstring
data[].componentsopcionalany[]

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
  • 409 conflict
  • 429 rate_limited
  • 500 internal_error
  • 503 upstream_unavailable
POST/v1/whatsapp/contacts

Add or update a contact

Permissão: whatsapp

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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
end_user_idObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connectionopcionalstring0–64 chars
phoneObrigatóriostringInternational format, e.g. +278212345670–32 chars
nameopcionalstring0–120 chars
opt_inopcionalobject
opt_in.sourceObrigatóriostringWhere they opted in (e.g. website enquiry form)1–200 chars
opt_in.proofObrigatóriostringWhat they agreed to and how (checkbox wording, form URL, timestamp, message id…)1–2000 chars
opt_in.atopcionalstring | integerISO 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
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"whatsapp_contact"
phoneObrigatóriostring
nameObrigatóriostring | null
opted_inObrigatórioboolean
opt_inObrigatórioobject | null
opted_out_atObrigatóriointeger | null
last_inbound_atObrigatóriointeger | null
window_openObrigatóriobooleanFree-form text is allowed (within 24 hours of the contact's last message)
unreadObrigatóriointeger-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

CampoTipoDescrição
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcionalstring0–64 chars
opted_in (consulta)opcional"true" | "false"
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The contactsWhatsAppContactList

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioWhatsAppContact[]

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
DELETE/v1/whatsapp/contacts/{id}

Opt a contact out

Permissão: whatsapp

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

Parâmetros

CampoTipoDescrição
id (caminho)Obrigatóriostring
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcionalstring0–64 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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 DELETE https://api.relaypoints.online/v1/whatsapp/contacts/wac_6Tb3Yh8Ms1Qe?end_user_id=agent_123 \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY"

Respostas

200 The contactWhatsAppContact

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"whatsapp_contact"
phoneObrigatóriostring
nameObrigatóriostring | null
opted_inObrigatórioboolean
opt_inObrigatórioobject | null
opted_out_atObrigatóriointeger | null
last_inbound_atObrigatóriointeger | null
window_openObrigatóriobooleanFree-form text is allowed (within 24 hours of the contact's last message)
unreadObrigatóriointeger-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

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição

Exemplos

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

Respostas

201 The messageWhatsAppMessage

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"whatsapp_message"
contactObrigatóriostring
directionObrigatório"in" | "out"
typeObrigatóriostring
textObrigatóriostring | null
templateObrigatóriostring | null
statusObrigatóriostringqueued, sent, delivered, read, failed or received
errorObrigatóriostring | null
broadcastObrigatóriostring | null
createdObrigatóriointegerUnix time in seconds-9007199254740991–9007199254740991

Erros possíveis

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

Get a conversation

Permissão: whatsapp

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

Parâmetros

CampoTipoDescrição
end_user_id (consulta)ObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connection (consulta)opcionalstring0–64 chars
contact (consulta)Obrigatóriostring0–64 chars
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemplos

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

Respostas

200 The conversationWhatsAppConversation

Campos da resposta
CampoTipoDescrição
objectObrigatório"list"
dataObrigatórioWhatsAppMessage[]
contactObrigatórioWhatsAppContact

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/broadcasts

Broadcast a template

Permissão: whatsapp

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

Parâmetros

CampoTipoDescrição
RelayPoint-Account (cabeçalho)opcionalstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (cabeçalho)opcionalstringYour 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

CampoTipoDescrição
end_user_idObrigatóriostringYour own id for the person or entity (e.g. agent_123, company)
connectionopcionalstring0–64 chars
templateObrigatórioobject
template.nameObrigatóriostring0–512 chars
template.languageopcionalstring0–15 chars · predefinido "en"
template.componentsopcionalany[]0–20 items
contactsopcionalstring[]Default: every opted-in contact0–500 items

Exemplos

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

Respostas

201 The queued broadcastWhatsAppBroadcast

Campos da resposta
CampoTipoDescrição
idObrigatóriostring
objectObrigatório"whatsapp_broadcast"
templateObrigatóriostring
languageObrigatóriostring
statusObrigatóriostringqueued, sending, done or canceled
totalObrigatóriointeger-9007199254740991–9007199254740991
sentObrigatóriointeger-9007199254740991–9007199254740991
failedObrigatóriointeger-9007199254740991–9007199254740991
skippedObrigatóriointeger-9007199254740991–9007199254740991
createdObrigatóriointegerUnix 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 conflict
  • 409 idempotency_conflict
  • 422 idempotency_mismatch
  • 429 rate_limited
  • 500 internal_error