Skip to main content
PUT
/
api
/
calls
/
{callId}
/
schedule
cURL
curl --request PUT \
  --url http://localhost:8080/api/calls/{callId}/schedule \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
{
  "scheduled_timestamp": 1748460000
}
'
{
  "message": "Scheduled call time updated successfully",
  "status": "success",
  "error": null,
  "data": {
    "operation": "schedule_update",
    "organization_id": "org-789",
    "call_id": "call_bf2a9c7d-4e5f-4318-9b2a-8d7c6e4f1a0b",
    "previous_scheduled_timestamp": 1748454000,
    "new_scheduled_timestamp": 1748460000,
    "scheduled_for_human": "2025-01-28T20:26:40Z",
    "call": {
      "call_id": "call_bf2a9c7d-4e5f-4318-9b2a-8d7c6e4f1a0b",
      "metadata": {
        "is_scheduled": true,
        "scheduled_timestamp": 1748460000,
        "execution_status": "pending"
      },
      "events": [
        {
          "timestamp": 1748452000000,
          "event": "Scheduled call time updated via dedicated endpoint",
          "data": {
            "previous_scheduled_timestamp": 1748454000,
            "new_scheduled_timestamp": 1748460000,
            "updated_at": 1748452000000,
            "endpoint_used": "/schedule"
          }
        }
      ]
    }
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Path Parameters

callId
string
required

Body

application/json

Scheduled call update request body

scheduled_timestamp
integer
required

New Unix timestamp (seconds) for when to execute the call

Response

200 - application/json

Scheduled call time updated successfully

message
string
status
string
error
string
data
object