POST
/
schedule
Create a scheduled request
curl --request POST \
  --url https://api.callmelater.xyz/schedule \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "targetUrl": "https://api.example.com/webhook",
  "targetMethod": "POST",
  "targetHeaders": {
    "Content-Type": "application/json",
    "Authorization": "Bearer token123"
  },
  "targetBody": {
    "message": "Hello from CallMeLater!"
  },
  "triggerAt": "2024-12-25T10:00:00Z"
}'
{
  "scheduleId": "sched_1234567890abcdef",
  "invocationId": "inv_1234567890abcdef",
  "message": "Request scheduled successfully"
}
Schedule an HTTP request to be executed at a specific time. This endpoint requires 1 credit per request.

Example Request

curl -X POST https://api.callmelater.xyz/schedule \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "targetUrl": "https://api.example.com/webhook",
    "targetMethod": "POST",
    "targetHeaders": {
      "Content-Type": "application/json",
      "Authorization": "Bearer webhook_token"
    },
    "targetBody": {"message": "Hello from CallMeLater!"},
    "triggerAt": "2024-12-25T10:00:00Z"
  }'

Response

{
  "scheduleId": "sched_1234567890abcdef",
  "invocationId": "inv_1234567890abcdef",
  "message": "Request scheduled successfully"
}

Use Cases

  • User Onboarding: Schedule welcome emails or follow-up messages
  • E-commerce: Send abandoned cart reminders or order updates
  • Notifications: Time-delayed alerts and reminders
  • Webhooks: Trigger delayed webhook calls to external services
  • Automation: Schedule API calls for recurring tasks

Authorizations

x-api-key
string
header
required

API key authentication. Include your API key in the x-api-key header.

Body

application/json

Schedule configuration

The body is of type object.

Response

201
application/json

Schedule created successfully

The response is of type object.