Référence de l’API

Tous les points d’accès /v1, générés à partir des schémas que l’API utilise pour valider les requêtes. Les descriptions sont en anglais.

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

Authentification

Envoyez votre clé API comme jeton bearer. Les clés live (rp_live_…) font de vrais appels facturés ; les clés de test (rp_test_…) renvoient des résultats d’exemple et ne sont jamais facturées.

En-têtes

Authorization: Bearer rp_live_…Votre clé API.
RelayPoint-Account: org_…Revendeurs : agir pour l’un de vos sous-comptes.
Idempotency-Key: …Réessayer les requêtes POST sans risque ; jamais facturé deux fois.

Permissions

Une clé « * » peut utiliser toutes les permissions sauf les deux permissions de connexion ci-dessous, qui doivent être accordées nommément sur une clé live.

chatembeddingsimagesjobsaudiousagebillingsub_accountsconnectionswebhooksconnections:credentials · accordée nommément uniquementconnections:request · accordée nommément uniquementsocialdrivewhatsapp

Erreurs

Chaque erreur est un JSON avec error.code, error.message et error.request_id. Le statut HTTP dépend du code :

CodeStatut
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

Permission: chat

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modelObligatoirestringRelayPoint product id, e.g. rp/text-pro1–100 chars
messagesObligatoireobject[]1–1000 items
messages[].roleObligatoire"system" | "developer" | "user" | "assistant" | "tool"
messages[].contentObligatoirestring | object[] | null
messages[].namefacultatifstring0–64 chars
messages[].tool_call_idfacultatifstringrole tool: the id of the tool call this message answers0–100 chars
messages[].tool_callsfacultatifToolCall[]role assistant: the tool calls of an earlier answer, sent back as they came0–128 items
max_tokensfacultatifinteger1–32768
max_completion_tokensfacultatifinteger1–32768
temperaturefacultatifnumber0–2
top_pfacultatifnumber0–1
stopfacultatifstring | string[]
seedfacultatifinteger-9007199254740991–9007199254740991
streamfacultatifboolean
response_formatfacultatifobject
toolsfacultatifToolDefinition[]Functions the model may call. Not supported with stream: true.0–128 items
tool_choicefacultatif"auto" | "none" | "required" | objectDefault auto when tools are sent
parallel_tool_callsfacultatifbooleanfalse asks for at most one tool call per answer
providerfacultatif"relaypoint" | "anthropic" | "openai"Text products: who serves this request. relaypoint = RelayPoint open models (prepaid credits); anthropic / openai = your own key (only the platform fee is charged). Default: your routing preference.
userfacultatifstring0–200 chars

Exemples

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

Réponses

200 The completionChatCompletion

Avec stream: true, des événements serveur (SSE) de type ChatCompletionChunk

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"chat.completion"
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
modelObligatoirestringThe RelayPoint product id you asked for
choicesObligatoireobject[]
choices[].indexObligatoireinteger-9007199254740991–9007199254740991
choices[].messageObligatoireobject
choices[].finish_reasonObligatoire"stop" | "length" | "tool_calls"
usageObligatoireChatUsage

Erreurs possibles

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

Create embeddings

Permission: embeddings

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modelfacultatifstring1–100 chars · par défaut "rp/embed"
inputObligatoirestring | string[]
encoding_formatfacultatif"float" | "base64"par défaut "float"
userfacultatifstring0–200 chars

Exemples

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

Réponses

200 The vectors, in input orderEmbeddingList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
modelObligatoirestring
dataObligatoireobject[]
data[].objectObligatoire"embedding"
data[].indexObligatoireinteger-9007199254740991–9007199254740991
data[].embeddingObligatoirenumber[] | string
usageObligatoireobject
usage.prompt_tokensObligatoireinteger-9007199254740991–9007199254740991
usage.total_tokensObligatoireinteger-9007199254740991–9007199254740991
usage.cost_usdObligatoirestringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Erreurs possibles

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

Generate images

Permission: images

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modelfacultatifstring1–100 chars · par défaut "rp/image"
promptObligatoirestring1–4000 chars
nfacultatifinteger1–4 · par défaut 1
sizefacultatif"256x256" | "512x512" | "768x768" | "1024x1024" | "1024x1792" | "1792x1024"par défaut "1024x1024"
response_formatfacultatif"url" | "b64_json"par défaut "url"
userfacultatifstring0–200 chars

Exemples

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"}'

Réponses

200 The imagesImageResponse

Champs de la réponse
ChampTypeDescription
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
modelObligatoirestring
dataObligatoireobject[]
data[].urlfacultatifstring
data[].file_idfacultatifstring
data[].expires_atfacultatifintegerUnix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonfacultatifstring
usageObligatoireobject
usage.imagesObligatoireinteger-9007199254740991–9007199254740991
usage.cost_usdObligatoirestringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Erreurs possibles

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

Generate images (OpenAI path)

Permission: images

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modelfacultatifstring1–100 chars · par défaut "rp/image"
promptObligatoirestring1–4000 chars
nfacultatifinteger1–4 · par défaut 1
sizefacultatif"256x256" | "512x512" | "768x768" | "1024x1024" | "1024x1792" | "1792x1024"par défaut "1024x1024"
response_formatfacultatif"url" | "b64_json"par défaut "url"
userfacultatifstring0–200 chars

Exemples

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

Réponses

200 The imagesImageResponse

Champs de la réponse
ChampTypeDescription
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
modelObligatoirestring
dataObligatoireobject[]
data[].urlfacultatifstring
data[].file_idfacultatifstring
data[].expires_atfacultatifintegerUnix time in seconds-9007199254740991–9007199254740991
data[].b64_jsonfacultatifstring
usageObligatoireobject
usage.imagesObligatoireinteger-9007199254740991–9007199254740991
usage.cost_usdObligatoirestringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Erreurs possibles

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

Text to speech

Permission: audio

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modelfacultatifstring1–100 chars · par défaut "rp/tts"
inputfacultatifstring1–20000 chars
segmentsfacultatifobject[]1–200 items
segments[].textObligatoirestring1–4000 chars
segments[].emotionfacultatifenumneutral, warm, cheerful, excited, calm, empathetic, apologetic, serious, confident, reassuring, sad
segments[].pacefacultatif"slow" | "relaxed" | "normal" | "brisk" | "fast"
segments[].energyfacultatif"low" | "normal" | "high"
stylefacultatifobject
style.emotionfacultatifenumneutral, warm, cheerful, excited, calm, empathetic, apologetic, serious, confident, reassuring, sad
style.pacefacultatif"slow" | "relaxed" | "normal" | "brisk" | "fast"
style.energyfacultatif"low" | "normal" | "high"
normalizefacultatifboolean
languagefacultatifstring
voicefacultatifstring1–64 chars · par défaut "default"
response_formatfacultatif"wav" | "mp3" | "pcm" | "mulaw"par défaut "mp3"
streamfacultatifboolean
timingsfacultatifboolean
pronunciationsfacultatifobject[]0–200 items
pronunciations[].textObligatoirestring1–100 chars
pronunciations[].sayObligatoirestring1–200 chars

Exemples

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

Réponses

200 The audio

Erreurs possibles

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

Speech to text

Permission: audio

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modelfacultatifstring1–100 chars · par défaut "rp/stt"
languagefacultatifstring2–12 chars
response_formatfacultatif"json" | "text" | "verbose_json"par défaut "json"
diarizefacultatif"true" | "false"
num_speakersfacultatifinteger1–32
fileObligatoirestringThe audio file (multipart file field), up to 25 MBbinary

Exemples

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

Réponses

200 The transcriptTranscription

Champs de la réponse
ChampTypeDescription
textObligatoirestring
languagefacultatifstring | nullverbose_json only
durationfacultatifnumberverbose_json only: seconds
modelfacultatifstringverbose_json only
wordsfacultatifobject[]rp/stt-pro with verbose_json or diarize=true: words with timings and speaker labels
words[].textObligatoirestring
words[].startObligatoirenumber
words[].endObligatoirenumber
words[].speakerObligatoirestring | null
fallback_fromfacultatifstringSet when the provider was unavailable and the house product answered (fallback is opt-in)
usageObligatoireobject
usage.secondsObligatoirenumber
usage.cost_usdObligatoirestringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
usage.billing_modefacultatif"byok"
usage.providerfacultatifstring
usage.platform_fee_usdfacultatifstring
usage.list_equivalent_cost_usdfacultatifstring

Erreurs possibles

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

Get the consent statement for a voice clone

Permission: audio

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The statementConsentStatement

Champs de la réponse
ChampTypeDescription
objectObligatoire"consent_statement"
languageObligatoirestring
textObligatoirestring
instructionsObligatoirestring
languagesObligatoirestring[]

Erreurs possibles

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

List your cloned voices

Permission: 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.

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 Your clonesVoiceCloneList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireVoiceClone[]
has_moreObligatoireboolean

Erreurs possibles

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

Retrieve a cloned voice

Permission: audio

One of your cloned voices.

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The cloneVoiceClone

Champs de la réponse
ChampTypeDescription
idObligatoirestringvc_…: use it as `voice` on rp/tts
objectObligatoire"voice_clone"
nameObligatoirestring
languageObligatoirestring
statusObligatoire"ready" | "deleted"
sample_secondsObligatoireinteger-9007199254740991–9007199254740991
consentObligatoireobject
consent.attestedObligatoirebooleanThe consent checkbox was ticked
consent.textObligatoirestring | nullThe checkbox wording
consent.atObligatoireinteger | null
consent.recordingObligatoirebooleanThe owner's spoken consent recording is kept as evidence
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
deletedObligatoireinteger | null

Erreurs possibles

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

Delete a cloned voice

Permission: audio

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

Paramètres

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

Exemples

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

Réponses

200 The deleted cloneVoiceClone

Champs de la réponse
ChampTypeDescription
idObligatoirestringvc_…: use it as `voice` on rp/tts
objectObligatoire"voice_clone"
nameObligatoirestring
languageObligatoirestring
statusObligatoire"ready" | "deleted"
sample_secondsObligatoireinteger-9007199254740991–9007199254740991
consentObligatoireobject
consent.attestedObligatoirebooleanThe consent checkbox was ticked
consent.textObligatoirestring | nullThe checkbox wording
consent.atObligatoireinteger | null
consent.recordingObligatoirebooleanThe owner's spoken consent recording is kept as evidence
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
deletedObligatoireinteger | null

Erreurs possibles

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

Start a real-time voice call

Permission: audio

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modelfacultatif"rp/voice-live"par défaut "rp/voice-live"
instructionsfacultatifstring0–16000 chars · par défaut "You are a friendly, helpful assistant."
voicefacultatifstring0–64 chars · par défaut "default"
languagefacultatifstring
toolsfacultatif"save_lead" | "book_meeting" | "hand_over" | object[]0–16 items · par défaut []
audio_formatfacultatif"pcm16" | "mulaw"
transportfacultatif"websocket" | "twilio"par défaut "websocket"
max_minutesfacultatifinteger1–120 · par défaut 30
max_duration_secondsfacultatifinteger10–7200
silence_timeout_secondsfacultatifinteger0–600 · par défaut 30
end_of_turn_msfacultatifinteger200–2000 · par défaut 450
end_of_turnfacultatifobject
end_of_turn.modefacultatif"semantic" | "silence"par défaut "semantic"
end_of_turn.min_msfacultatifinteger150–1000 · par défaut 250
end_of_turn.max_msfacultatifinteger500–3000 · par défaut 1400
fillersfacultatifboolean
backchannelsfacultatifboolean
affective_dialogfacultatifbooleanpar défaut true
proactive_audiofacultatifbooleanpar défaut true
normalizefacultatifbooleanpar défaut true
phone_bandfacultatif"auto" | booleanpar défaut "auto"
greetingfacultatifstring0–500 chars
tool_webhook_urlfacultatifstring0–2000 chars
metadatafacultatifmap<string, string>

Exemples

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

Réponses

201 The session and how to join itVoiceLiveSessionCreated

Champs de la réponse
ChampTypeDescription
objectObligatoire"voice_live.session"
idObligatoirestring
modelObligatoire"rp/voice-live"
statusObligatoire"created" | "active" | "ended"
voiceObligatoirestring
languageObligatoirestring
transportObligatoire"websocket" | "twilio"
audio_formatObligatoire"pcm16" | "mulaw"
sample_rateObligatoireinteger-9007199254740991–9007199254740991
max_minutesObligatoireinteger-9007199254740991–9007199254740991
max_duration_secondsObligatoireintegerThe call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsObligatoireintegerSeconds without caller speech before the call ends (0 = never)-9007199254740991–9007199254740991
toolsObligatoirestring[]
metadataObligatoiremap<string, string>
engineObligatoire"native" | "cascade" | nullnative: speech-to-speech; cascade: speech-to-text, model, text-to-speech
expires_atObligatoirestringJoin before this time (60 s after creation)
started_atObligatoirestring | null
ended_atObligatoirestring | null
end_reasonObligatoirestring | nullcaller_hangup, client_ended (session.end), credit_exhausted, time_limit, silence_timeout, handover, idle, upstream_unavailable, server_shutdown
secondsObligatoireinteger-9007199254740991–9007199254740991
turnsObligatoireinteger-9007199254740991–9007199254740991
avg_latency_msObligatoireinteger | nullAverage time from the caller stopping to the first audio of the answer
cost_usdObligatoirestringUS dollars as a decimal string with 6 decimals
usageObligatoiremap<string, object>
created_atObligatoirestring
client_secretObligatoirestringOne-time secret to join the call (within 60 s). Keep it out of logs.
urlObligatoirestringwss:// URL to join from a browser or app (secret in the query string)
stream_urlObligatoirestringwss:// URL with the secret in the path, for Twilio-style media streams
webhook_secretfacultatifstringSigns tool-call webhooks (RelayPoint-Signature), when tool_webhook_url is set

Erreurs possibles

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

List voice calls

Permission: audio

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 CallsVoiceLiveSessionList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireVoiceLiveSession[]
has_moreObligatoireboolean

Erreurs possibles

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

Retrieve a voice call

Permission: audio

One call of this account.

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The callVoiceLiveSession

Champs de la réponse
ChampTypeDescription
objectObligatoire"voice_live.session"
idObligatoirestring
modelObligatoire"rp/voice-live"
statusObligatoire"created" | "active" | "ended"
voiceObligatoirestring
languageObligatoirestring
transportObligatoire"websocket" | "twilio"
audio_formatObligatoire"pcm16" | "mulaw"
sample_rateObligatoireinteger-9007199254740991–9007199254740991
max_minutesObligatoireinteger-9007199254740991–9007199254740991
max_duration_secondsObligatoireintegerThe call's hard limit in seconds (the lower of max_duration_seconds and max_minutes)-9007199254740991–9007199254740991
silence_timeout_secondsObligatoireintegerSeconds without caller speech before the call ends (0 = never)-9007199254740991–9007199254740991
toolsObligatoirestring[]
metadataObligatoiremap<string, string>
engineObligatoire"native" | "cascade" | nullnative: speech-to-speech; cascade: speech-to-text, model, text-to-speech
expires_atObligatoirestringJoin before this time (60 s after creation)
started_atObligatoirestring | null
ended_atObligatoirestring | null
end_reasonObligatoirestring | nullcaller_hangup, client_ended (session.end), credit_exhausted, time_limit, silence_timeout, handover, idle, upstream_unavailable, server_shutdown
secondsObligatoireinteger-9007199254740991–9007199254740991
turnsObligatoireinteger-9007199254740991–9007199254740991
avg_latency_msObligatoireinteger | nullAverage time from the caller stopping to the first audio of the answer
cost_usdObligatoirestringUS dollars as a decimal string with 6 decimals
usageObligatoiremap<string, object>
created_atObligatoirestring

Erreurs possibles

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

List ElevenLabs voices

Permission: 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.

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 VoicesElevenLabsVoices

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
providerObligatoire"elevenlabs"
shared_keyObligatoireboolean
dataObligatoireobject[]
data[].idObligatoirestring
data[].nameObligatoirestring
data[].categoryObligatoirestringpremade, cloned, generated, professional
data[].labelsObligatoiremap<string, string>
data[].preview_urlObligatoirestring | null
cached_for_secondsObligatoireinteger-9007199254740991–9007199254740991

Erreurs possibles

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

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

Permission: jobs

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modelObligatoirestring1–100 chars
inputObligatoiremap<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.
metadatafacultatifmap<string, string>

Exemples

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"}}'

Réponses

202 The queued jobJob

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"job"
modelObligatoirestring
statusObligatoire"queued" | "running" | "succeeded" | "failed" | "expired"
progressObligatoireinteger0–100, updated by the worker while the job runs; 100 when it succeeded0–100
accountObligatoirestring
metadataObligatoiremap<string, string> | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
startedObligatoireinteger | null
completedObligatoireinteger | null
outputsObligatoireobject[]
outputs[].file_idObligatoirestring
outputs[].nameObligatoirestring
outputs[].content_typeObligatoirestring
outputs[].sizeObligatoireinteger | null
outputs[].urlObligatoirestring | nullSigned download URL while outputs are kept
outputs_expire_atObligatoireinteger | null
resultObligatoireany | nullProduct-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorObligatoireobject | null
usageObligatoireobject | null
billing_modefacultatif"credits" | "byok"
providerfacultatifstring
fallback_fromfacultatifstringSet when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedfacultatifbooleantrue for generated media: label it as AI-generated where the law requires

Erreurs possibles

  • 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

Permission: jobs

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

Paramètres

ChampTypeDescription
limit (requête)facultatifinteger1–100 · par défaut 20
starting_after (requête)facultatifstring0–100 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 A page of jobsJobList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireJob[]
has_moreObligatoireboolean

Erreurs possibles

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

Get a job

Permission: jobs

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The jobJob

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"job"
modelObligatoirestring
statusObligatoire"queued" | "running" | "succeeded" | "failed" | "expired"
progressObligatoireinteger0–100, updated by the worker while the job runs; 100 when it succeeded0–100
accountObligatoirestring
metadataObligatoiremap<string, string> | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
startedObligatoireinteger | null
completedObligatoireinteger | null
outputsObligatoireobject[]
outputs[].file_idObligatoirestring
outputs[].nameObligatoirestring
outputs[].content_typeObligatoirestring
outputs[].sizeObligatoireinteger | null
outputs[].urlObligatoirestring | nullSigned download URL while outputs are kept
outputs_expire_atObligatoireinteger | null
resultObligatoireany | nullProduct-specific. OCR: { pages, format, text, tables? } (tables with json_tables: [{ page, header, rows }])
errorObligatoireobject | null
usageObligatoireobject | null
billing_modefacultatif"credits" | "byok"
providerfacultatifstring
fallback_fromfacultatifstringSet when the provider was unavailable and the closest house product ran instead (opt-in)
ai_generatedfacultatifbooleantrue for generated media: label it as AI-generated where the law requires

Erreurs possibles

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

List HeyGen avatars and voices

Permission: jobs

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 Avatars and voicesHeyGenAssets

Champs de la réponse
ChampTypeDescription
objectObligatoire"heygen_assets"
providerObligatoire"heygen"
shared_keyObligatoirebooleantrue: your reseller's key (stock avatars and voices only)
avatarsObligatoireobject[]
avatars[].idObligatoirestring
avatars[].nameObligatoirestring
avatars[].typeObligatoirestring
avatars[].preview_image_urlObligatoirestring | null
avatars[].preview_video_urlObligatoirestring | null
avatars[].default_voice_idObligatoirestring | null
avatars[].ownedObligatoirebooleanYour own avatar (consent needed)
voicesObligatoireobject[]
voices[].idObligatoirestring
voices[].nameObligatoirestring
voices[].languageObligatoirestring
voices[].genderObligatoirestring
voices[].preview_audio_urlObligatoirestring | null
voices[].ownedObligatoireboolean
cached_for_secondsObligatoireinteger-9007199254740991–9007199254740991

Erreurs possibles

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

Video avatar

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

POST/v1/characters

Create a character

Permission: jobs

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

Paramètres

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

Corps de la requête

ChampTypeDescription
nameObligatoirestring1–80 chars
descriptionObligatoirestring3–800 chars
clothingfacultatifstring0–300 chars · par défaut ""
stylefacultatif"realistic" | "studio" | "cinematic" | "illustrated"par défaut "realistic"
backgroundfacultatifstring0–300 chars · par défaut ""
genderfacultatif"female" | "male"
voice_idfacultatifstring0–64 chars

Exemples

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

Réponses

202 The pending characterCharacter

Champs de la réponse
ChampTypeDescription
idObligatoirestringchr_…
objectObligatoire"character"
stockObligatoirebooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindObligatoire"generated" | "trained" | "stock"
statusObligatoire"pending" | "ready" | "failed" | "disabled"
nameObligatoirestring
descriptionObligatoirestring
clothingObligatoirestring
styleObligatoirestring
backgroundObligatoirestring | null
genderObligatoirestring | null
age_bandObligatoirestring | null
ethnicityObligatoirestring | null
roleObligatoirestring | null
tagsObligatoirestring[]
voice_idObligatoirestring | nullDefault voice for this character (GET /v1/voices)
parent_idObligatoirestring | nullVariants: the character they were made from (same identity and seed)
referenceObligatoireobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksfacultatifanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedfacultatiftrue
job_idObligatoirestring | null
errorObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

List characters

Permission: jobs

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

Paramètres

ChampTypeDescription
age (requête)facultatif"18-29" | "30-44" | "45-59" | "60+"
gender (requête)facultatif"female" | "male"
ethnicity (requête)facultatifstring0–40 chars
style (requête)facultatifstring0–40 chars
q (requête)facultatifstring0–80 chars
stock (requête)facultatif"true" | "false"
limit (requête)facultatifinteger1–100 · par défaut 50
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 CharactersCharacterList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireCharacter[]

Erreurs possibles

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

Get a character

Permission: jobs

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The characterCharacter

Champs de la réponse
ChampTypeDescription
idObligatoirestringchr_…
objectObligatoire"character"
stockObligatoirebooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindObligatoire"generated" | "trained" | "stock"
statusObligatoire"pending" | "ready" | "failed" | "disabled"
nameObligatoirestring
descriptionObligatoirestring
clothingObligatoirestring
styleObligatoirestring
backgroundObligatoirestring | null
genderObligatoirestring | null
age_bandObligatoirestring | null
ethnicityObligatoirestring | null
roleObligatoirestring | null
tagsObligatoirestring[]
voice_idObligatoirestring | nullDefault voice for this character (GET /v1/voices)
parent_idObligatoirestring | nullVariants: the character they were made from (same identity and seed)
referenceObligatoireobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksfacultatifanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedfacultatiftrue
job_idObligatoirestring | null
errorObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

Delete a character

Permission: jobs

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

Paramètres

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

Exemples

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

Réponses

200 DeletedDeleted

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoirestring
deletedObligatoiretrue

Erreurs possibles

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

New outfit or background

Permission: 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.

Paramètres

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

Corps de la requête

ChampTypeDescription
clothingfacultatifstring0–300 chars
backgroundfacultatifstring0–300 chars

Exemples

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

Réponses

202 The pending variantCharacter

Champs de la réponse
ChampTypeDescription
idObligatoirestringchr_…
objectObligatoire"character"
stockObligatoirebooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindObligatoire"generated" | "trained" | "stock"
statusObligatoire"pending" | "ready" | "failed" | "disabled"
nameObligatoirestring
descriptionObligatoirestring
clothingObligatoirestring
styleObligatoirestring
backgroundObligatoirestring | null
genderObligatoirestring | null
age_bandObligatoirestring | null
ethnicityObligatoirestring | null
roleObligatoirestring | null
tagsObligatoirestring[]
voice_idObligatoirestring | nullDefault voice for this character (GET /v1/voices)
parent_idObligatoirestring | nullVariants: the character they were made from (same identity and seed)
referenceObligatoireobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksfacultatifanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedfacultatiftrue
job_idObligatoirestring | null
errorObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

Train a character from photos

Permission: jobs

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

Paramètres

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

Corps de la requête

ChampTypeDescription
nameObligatoirestring1–80 chars
genderObligatoire"female" | "male"
agefacultatifinteger1–120
rolefacultatifstring0–120 chars
voice_idfacultatifstring0–64 chars
consentObligatoirestring2–4000 chars
photos[]Obligatoirestring[]3–10 photos (multipart file fields)3–10 items

Exemples

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."}

Réponses

202 The pending characterCharacter

Champs de la réponse
ChampTypeDescription
idObligatoirestringchr_…
objectObligatoire"character"
stockObligatoirebooleantrue for RelayPoint's ready stock presenters (original AI-generated people)
kindObligatoire"generated" | "trained" | "stock"
statusObligatoire"pending" | "ready" | "failed" | "disabled"
nameObligatoirestring
descriptionObligatoirestring
clothingObligatoirestring
styleObligatoirestring
backgroundObligatoirestring | null
genderObligatoirestring | null
age_bandObligatoirestring | null
ethnicityObligatoirestring | null
roleObligatoirestring | null
tagsObligatoirestring[]
voice_idObligatoirestring | nullDefault voice for this character (GET /v1/voices)
parent_idObligatoirestring | nullVariants: the character they were made from (same identity and seed)
referenceObligatoireobject | nullReference images (signed URLs, 1 hour) once ready
photo_checksfacultatifanyTrained characters: the result of the photo checks (adult, not a public figure, one clear face)
consent_recordedfacultatiftrue
job_idObligatoirestring | null
errorObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

List voices

Permission: audio

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 VoicesVoiceList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireobject[]
data[].idObligatoirestring
data[].objectObligatoire"voice"
data[].nameObligatoirestring
data[].languageObligatoirestringBCP 47, e.g. sw-KE
data[].genderObligatoire"female" | "male"
data[].accentObligatoirestring | null
data[].engineObligatoire"kokoro" | "chatterbox" | "ultra"
data[].defaultObligatoireboolean
data[].preview_urlObligatoirestring | nullA short sample (signed URL, 1 hour), or null until generated
data[].productsObligatoirestring[]
data[].availableObligatoirebooleanA route can speak it right now on rp/tts
data[].tiersObligatoireobjectSpoken now by rp/tts (ultra) / rp/tts-standard (standard)
languages_without_voiceObligatoireobject[]
languages_without_voice[].languageObligatoirestring
languages_without_voice[].nameObligatoirestring
languages_without_voice[].noteObligatoirestring

Erreurs possibles

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

Write a script

Permission: chat

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

Paramètres

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

Corps de la requête

ChampTypeDescription
promptObligatoirestring3–4000 chars
stylefacultatifenumauto, advertisement, informative, storytelling, tutorial, sales, announcement · par défaut "auto"
length_secondsfacultatifinteger5–600 · par défaut 30
languagefacultatifstring2–12 chars · par défaut "en"

Exemples

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

Réponses

200 The scriptScript

Champs de la réponse
ChampTypeDescription
objectObligatoire"script"
scriptObligatoirestring
languageObligatoirestring
styleObligatoirestring
estimated_secondsObligatoireintegerSpeaking time of the script-9007199254740991–9007199254740991
usageObligatoireobject
usage.tokensObligatoireinteger-9007199254740991–9007199254740991
usage.cost_usdObligatoirestringWhat this call cost. US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Erreurs possibles

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

Plan scenes

Permission: jobs

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

Paramètres

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

Corps de la requête

ChampTypeDescription
scriptObligatoirestring1–20000 chars
languagefacultatifstring2–12 chars · par défaut "en"
modefacultatif"character_only" | "character_visuals"par défaut "character_only"

Exemples

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

Réponses

200 The planVideoAvatarPlan

Champs de la réponse
ChampTypeDescription
objectObligatoire"video_avatar.plan"
modeObligatoire"character_only" | "character_visuals"
languageObligatoirestring
estimated_secondsObligatoireinteger-9007199254740991–9007199254740991
scenesObligatoireobject[]Edit and send back as `scenes` on POST /v1/video/avatar
scenes[].start_sObligatoirenumber
scenes[].end_sObligatoirenumber
scenes[].textObligatoirestring
scenes[].layoutObligatoire"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptObligatoirestring
usageObligatoireobject
usage.tokensObligatoireinteger-9007199254740991–9007199254740991
usage.cost_usdObligatoirestringWhat planning cost (character_visuals only). US dollars as a decimal string with 6 decimals, e.g. "0.012500"

Erreurs possibles

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

Estimate a video

Permission: jobs

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modefacultatif"character_only" | "character_visuals"par défaut "character_only"
character_idfacultatifstring1–64 chars
image_urlfacultatifstringuri · 0–2000 chars
scriptfacultatifstring1–20000 chars
audio_urlfacultatifstringuri · 0–2000 chars
voice_idfacultatifstring0–64 chars
languagefacultatifstring2–12 chars · par défaut "en"
aspect_ratiofacultatif"9:16" | "16:9" | "1:1"par défaut "16:9"
framingfacultatif"head" | "presenter"par défaut "presenter"
qualityfacultatif"ultra" | "standard"par défaut "ultra"
resolutionfacultatif"480p" | "720p" | "1080p"par défaut "1080p"
backgroundfacultatifobject
background.typeObligatoire"character" | "color" | "image" | "blur"
background.valuefacultatifstring0–2000 chars
mediafacultatifobject[]0–30 items
media[].typeObligatoire"image" | "video" | "slide" | "logo"
media[].urlfacultatifstringuri · 0–2000 chars
media[].titlefacultatifstring1–120 chars
media[].bulletsfacultatifstring[]0–6 items
media[].slidefacultatifobject
media[].start_sObligatoirenumber0–3600
media[].end_sObligatoirenumber0–3600
media[].layoutfacultatif"fullscreen" | "side" | "pip" | "lower-third"par défaut "fullscreen"
scenesfacultatifobject[]1–120 items
scenes[].start_sfacultatifnumber0–3600 · par défaut 0
scenes[].end_sfacultatifnumber0–3600 · par défaut 0
scenes[].textObligatoirestring1–2000 chars
scenes[].visual_promptfacultatifstring0–1000 chars · par défaut ""
scenes[].layoutfacultatif"presenter" | "fullscreen" | "side" | "pip"
visuals_motionfacultatifbooleanpar défaut false
captionsfacultatifobject
captions.onfacultatifbooleanpar défaut true
captions.stylefacultatif"classic" | "bold" | "minimal"par défaut "classic"
musicfacultatifobject
music.track_idObligatoire"calm" | "bright" | "warm" | "pulse"
music.volumefacultatifnumber0–1 · par défaut 0.15
max_secondsfacultatifinteger1–3600
metadatafacultatifmap<string, string>
pronunciationsfacultatifobject[]0–200 items
pronunciations[].textObligatoirestring1–100 chars
pronunciations[].sayObligatoirestring1–200 chars

Exemples

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

Réponses

200 The estimateVideoAvatarEstimate

Champs de la réponse
ChampTypeDescription
objectObligatoire"video_avatar.estimate"
secondsObligatoireinteger-9007199254740991–9007199254740991
by_modeObligatoireobject
by_mode.character_onlyObligatoireobject
by_mode.character_visualsObligatoireobject
max_secondsObligatoireintegerThe longest video allowed for this request (your max_seconds, never above the platform maximum)-9007199254740991–9007199254740991
fitsObligatoireboolean

Erreurs possibles

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

Render a video

Permission: jobs

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

Paramètres

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

Corps de la requête

ChampTypeDescription
modefacultatif"character_only" | "character_visuals"par défaut "character_only"
character_idfacultatifstring1–64 chars
image_urlfacultatifstringuri · 0–2000 chars
scriptfacultatifstring1–20000 chars
audio_urlfacultatifstringuri · 0–2000 chars
voice_idfacultatifstring0–64 chars
languagefacultatifstring2–12 chars · par défaut "en"
aspect_ratiofacultatif"9:16" | "16:9" | "1:1"par défaut "16:9"
framingfacultatif"head" | "presenter"par défaut "presenter"
qualityfacultatif"ultra" | "standard"par défaut "ultra"
resolutionfacultatif"480p" | "720p" | "1080p"par défaut "1080p"
backgroundfacultatifobject
background.typeObligatoire"character" | "color" | "image" | "blur"
background.valuefacultatifstring0–2000 chars
mediafacultatifobject[]0–30 items
media[].typeObligatoire"image" | "video" | "slide" | "logo"
media[].urlfacultatifstringuri · 0–2000 chars
media[].titlefacultatifstring1–120 chars
media[].bulletsfacultatifstring[]0–6 items
media[].slidefacultatifobject
media[].start_sObligatoirenumber0–3600
media[].end_sObligatoirenumber0–3600
media[].layoutfacultatif"fullscreen" | "side" | "pip" | "lower-third"par défaut "fullscreen"
scenesfacultatifobject[]1–120 items
scenes[].start_sfacultatifnumber0–3600 · par défaut 0
scenes[].end_sfacultatifnumber0–3600 · par défaut 0
scenes[].textObligatoirestring1–2000 chars
scenes[].visual_promptfacultatifstring0–1000 chars · par défaut ""
scenes[].layoutfacultatif"presenter" | "fullscreen" | "side" | "pip"
visuals_motionfacultatifbooleanpar défaut false
captionsfacultatifobject
captions.onfacultatifbooleanpar défaut true
captions.stylefacultatif"classic" | "bold" | "minimal"par défaut "classic"
musicfacultatifobject
music.track_idObligatoire"calm" | "bright" | "warm" | "pulse"
music.volumefacultatifnumber0–1 · par défaut 0.15
max_secondsfacultatifinteger1–3600
metadatafacultatifmap<string, string>
pronunciationsfacultatifobject[]0–200 items
pronunciations[].textObligatoirestring1–100 chars
pronunciations[].sayObligatoirestring1–200 chars

Exemples

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

Réponses

202 The queued videoVideoAvatar

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"video_avatar"
modeObligatoire"character_only" | "character_visuals"
statusObligatoireenumqueued, scripting, planning, voicing, visuals, rendering, composing, done, failed
progressObligatoireinteger0–100
accountObligatoirestring
character_idObligatoirestring | null
metadataObligatoiremap<string, string> | null
cost_so_far_usdObligatoirestringCharged so far (the final cost once done; 0 when failed). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
linesObligatoireobject[]One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productObligatoirestring
lines[].unitsObligatoirenumber
lines[].cost_usdObligatoirestringThis line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusObligatoire"held" | "settled" | "released"
scenesObligatoireobject[]
scenes[].start_sObligatoirenumber
scenes[].end_sObligatoirenumber
scenes[].textObligatoirestring
scenes[].layoutObligatoire"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptObligatoirestring
segmentsObligatoireobject[]
segments[].indexObligatoireinteger-9007199254740991–9007199254740991
segments[].start_sObligatoirenumber
segments[].end_sObligatoirenumber
segments[].statusObligatoire"pending" | "running" | "done"
resultObligatoireobject | null
errorObligatoireobject | null
ai_generatedObligatoiretrue
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
completedObligatoireinteger | null
outputs_expire_atObligatoireinteger | null

Erreurs possibles

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

Get a video

Permission: jobs

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The videoVideoAvatar

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"video_avatar"
modeObligatoire"character_only" | "character_visuals"
statusObligatoireenumqueued, scripting, planning, voicing, visuals, rendering, composing, done, failed
progressObligatoireinteger0–100
accountObligatoirestring
character_idObligatoirestring | null
metadataObligatoiremap<string, string> | null
cost_so_far_usdObligatoirestringCharged so far (the final cost once done; 0 when failed). US dollars as a decimal string with 6 decimals, e.g. "0.012500"
linesObligatoireobject[]One billed line per product used (voice-over, lip sync, visuals, composing…); each has its own hold
lines[].productObligatoirestring
lines[].unitsObligatoirenumber
lines[].cost_usdObligatoirestringThis line. US dollars as a decimal string with 6 decimals, e.g. "0.012500"
lines[].statusObligatoire"held" | "settled" | "released"
scenesObligatoireobject[]
scenes[].start_sObligatoirenumber
scenes[].end_sObligatoirenumber
scenes[].textObligatoirestring
scenes[].layoutObligatoire"presenter" | "fullscreen" | "side" | "pip"How the presenter and the scene's visual share the frame
scenes[].visual_promptObligatoirestring
segmentsObligatoireobject[]
segments[].indexObligatoireinteger-9007199254740991–9007199254740991
segments[].start_sObligatoirenumber
segments[].end_sObligatoirenumber
segments[].statusObligatoire"pending" | "running" | "done"
resultObligatoireobject | null
errorObligatoireobject | null
ai_generatedObligatoiretrue
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
completedObligatoireinteger | null
outputs_expire_atObligatoireinteger | null

Erreurs possibles

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

Get avatar settings

Permission: jobs

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 SettingsVideoAvatarSettings

Champs de la réponse
ChampTypeDescription
objectObligatoire"video_avatar.settings"
watermarkObligatoirebooleanA visible "AI-generated" mark is drawn on this account's videos
watermark_ownObligatoireboolean
watermark_set_by_parentObligatoirebooleanSet by the reseller for all its sub-accounts

Erreurs possibles

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

Update avatar settings

Permission: jobs

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

Paramètres

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

Corps de la requête

ChampTypeDescription
watermarkObligatoireboolean

Exemples

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}'

Réponses

200 SettingsVideoAvatarSettings

Champs de la réponse
ChampTypeDescription
objectObligatoire"video_avatar.settings"
watermarkObligatoirebooleanA visible "AI-generated" mark is drawn on this account's videos
watermark_ownObligatoireboolean
watermark_set_by_parentObligatoirebooleanSet by the reseller for all its sub-accounts

Erreurs possibles

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 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

Permission: Toute clé API

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The productsModelList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireModel[]

Erreurs possibles

  • 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

Permission: Toute clé 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.

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The balanceBalance

Champs de la réponse
ChampTypeDescription
objectObligatoire"balance"
accountObligatoirestring
currencyObligatoire"USD"
available_usdObligatoirenumber
held_usdObligatoirenumberReserved for running calls and jobs
amount_owed_usdObligatoirenumberAbove 0 when the wallet is below $0; spending is paused until it is paid
spending_pausedObligatoireboolean
month_to_date_usdObligatoirenumber
monthly_cap_usdObligatoirenumber | null
reseller_profit_usdfacultatifnumberResellers: mark-up earned and not yet withdrawn

Erreurs possibles

  • 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

Permission: usage

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

Paramètres

ChampTypeDescription
from (requête)facultatifstringStart (inclusive), ISO 8601date-time
to (requête)facultatifstringEnd (exclusive), ISO 8601date-time
model (requête)facultatifstringOnly this product id0–100 chars
include_sub_accounts (requête)facultatif"true" | "false"Resellers: include usage of sub-accounts
limit (requête)facultatifinteger1–100 · par défaut 50
starting_after (requête)facultatifstringCursor: the last id of the previous page0–100 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 A page of usageUsageList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireUsageRecord[]
has_moreObligatoireboolean
totalsObligatoireobject
totals.requestsObligatoireinteger-9007199254740991–9007199254740991
totals.price_usdObligatoirenumber

Erreurs possibles

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

List orders

Permission: billing

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

Paramètres

ChampTypeDescription
status (requête)facultatif"awaiting_payment" | "paid" | "failed" | "void" | "refunded" | "partially_refunded"
kind (requête)facultatif"credits" | "bundle" | "single_connection" | "addon"credits = credit top-ups and reseller packages; bundle, single_connection, addon = connections
limit (requête)facultatifinteger1–100 · par défaut 20
starting_after (requête)facultatifstringCursor: the last id of the previous page0–100 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 A page of ordersOrderList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireOrder[]
has_moreObligatoireboolean
total_countObligatoireinteger-9007199254740991–9007199254740991

Erreurs possibles

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

Get an order

Permission: billing

One of your orders.

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The orderOrder

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"order"
accountObligatoirestring
numberObligatoirestringOrder number shown on the invoice
referenceObligatoirestring
kindObligatoire"credits" | "bundle" | "single_connection" | "addon"credits = credit top-up or reseller package
descriptionObligatoirestring
statusObligatoire"awaiting_payment" | "paid" | "failed" | "void" | "refunded" | "partially_refunded"
currencyObligatoire"USD"
amount_usdObligatoirenumber
credits_usdObligatoirenumberCredits added to the wallet (bonus included)
connectionsObligatoireinteger-9007199254740991–9007199254740991
refunded_usdObligatoirenumber
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
paid_atObligatoireinteger | null
invoiceObligatoireobject
invoice.numberObligatoirestring | nullCiel invoice number
invoice.pay_urlObligatoirestring | nullPayment page while the order awaits payment
invoice.pdf_urlObligatoirestring | nullInvoice PDF (API key auth, `billing` scope) once paid
invoice.currencyObligatoirestring | nullCurrency of the Ciel invoice (Ciel's company currency, e.g. ZAR). Credits stay in USD.
invoice.amountObligatoirenumber | nullAmount of the Ciel invoice in its currency
invoice.fx_rateObligatoirenumber | null1 USD = fx_rate in the invoice currency, fixed when the order was created

Erreurs possibles

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

Download an invoice

Permission: billing

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The invoice PDF

Erreurs possibles

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

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

Permission: Toute clé API

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

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

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireCatalogItem[]The connections catalogue (needs the connections scope; empty otherwise)
versionObligatoireintegerCatalog version: bumped by every change that affects clients-9007199254740991–9007199254740991
account_versionObligatoireintegerThis account's own version (custom prices, mark-ups, names, caps)-9007199254740991–9007199254740991
etagObligatoirestringSame as the ETag header: send it as If-None-Match to get 304 while nothing changed
generated_atObligatoirestring
currencyObligatoire"USD"
productsObligatoireCatalogProduct[]
packsObligatoireobject[]Credit top-up packs for this account type
packs[].idObligatoirestring
packs[].skuObligatoirestring | null
packs[].nameObligatoirestring
packs[].price_usdObligatoirestring | null
packs[].credit_usdObligatoirestring | null
packs[].bonus_pctObligatoireinteger-9007199254740991–9007199254740991
packs[].custom_amountObligatoireboolean
packs[].minimum_usdObligatoirestring | null
plansObligatoireobject[]
plans[].idObligatoirestring
plans[].skuObligatoirestring | null
plans[].kindObligatoirestring
plans[].nameObligatoirestring
plans[].price_usdObligatoirestringUS dollars as a decimal string with 6 decimals
plans[].connectionsObligatoireinteger-9007199254740991–9007199254740991
plans[].monthlyObligatoireboolean
voicesObligatoireobject[]
voices[].idObligatoirestring
voices[].nameObligatoirestring
voices[].languageObligatoirestring
voices[].genderObligatoirestring
voices[].accentObligatoirestring | null
voices[].defaultObligatoireboolean
voices[].productsObligatoirestring[]
voices[].availableObligatoireboolean
languages_without_voiceObligatoireobject[]
languages_without_voice[].languageObligatoirestring
languages_without_voice[].nameObligatoirestring
limitsObligatoireobject
limits.video_avatar_max_secondsObligatoireinteger-9007199254740991–9007199254740991
limits.rate_limit_per_minuteObligatoireinteger-9007199254740991–9007199254740991
limits.monthly_cap_usdfacultatifstring | nullNeeds the billing scope
limits.kyc_threshold_usdObligatoirestringUS dollars as a decimal string with 6 decimals
limits.max_webhook_endpointsObligatoireinteger-9007199254740991–9007199254740991
fx_ratesObligatoiremap<string, number>Display-only exchange rates (1 USD = rate)
featuresObligatoiremap<string, boolean>
service_statusObligatoireobject
service_status.maintenanceObligatoireobject
service_status.servicesObligatoireobject[]
accountObligatoireobject
account.idObligatoirestring
account.typeObligatoirestring
account.sub_accountObligatoireboolean
account.statusObligatoirestring
account.markup_profilesfacultatifmap<string, any>[]Resellers, with the sub_accounts scope
account.white_label_namesfacultatifmap<string, string>

Erreurs possibles

  • 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

Permission: Toute clé API

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The versionsCatalogVersion

Champs de la réponse
ChampTypeDescription
objectObligatoire"catalog_version"
versionObligatoireinteger-9007199254740991–9007199254740991
account_versionObligatoireinteger-9007199254740991–9007199254740991
etagObligatoirestring

Erreurs possibles

  • 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

Permission: Toute clé 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.

Paramètres

ChampTypeDescription
kind (chemin)Obligatoirestring
file (chemin)Obligatoirestring

Exemples

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

Réponses

200 The media (after a 302 redirect)

Erreurs possibles

  • 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)

Permission: Toute clé 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).

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 text/event-stream

Avec stream: true, des événements serveur (SSE) de type CatalogEvent

Erreurs possibles

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

Connections

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

GET/v1/connections

List connections

Permission: connections

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

Paramètres

ChampTypeDescription
include_sub_accounts (requête)facultatif"true" | "false"Resellers: include connections of sub-accounts
include_disconnected (requête)facultatif"true" | "false"
end_user_id (requête)facultatifstringRelayPoint Connect: only this end user's connections (in the key's mode: test keys see test connections)
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The connectionsConnectionList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireConnection[]
has_moreObligatoireboolean

Erreurs possibles

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

Connect with credentials

Permission: connectionsClés live uniquement

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

Paramètres

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

Corps de la requête

ChampTypeDescription
catalog_slugObligatoirestring1–120 chars
credentialsObligatoiremap<string, string>The item's fields (see `fields` in GET /v1/catalog)

Exemples

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-…"}}'

Réponses

201 The connectionConnection

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"connection"
accountObligatoirestring
catalog_slugObligatoirestring
statusObligatoire"pending" | "active" | "expired" | "error" | "disconnected"
account_labelObligatoirestring | null
external_account_idObligatoirestring | null
scopesObligatoirestring[]
billingObligatoire"pool" | "wallet"
connect_linkObligatoirestring | null
last_errorObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedObligatoireinteger | null

Erreurs possibles

  • 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

Permission: connections

Status, account label and granted scopes.

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The connectionConnection

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"connection"
accountObligatoirestring
catalog_slugObligatoirestring
statusObligatoire"pending" | "active" | "expired" | "error" | "disconnected"
account_labelObligatoirestring | null
external_account_idObligatoirestring | null
scopesObligatoirestring[]
billingObligatoire"pool" | "wallet"
connect_linkObligatoirestring | null
last_errorObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedObligatoireinteger | null

Erreurs possibles

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

Disconnect

Permission: connections

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

Paramètres

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

Exemples

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

Réponses

200 The disconnected connectionConnection

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"connection"
accountObligatoirestring
catalog_slugObligatoirestring
statusObligatoire"pending" | "active" | "expired" | "error" | "disconnected"
account_labelObligatoirestring | null
external_account_idObligatoirestring | null
scopesObligatoirestring[]
billingObligatoire"pool" | "wallet"
connect_linkObligatoirestring | null
last_errorObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
disconnectedObligatoireinteger | null

Erreurs possibles

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

Call the provider's API (recommended)

Permission: connections:requestClés live uniquement

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

Paramètres

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

Corps de la requête

ChampTypeDescription
methodfacultatif"GET" | "POST" | "PUT" | "PATCH" | "DELETE"par défaut "GET"
pathObligatoirestringPath on the provider's API host (e.g. /v1.0/me) or a full https URL on an allowed host1–2000 chars
queryfacultatifmap<string, string | string[]>
headersfacultatifmap<string, string>Only accept, content-type, if-match, if-none-match, prefer and a few provider headers are forwarded
bodyfacultatifanyJSON body (objects are sent as application/json; strings as given)

Exemples

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"}}'

Réponses

200 The provider's answerConnectionResponse

Champs de la réponse
ChampTypeDescription
objectObligatoire"connection_response"
connectionObligatoirestring
statusObligatoireintegerThe provider's HTTP status-9007199254740991–9007199254740991
headersObligatoiremap<string, string>content-type, etag, location, retry-after and the provider's rate-limit headers
bodyObligatoireanyParsed JSON, text, or base64 (see body_encoding)
body_encodingObligatoire"json" | "text" | "base64"

Erreurs possibles

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

Get credentials

Permission: connections:credentialsClés live uniquement

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The credentialsConnectionCredentials

Erreurs possibles

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

Get credentials (POST)

Permission: connections:credentialsClés live uniquement

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

Paramètres

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

Exemples

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

Réponses

200 The credentialsConnectionCredentials

Erreurs possibles

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

Sub-accounts

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

POST/v1/sub_accounts

Create a sub-account

Permission: sub_accounts

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

Paramètres

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

Corps de la requête

ChampTypeDescription
nameObligatoirestring1–120 chars
external_reffacultatifstringYour own customer id (unique per reseller)1–120 chars
monthly_cap_usdfacultatifnumber | null
markup_profile_idfacultatifstring | null
countryfacultatifstringISO 3166-1 alpha-22–2 chars
billing_emailfacultatifstring | null

Exemples

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"}'

Réponses

201 The sub-accountSubAccount

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"sub_account"
nameObligatoirestring
external_refObligatoirestring | null
statusObligatoire"active" | "suspended" | "closed"
countryObligatoirestring
billing_emailObligatoirestring | null
monthly_cap_usdObligatoirenumber | null
markup_profile_idObligatoirestring | null
balanceObligatoireobject
balance.available_usdObligatoirenumber
balance.held_usdObligatoirenumber
balance.amount_owed_usdObligatoirenumber
month_to_date_usdObligatoirenumber
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

  • 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

Permission: sub_accounts

With balances and month-to-date spend.

Paramètres

ChampTypeDescription
limit (requête)facultatifinteger1–100 · par défaut 50
offset (requête)facultatifinteger0–9007199254740991 · par défaut 0
external_ref (requête)facultatifstring0–120 chars

Exemples

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

Réponses

200 A page of sub-accountsSubAccountList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireSubAccount[]
has_moreObligatoireboolean

Erreurs possibles

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

Get a sub-account

Permission: sub_accounts

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring

Exemples

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

Réponses

200 The sub-accountSubAccount

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"sub_account"
nameObligatoirestring
external_refObligatoirestring | null
statusObligatoire"active" | "suspended" | "closed"
countryObligatoirestring
billing_emailObligatoirestring | null
monthly_cap_usdObligatoirenumber | null
markup_profile_idObligatoirestring | null
balanceObligatoireobject
balance.available_usdObligatoirenumber
balance.held_usdObligatoirenumber
balance.amount_owed_usdObligatoirenumber
month_to_date_usdObligatoirenumber
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

Update a sub-account

Permission: sub_accounts

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

Paramètres

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

Corps de la requête

ChampTypeDescription
namefacultatifstring1–120 chars
external_reffacultatifstringYour own customer id (unique per reseller)1–120 chars
monthly_cap_usdfacultatifnumber | null
markup_profile_idfacultatifstring | null
countryfacultatifstringISO 3166-1 alpha-22–2 chars
billing_emailfacultatifstring | null
statusfacultatif"active" | "suspended"

Exemples

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"}'

Réponses

200 The sub-accountSubAccount

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"sub_account"
nameObligatoirestring
external_refObligatoirestring | null
statusObligatoire"active" | "suspended" | "closed"
countryObligatoirestring
billing_emailObligatoirestring | null
monthly_cap_usdObligatoirenumber | null
markup_profile_idObligatoirestring | null
balanceObligatoireobject
balance.available_usdObligatoirenumber
balance.held_usdObligatoirenumber
balance.amount_owed_usdObligatoirenumber
month_to_date_usdObligatoirenumber
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

Close a sub-account

Permission: sub_accountsClés live uniquement

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

Paramètres

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

Exemples

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

Réponses

200 The closed sub-accountSubAccount

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"sub_account"
nameObligatoirestring
external_refObligatoirestring | null
statusObligatoire"active" | "suspended" | "closed"
countryObligatoirestring
billing_emailObligatoirestring | null
monthly_cap_usdObligatoirenumber | null
markup_profile_idObligatoirestring | null
balanceObligatoireobject
balance.available_usdObligatoirenumber
balance.held_usdObligatoirenumber
balance.amount_owed_usdObligatoirenumber
month_to_date_usdObligatoirenumber
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

Transfer credits

Permission: sub_accountsClés live uniquement

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

Paramètres

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

Corps de la requête

ChampTypeDescription
amount_usdObligatoirenumber>0–10000000
directionfacultatif"to_sub_account" | "to_parent"par défaut "to_sub_account"
memofacultatifstring0–200 chars

Exemples

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"

Réponses

201 The transferTransfer

Champs de la réponse
ChampTypeDescription
objectObligatoire"transfer"
idObligatoirestring
sub_accountObligatoirestring
directionObligatoire"to_sub_account" | "to_parent"
amount_usdObligatoirenumber
sub_account_balanceObligatoireobject
sub_account_balance.available_usdObligatoirenumber
sub_account_balance.held_usdObligatoirenumber
sub_account_balance.amount_owed_usdObligatoirenumber

Erreurs possibles

  • 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

Permission: 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.

Paramètres

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

Corps de la requête

ChampTypeDescription
urlObligatoirestringuri · 0–2000 chars
eventsfacultatifenum[]1–25 items · par défaut ["*"]
descriptionfacultatifstring0–200 chars

Exemples

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"]}'

Réponses

201 The endpoint and its secretWebhookEndpointWithSecret

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"webhook_endpoint"
urlObligatoirestring
eventsObligatoireenum[]
descriptionObligatoirestring | null
enabledObligatoireboolean
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
secretObligatoirestringwhsec_… signing secret, shown only here

Erreurs possibles

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

List webhook endpoints

Permission: webhooks

Without secrets.

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The endpointsWebhookEndpointList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireWebhookEndpoint[]
has_moreObligatoireboolean

Erreurs possibles

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

Get a webhook endpoint

Permission: webhooks

With its 20 latest deliveries.

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The endpointWebhookEndpointDetail

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"webhook_endpoint"
urlObligatoirestring
eventsObligatoireenum[]
descriptionObligatoirestring | null
enabledObligatoireboolean
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
recent_deliveriesObligatoireobject[]
recent_deliveries[].idObligatoirestring
recent_deliveries[].event_idObligatoirestring
recent_deliveries[].typeObligatoirestring
recent_deliveries[].statusObligatoirestring
recent_deliveries[].attemptsObligatoireinteger-9007199254740991–9007199254740991
recent_deliveries[].last_status_codeObligatoireinteger | null
recent_deliveries[].next_attemptObligatoireinteger | null
recent_deliveries[].createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

Update a webhook endpoint

Permission: webhooks

URL, events, description, or enable/disable.

Paramètres

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

Corps de la requête

ChampTypeDescription
urlfacultatifstringuri · 0–2000 chars
eventsfacultatifenum[]1–25 items
descriptionfacultatifstring | null
enabledfacultatifboolean

Exemples

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}'

Réponses

200 The endpointWebhookEndpoint

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"webhook_endpoint"
urlObligatoirestring
eventsObligatoireenum[]
descriptionObligatoirestring | null
enabledObligatoireboolean
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

Delete a webhook endpoint

Permission: webhooks

Stops deliveries to it.

Paramètres

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

Exemples

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

Réponses

200 DeletedDeleted

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoirestring
deletedObligatoiretrue

Erreurs possibles

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

Rotate the signing secret

Permission: webhooks

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

Paramètres

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

Exemples

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

Réponses

200 The endpoint and its new secretWebhookEndpointWithSecret

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"webhook_endpoint"
urlObligatoirestring
eventsObligatoireenum[]
descriptionObligatoirestring | null
enabledObligatoireboolean
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
secretObligatoirestringwhsec_… signing secret, shown only here

Erreurs possibles

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

Send a test event

Permission: webhooks

Queues a signed ping event to this endpoint.

Paramètres

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

Exemples

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

Réponses

202 QueuedWebhookTest

Champs de la réponse
ChampTypeDescription
objectObligatoire"webhook_test"
endpointObligatoirestring
delivery_idObligatoirestring | null

Erreurs possibles

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

Connect

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

POST/v1/connect/sessions

Create a connect session

Permission: connections

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

Paramètres

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

Corps de la requête

ChampTypeDescription
end_user_idObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
providersfacultatif"all" | enum[]"all" (the providers available to the account) or a listpar défaut "all"
redirect_urlfacultatifstringFull-page mode: where the browser returns after connectinguri · 0–2000 chars
expires_in_minutesfacultatifinteger5–1440 · par défaut 60

Exemples

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}'

Réponses

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

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"connect_session"
end_user_idObligatoirestring
modeObligatoire"live" | "test"
providersObligatoireenum[]
statusObligatoire"open" | "expired"
tokenfacultatifstringcst_…: only in the create response. Pass it to RelayPointConnect.open() in the browser.
urlfacultatifstringThe hosted connect page (full-page mode): only in the create response
connectionsObligatoirestring[]
expires_atObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

  • 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

Permission: connections

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The sessionConnectSession

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"connect_session"
end_user_idObligatoirestring
modeObligatoire"live" | "test"
providersObligatoireenum[]
statusObligatoire"open" | "expired"
tokenfacultatifstringcst_…: only in the create response. Pass it to RelayPointConnect.open() in the browser.
urlfacultatifstringThe hosted connect page (full-page mode): only in the create response
connectionsObligatoirestring[]
expires_atObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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

Check the Connect setup

Permission: connections

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

Paramètres

ChampTypeDescription
publishable_key (requête)facultatifstring0–80 chars
origin (requête)facultatifstring0–300 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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"

Réponses

200 The setup statusConnectStatus

Champs de la réponse
ChampTypeDescription
objectObligatoire"connect_status"
accountObligatoireobject
account.idObligatoirestring
account.nameObligatoirestring
modeObligatoire"live" | "test"
package_activeObligatoirebooleanAlways true in test mode
publishable_keyObligatoireobject | null
script_urlObligatoirestring
providersObligatoireobject[]
providers[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
providers[].catalog_slugObligatoirestring
providers[].availableObligatoireboolean
providers[].reasonObligatoire"not_enabled" | "not_configured" | "awaiting_platform_approval" | "x_key_required" | null
providers[].notesObligatoirestring[]

Erreurs possibles

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

Get the workspace's Connect settings

Permission: 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.

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The settingsConnectSettings

Champs de la réponse
ChampTypeDescription
objectObligatoire"connect_settings"
approval_requiredObligatoireboolean
ai_assist_enabledObligatoireboolean
timezoneObligatoirestring
x_client_idObligatoirestring | null
x_client_secret_setObligatoireboolean
x_use_relaypoint_appObligatoireboolean

Erreurs possibles

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

Update the workspace's Connect settings

Permission: connections

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

Paramètres

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

Corps de la requête

ChampTypeDescription
approval_requiredfacultatifboolean
ai_assist_enabledfacultatifboolean
timezonefacultatifstringIANA time zone, e.g. Africa/Johannesburg0–64 chars
x_client_idfacultatifstring | nullYour own X developer app (OAuth 2.0 client id). Callback URL to register: <app>/connect/callback
x_client_secretfacultatifstring | nullStored encrypted; never returned
x_use_relaypoint_appfacultatifbooleanWithout your own key: use RelayPoint's X app (monthly post cap per account)

Exemples

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"}'

Réponses

200 The settingsConnectSettings

Champs de la réponse
ChampTypeDescription
objectObligatoire"connect_settings"
approval_requiredObligatoireboolean
ai_assist_enabledObligatoireboolean
timezoneObligatoirestring
x_client_idObligatoirestring | null
x_client_secret_setObligatoireboolean
x_use_relaypoint_appObligatoireboolean

Erreurs possibles

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

List end users

Permission: connections

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

Paramètres

ChampTypeDescription
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The end usersEndUserList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireEndUser[]

Erreurs possibles

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

Get an end user

Permission: connections

Its display name and role (member by default).

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The end userEndUser

Champs de la réponse
ChampTypeDescription
objectObligatoire"end_user"
end_user_idObligatoirestring
display_nameObligatoirestring | null
roleObligatoire"member" | "drafter" | "approver"

Erreurs possibles

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

Set an end user's role or name

Permission: connections

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

Paramètres

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

Corps de la requête

ChampTypeDescription
display_namefacultatifstring | null
rolefacultatif"member" | "drafter" | "approver"drafter: posts wait for an approver when approvals are on

Exemples

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"}'

Réponses

200 The end userEndUser

Champs de la réponse
ChampTypeDescription
objectObligatoire"end_user"
end_user_idObligatoirestring
display_nameObligatoirestring | null
roleObligatoire"member" | "drafter" | "approver"

Erreurs possibles

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

List the session's connections (browser)

Permission: Toute clé 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.

Paramètres

ChampTypeDescription
RelayPoint-Publishable-Key (en-tête)ObligatoirestringYour publishable key (rp_pk_live_… / rp_pk_test_…).
RelayPoint-Session (en-tête)ObligatoirestringThe connect session token (cst_…).

Exemples

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"

Réponses

200 The end user's connectionsClientConnectionList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireobject[]
data[].idObligatoirestring
data[].providerObligatoireenum | null
data[].account_labelObligatoirestring | null
data[].statusObligatoirestring

Erreurs possibles

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

Social

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

GET/v1/social/accounts

List social accounts and destinations

Permission: social

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

Paramètres

ChampTypeDescription
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The accountsSocialAccountList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireobject[]
data[].connectionObligatoirestring
data[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
data[].account_labelObligatoirestring | null
data[].statusObligatoirestring
data[].destinationsObligatoireobject[]
data[].errorObligatoirestring | null

Erreurs possibles

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

Create a post

Permission: 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).

Paramètres

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

Corps de la requête

ChampTypeDescription
end_user_idObligatoirestringWhose connections it posts to
author_end_user_idfacultatifstringWho wrote it (default end_user_id). A drafter's post waits for an approver.
textfacultatifstring0–10000 chars · par défaut ""
titlefacultatifstringYouTube title (default: the first line of the text)0–100 chars
hashtagsfacultatifstring[]0–30 items
image_urlfacultatifstringuri · 0–2000 chars
video_urlfacultatifstringuri · 0–2000 chars
mediafacultatifstring[]A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urlfacultatifstringuri · 0–2000 chars
overridesfacultatifmap<string, object>Per network (facebook, instagram…) or per connection id: text, hashtags, link_url, title
targetsObligatoireenum | object[]1–20 items
scheduled_atfacultatifstring | integerISO 8601 or unix seconds
privacyfacultatifstringYouTube: public, unlisted, private. TikTok: SELF_ONLY until RelayPoint's TikTok audit passes.0–40 chars
draftfacultatifbooleanSave without publishing (POST /v1/social/posts/{id}/submit later)

Exemples

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"}'

Réponses

201 The post, with one entry per targetSocialPost

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"social_post"
end_user_idObligatoirestring
author_end_user_idObligatoirestring
modeObligatoire"live" | "test"
textObligatoirestring
titleObligatoirestring | null
hashtagsObligatoirestring[]
image_urlObligatoirestring | null
video_urlObligatoirestring | null
mediaObligatoirestring[]
link_urlObligatoirestring | null
overridesObligatoiremap<string, any>
statusObligatoireenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObligatoireinteger | null
published_atObligatoireinteger | null
approved_byObligatoirestring | null
approved_atObligatoireinteger | null
rejected_reasonObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
targetsObligatoireobject[]
targets[].connectionObligatoirestring
targets[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObligatoirestring
targets[].destination_nameObligatoirestring | null
targets[].statusObligatoire"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObligatoirestring | nullThe network's post id (test_… in test mode)
targets[].urlObligatoirestring | null
targets[].privacyObligatoirestring | null
targets[].errorObligatoireobject | null
targets[].attemptsObligatoireinteger-9007199254740991–9007199254740991
targets[].next_attempt_atObligatoireinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObligatoireobject | null

Erreurs possibles

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

List posts

Permission: social

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

Paramètres

ChampTypeDescription
end_user_id (requête)facultatifstringYour own id for the person or entity (e.g. agent_123, company)
status (requête)facultatifenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
limit (requête)facultatifinteger1–100 · par défaut 25
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The postsSocialPostList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireSocialPost[]

Erreurs possibles

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

Validate a post

Permission: 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.

Paramètres

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

Corps de la requête

ChampTypeDescription
end_user_idObligatoirestringWhose connections it posts to
author_end_user_idfacultatifstringWho wrote it (default end_user_id). A drafter's post waits for an approver.
textfacultatifstring0–10000 chars · par défaut ""
titlefacultatifstringYouTube title (default: the first line of the text)0–100 chars
hashtagsfacultatifstring[]0–30 items
image_urlfacultatifstringuri · 0–2000 chars
video_urlfacultatifstringuri · 0–2000 chars
mediafacultatifstring[]A media library id (POST /v1/social/media) instead of image_url / video_url0–1 items
link_urlfacultatifstringuri · 0–2000 chars
overridesfacultatifmap<string, object>Per network (facebook, instagram…) or per connection id: text, hashtags, link_url, title
targetsObligatoireenum | object[]1–20 items
scheduled_atfacultatifstring | integerISO 8601 or unix seconds
privacyfacultatifstringYouTube: public, unlisted, private. TikTok: SELF_ONLY until RelayPoint's TikTok audit passes.0–40 chars
draftfacultatifbooleanSave without publishing (POST /v1/social/posts/{id}/submit later)

Exemples

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

Réponses

200 The checks per targetSocialPostValidation

Champs de la réponse
ChampTypeDescription
objectObligatoire"social_post_validation"
okObligatoireboolean
mediaObligatoirestring | null
targetsObligatoireobject[]
targets[].connectionObligatoirestring
targets[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObligatoirestring
targets[].destination_nameObligatoirestring | null
targets[].okObligatoireboolean
targets[].textObligatoirestringThe text as it will be published (adapted)
targets[].titleObligatoirestring | null
targets[].link_urlObligatoirestring | null
targets[].privacyObligatoirestring | null
targets[].mediaObligatoireobject | null
targets[].errorsObligatoireobject[]e.g. media_required, media_type, title_required, video_too_large, empty
targets[].warningsObligatoireobject[]e.g. text_shortened, hashtags_trimmed, too_many_hashtags, link_not_clickable, image_cropped, image_resized, media_dropped, title_from_text, tiktok_private_only

Erreurs possibles

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

Get a post

Permission: social

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The postSocialPost

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"social_post"
end_user_idObligatoirestring
author_end_user_idObligatoirestring
modeObligatoire"live" | "test"
textObligatoirestring
titleObligatoirestring | null
hashtagsObligatoirestring[]
image_urlObligatoirestring | null
video_urlObligatoirestring | null
mediaObligatoirestring[]
link_urlObligatoirestring | null
overridesObligatoiremap<string, any>
statusObligatoireenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObligatoireinteger | null
published_atObligatoireinteger | null
approved_byObligatoirestring | null
approved_atObligatoireinteger | null
rejected_reasonObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
targetsObligatoireobject[]
targets[].connectionObligatoirestring
targets[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObligatoirestring
targets[].destination_nameObligatoirestring | null
targets[].statusObligatoire"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObligatoirestring | nullThe network's post id (test_… in test mode)
targets[].urlObligatoirestring | null
targets[].privacyObligatoirestring | null
targets[].errorObligatoireobject | null
targets[].attemptsObligatoireinteger-9007199254740991–9007199254740991
targets[].next_attempt_atObligatoireinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObligatoireobject | null

Erreurs possibles

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

Cancel a post

Permission: social

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

Paramètres

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

Exemples

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

Réponses

200 The canceled postSocialPost

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"social_post"
end_user_idObligatoirestring
author_end_user_idObligatoirestring
modeObligatoire"live" | "test"
textObligatoirestring
titleObligatoirestring | null
hashtagsObligatoirestring[]
image_urlObligatoirestring | null
video_urlObligatoirestring | null
mediaObligatoirestring[]
link_urlObligatoirestring | null
overridesObligatoiremap<string, any>
statusObligatoireenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObligatoireinteger | null
published_atObligatoireinteger | null
approved_byObligatoirestring | null
approved_atObligatoireinteger | null
rejected_reasonObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
targetsObligatoireobject[]
targets[].connectionObligatoirestring
targets[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObligatoirestring
targets[].destination_nameObligatoirestring | null
targets[].statusObligatoire"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObligatoirestring | nullThe network's post id (test_… in test mode)
targets[].urlObligatoirestring | null
targets[].privacyObligatoirestring | null
targets[].errorObligatoireobject | null
targets[].attemptsObligatoireinteger-9007199254740991–9007199254740991
targets[].next_attempt_atObligatoireinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObligatoireobject | null

Erreurs possibles

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

Approve a post

Permission: social

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

Paramètres

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

Corps de la requête

ChampTypeDescription
approver_end_user_idObligatoirestringYour own id for the person or entity (e.g. agent_123, company)

Exemples

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"}'

Réponses

200 The postSocialPost

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"social_post"
end_user_idObligatoirestring
author_end_user_idObligatoirestring
modeObligatoire"live" | "test"
textObligatoirestring
titleObligatoirestring | null
hashtagsObligatoirestring[]
image_urlObligatoirestring | null
video_urlObligatoirestring | null
mediaObligatoirestring[]
link_urlObligatoirestring | null
overridesObligatoiremap<string, any>
statusObligatoireenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObligatoireinteger | null
published_atObligatoireinteger | null
approved_byObligatoirestring | null
approved_atObligatoireinteger | null
rejected_reasonObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
targetsObligatoireobject[]
targets[].connectionObligatoirestring
targets[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObligatoirestring
targets[].destination_nameObligatoirestring | null
targets[].statusObligatoire"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObligatoirestring | nullThe network's post id (test_… in test mode)
targets[].urlObligatoirestring | null
targets[].privacyObligatoirestring | null
targets[].errorObligatoireobject | null
targets[].attemptsObligatoireinteger-9007199254740991–9007199254740991
targets[].next_attempt_atObligatoireinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObligatoireobject | null

Erreurs possibles

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

Reject a post

Permission: social

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

Paramètres

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

Corps de la requête

ChampTypeDescription
approver_end_user_idObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
reasonfacultatifstring0–500 chars

Exemples

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

Réponses

200 The postSocialPost

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"social_post"
end_user_idObligatoirestring
author_end_user_idObligatoirestring
modeObligatoire"live" | "test"
textObligatoirestring
titleObligatoirestring | null
hashtagsObligatoirestring[]
image_urlObligatoirestring | null
video_urlObligatoirestring | null
mediaObligatoirestring[]
link_urlObligatoirestring | null
overridesObligatoiremap<string, any>
statusObligatoireenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObligatoireinteger | null
published_atObligatoireinteger | null
approved_byObligatoirestring | null
approved_atObligatoireinteger | null
rejected_reasonObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
targetsObligatoireobject[]
targets[].connectionObligatoirestring
targets[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObligatoirestring
targets[].destination_nameObligatoirestring | null
targets[].statusObligatoire"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObligatoirestring | nullThe network's post id (test_… in test mode)
targets[].urlObligatoirestring | null
targets[].privacyObligatoirestring | null
targets[].errorObligatoireobject | null
targets[].attemptsObligatoireinteger-9007199254740991–9007199254740991
targets[].next_attempt_atObligatoireinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObligatoireobject | null

Erreurs possibles

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

Submit a draft

Permission: social

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

Paramètres

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

Exemples

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

Réponses

200 The postSocialPost

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"social_post"
end_user_idObligatoirestring
author_end_user_idObligatoirestring
modeObligatoire"live" | "test"
textObligatoirestring
titleObligatoirestring | null
hashtagsObligatoirestring[]
image_urlObligatoirestring | null
video_urlObligatoirestring | null
mediaObligatoirestring[]
link_urlObligatoirestring | null
overridesObligatoiremap<string, any>
statusObligatoireenumdraft, pending_approval, rejected, scheduled, publishing, published, partially_published, failed, canceled
scheduled_atObligatoireinteger | null
published_atObligatoireinteger | null
approved_byObligatoirestring | null
approved_atObligatoireinteger | null
rejected_reasonObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
targetsObligatoireobject[]
targets[].connectionObligatoirestring
targets[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
targets[].destinationObligatoirestring
targets[].destination_nameObligatoirestring | null
targets[].statusObligatoire"pending" | "queued" | "processing" | "published" | "failed"
targets[].external_idObligatoirestring | nullThe network's post id (test_… in test mode)
targets[].urlObligatoirestring | null
targets[].privacyObligatoirestring | null
targets[].errorObligatoireobject | null
targets[].attemptsObligatoireinteger-9007199254740991–9007199254740991
targets[].next_attempt_atObligatoireinteger | nullqueued: when it is retried (rate limits and outages: after 2, 10 and 30 minutes; YouTube quota: after the daily reset)
targets[].metricsObligatoireobject | null

Erreurs possibles

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

AI assist

Permission: social

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

Paramètres

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

Corps de la requête

ChampTypeDescription
taskObligatoire"caption" | "hashtags" | "rewrite" | "translate" | "listing_to_post"
textfacultatifstring0–4000 chars
listingfacultatifmap<string, any>listing_to_post: the property's details (title, price, bedrooms, suburb, features…)
tonefacultatif"professional" | "friendly" | "enthusiastic" | "luxury" | "concise"
languagefacultatif"en" | "fr" | "pt"
providerfacultatifenumWrite for this network's limitsfacebook, instagram, linkedin, tiktok, youtube, google_business, x

Exemples

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"}'

Réponses

200 The textSocialAssist

Champs de la réponse
ChampTypeDescription
objectObligatoire"social_assist"
taskObligatoirestring
textObligatoirestring
hashtagsObligatoirestring[]
modelObligatoirestring
modeObligatoire"live" | "test"
cost_usdObligatoirestringCharged to your AI Credits (0 in test mode)

Erreurs possibles

  • 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

Permission: 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.

Paramètres

ChampTypeDescription
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 Suggested timesBestTimes

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireobject[]
data[].providerObligatoireenumfacebook, instagram, linkedin, google_drive, tiktok, youtube, google_business, x, whatsapp
data[].basisObligatoire"history" | "default"
data[].timezoneObligatoirestring
data[].slotsObligatoireobject[]
data[].nextObligatoirestring[]

Erreurs possibles

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

Unified analytics

Permission: 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.

Paramètres

ChampTypeDescription
end_user_id (requête)facultatifstringYour own id for the person or entity (e.g. agent_123, company)
from (requête)facultatifintegerUnix seconds (default: 30 days ago)>0–9007199254740991
to (requête)facultatifinteger>0–9007199254740991
group_by (requête)facultatif"connection" | "end_user" | "provider"par défaut "provider"
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The analyticsSocialAnalytics

Champs de la réponse
ChampTypeDescription
objectObligatoire"social_analytics"
fromObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
toObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991
group_byObligatoire"provider" | "connection" | "end_user"
totalsObligatoireobject
totals.postsObligatoireinteger-9007199254740991–9007199254740991
totals.impressionsObligatoirenumber
totals.reachObligatoirenumber
totals.engagementObligatoirenumber
totals.clicksObligatoirenumber
totals.likesObligatoirenumber
totals.commentsObligatoirenumber
totals.sharesObligatoirenumber
totals.viewsObligatoirenumber
dataObligatoireobject[]
data[].postsObligatoireinteger-9007199254740991–9007199254740991
data[].impressionsObligatoirenumber
data[].reachObligatoirenumber
data[].engagementObligatoirenumber
data[].clicksObligatoirenumber
data[].likesObligatoirenumber
data[].commentsObligatoirenumber
data[].sharesObligatoirenumber
data[].viewsObligatoirenumber
data[].keyObligatoirestring
data[].providerfacultatifstring
data[].labelfacultatifstring

Erreurs possibles

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

Add to the media library

Permission: social

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

Paramètres

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

Corps de la requête

ChampTypeDescription
end_user_idObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
fileObligatoirestringThe image or video (multipart file field). Or send JSON (SocialMediaFromUrl) instead.binary
namefacultatifstring0–200 chars

Exemples

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

Réponses

201 The media itemMedia

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"media"
end_user_idObligatoirestring
kindObligatoire"image" | "video"
sourceObligatoirestring
nameObligatoirestring | null
mime_typeObligatoirestring
sizeObligatoireinteger-9007199254740991–9007199254740991
widthObligatoireinteger | null
heightObligatoireinteger | null
drive_file_idObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 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

Permission: social

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

Paramètres

ChampTypeDescription
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The mediaMediaList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireMedia[]

Erreurs possibles

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

Delete a media item

Permission: social

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatifstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Exemples

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

Réponses

200 DeletedMediaDeleted

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"media"
deletedObligatoiretrue

Erreurs possibles

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

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

Permission: drive

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

Paramètres

ChampTypeDescription
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatifstring0–64 chars
q (requête)facultatifstring0–100 chars
page_size (requête)facultatifinteger1–100 · par défaut 25
page_token (requête)facultatifstring0–500 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 A page of filesDriveFileList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireDriveFile[]
next_page_tokenObligatoirestring | null

Erreurs possibles

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

Upload to Drive

Permission: drive

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

Paramètres

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

Corps de la requête

ChampTypeDescription
end_user_idObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
fileObligatoirestringThe file (multipart file field), at most 10 MBbinary
connectionfacultatifstring0–64 chars
namefacultatifstring0–200 chars
folder_idfacultatifstring0–200 chars

Exemples

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

Réponses

201 The fileDriveFile

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"drive_file"
nameObligatoirestring
mime_typeObligatoirestring
sizeObligatoireinteger | null
modifiedObligatoireinteger | null
web_urlObligatoirestring | null
icon_urlObligatoirestring | null
thumbnail_urlObligatoirestring | null

Erreurs possibles

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 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

Permission: drive

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

Paramètres

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

Corps de la requête

ChampTypeDescription
end_user_idObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connectionfacultatifstring0–64 chars
file_idObligatoirestring0–200 chars

Exemples

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"}'

Réponses

201 The media itemMedia

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"media"
end_user_idObligatoirestring
kindObligatoire"image" | "video"
sourceObligatoirestring
nameObligatoirestring | null
mime_typeObligatoirestring
sizeObligatoireinteger-9007199254740991–9007199254740991
widthObligatoireinteger | null
heightObligatoireinteger | null
drive_file_idObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

  • 400 invalid_request
  • 400 invalid_json
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 409 idempotency_conflict
  • 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

Permission: drive

The file's metadata.

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatifstring0–64 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The fileDriveFile

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"drive_file"
nameObligatoirestring
mime_typeObligatoirestring
sizeObligatoireinteger | null
modifiedObligatoireinteger | null
web_urlObligatoirestring | null
icon_urlObligatoirestring | null
thumbnail_urlObligatoirestring | null

Erreurs possibles

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

Download a Drive file

Permission: drive

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatifstring0–64 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The file

Erreurs possibles

  • 400 invalid_request
  • 401 invalid_api_key
  • 403 ip_not_allowed
  • 403 domain_not_allowed
  • 403 missing_scope
  • 403 account_suspended
  • 404 not_found
  • 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

Permission: whatsapp

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

Paramètres

ChampTypeDescription
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatifstring0–64 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The templatesWhatsAppTemplateList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireobject[]
data[].nameObligatoirestring
data[].languageObligatoirestring
data[].categoryfacultatifstring
data[].statusfacultatifstring
data[].componentsfacultatifany[]

Erreurs possibles

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

Add or update a contact

Permission: whatsapp

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

Paramètres

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

Corps de la requête

ChampTypeDescription
end_user_idObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connectionfacultatifstring0–64 chars
phoneObligatoirestringInternational format, e.g. +278212345670–32 chars
namefacultatifstring0–120 chars
opt_infacultatifobject
opt_in.sourceObligatoirestringWhere they opted in (e.g. website enquiry form)1–200 chars
opt_in.proofObligatoirestringWhat they agreed to and how (checkbox wording, form URL, timestamp, message id…)1–2000 chars
opt_in.atfacultatifstring | integerISO 8601 or unix seconds

Exemples

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

Réponses

201 The contactWhatsAppContact

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"whatsapp_contact"
phoneObligatoirestring
nameObligatoirestring | null
opted_inObligatoireboolean
opt_inObligatoireobject | null
opted_out_atObligatoireinteger | null
last_inbound_atObligatoireinteger | null
window_openObligatoirebooleanFree-form text is allowed (within 24 hours of the contact's last message)
unreadObligatoireinteger-9007199254740991–9007199254740991

Erreurs possibles

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

List contacts

Permission: whatsapp

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

Paramètres

ChampTypeDescription
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatifstring0–64 chars
opted_in (requête)facultatif"true" | "false"
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The contactsWhatsAppContactList

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireWhatsAppContact[]

Erreurs possibles

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

Opt a contact out

Permission: whatsapp

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

Paramètres

ChampTypeDescription
id (chemin)Obligatoirestring
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatifstring0–64 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).
Idempotency-Key (en-tête)facultatifstringYour unique id for this request (up to 255 characters). Retrying with the same key returns the first response (header `Idempotent-Replayed: true`) and never charges twice; reusing it with a different body is `idempotency_mismatch`.0–255 chars

Exemples

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

Réponses

200 The contactWhatsAppContact

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"whatsapp_contact"
phoneObligatoirestring
nameObligatoirestring | null
opted_inObligatoireboolean
opt_inObligatoireobject | null
opted_out_atObligatoireinteger | null
last_inbound_atObligatoireinteger | null
window_openObligatoirebooleanFree-form text is allowed (within 24 hours of the contact's last message)
unreadObligatoireinteger-9007199254740991–9007199254740991

Erreurs possibles

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

Send a message

Permission: whatsapp

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

Paramètres

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

Corps de la requête

ChampTypeDescription

Exemples

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"}]}]}}'

Réponses

201 The messageWhatsAppMessage

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"whatsapp_message"
contactObligatoirestring
directionObligatoire"in" | "out"
typeObligatoirestring
textObligatoirestring | null
templateObligatoirestring | null
statusObligatoirestringqueued, sent, delivered, read, failed or received
errorObligatoirestring | null
broadcastObligatoirestring | null
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

  • 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

Permission: whatsapp

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

Paramètres

ChampTypeDescription
end_user_id (requête)ObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connection (requête)facultatifstring0–64 chars
contact (requête)Obligatoirestring0–64 chars
RelayPoint-Account (en-tête)facultatifstringResellers: the id of one of your sub-accounts to act for (usage is billed to its wallet).

Exemples

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

Réponses

200 The conversationWhatsAppConversation

Champs de la réponse
ChampTypeDescription
objectObligatoire"list"
dataObligatoireWhatsAppMessage[]
contactObligatoireWhatsAppContact

Erreurs possibles

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

Broadcast a template

Permission: 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.

Paramètres

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

Corps de la requête

ChampTypeDescription
end_user_idObligatoirestringYour own id for the person or entity (e.g. agent_123, company)
connectionfacultatifstring0–64 chars
templateObligatoireobject
template.nameObligatoirestring0–512 chars
template.languagefacultatifstring0–15 chars · par défaut "en"
template.componentsfacultatifany[]0–20 items
contactsfacultatifstring[]Default: every opted-in contact0–500 items

Exemples

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"}}'

Réponses

201 The queued broadcastWhatsAppBroadcast

Champs de la réponse
ChampTypeDescription
idObligatoirestring
objectObligatoire"whatsapp_broadcast"
templateObligatoirestring
languageObligatoirestring
statusObligatoirestringqueued, sending, done or canceled
totalObligatoireinteger-9007199254740991–9007199254740991
sentObligatoireinteger-9007199254740991–9007199254740991
failedObligatoireinteger-9007199254740991–9007199254740991
skippedObligatoireinteger-9007199254740991–9007199254740991
createdObligatoireintegerUnix time in seconds-9007199254740991–9007199254740991

Erreurs possibles

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