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.
Python
import requests url = "https://x.kupe.in/v1/inbound/{deployment_id}" payload = { "name": "<string>", "agent_id": "<string>", "availability": { "always": True, "timezone": "Asia/Kolkata", "days_of_week": [123], "start": "09:00", "end": "18:00", "after_hours_message": "" } } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.patch(url, json=payload, headers=headers) print(response.text)
const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({ name: '<string>', agent_id: '<string>', availability: { always: true, timezone: 'Asia/Kolkata', days_of_week: [123], start: '09:00', end: '18:00', after_hours_message: '' } }) }; fetch('https://x.kupe.in/v1/inbound/{deployment_id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
curl --request PATCH \ --url https://x.kupe.in/v1/inbound/{deployment_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "agent_id": "<string>", "availability": { "always": true, "timezone": "Asia/Kolkata", "days_of_week": [ 123 ], "start": "09:00", "end": "18:00", "after_hours_message": "" } } '
{ "id": "<string>", "org_id": "<string>", "project_id": "<string>", "agent_id": "<string>", "telephony_account_id": "<string>", "from_number": "<string>", "name": "<string>", "status": "draft", "availability": { "always": true, "timezone": "Asia/Kolkata", "days_of_week": [ 123 ], "start": "09:00", "end": "18:00", "after_hours_message": "" }, "open_now": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "created_by": "<string>" }
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Project API key (sk-kupe-...) or a Supabase user JWT.
sk-kupe-...
1 - 120
draft
active
paused
Weekly answer window in timezone. always ignores days/start/end.
timezone
always
Show child attributes
Successful Response