Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Copy every member of a recipient list into a draft campaign (SQL-side, scale-safe).
Python
import requests url = "https://x.kupe.in/v1/batches/{batch_id}/contacts:from-list" payload = { "recipient_list_id": "<string>" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({recipient_list_id: '<string>'}) }; fetch('https://x.kupe.in/v1/batches/{batch_id}/contacts:from-list', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
curl --request POST \ --url https://x.kupe.in/v1/batches/{batch_id}/contacts:from-list \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "recipient_list_id": "<string>" } '
{ "copied": 123, "batch_id": "<string>", "recipient_list_id": "<string>" }
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Project API key (sk-kupe-...) or a Supabase user JWT.
sk-kupe-...
Successful Response