Skip to main content
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

targetUrl
string<uri>
required

The URL to make the HTTP request to

Example:

"https://api.example.com/webhook"

targetMethod
enum<string>
required

HTTP method to use

Available options:
GET,
POST,
PUT,
PATCH,
DELETE
Example:

"POST"

triggerAt
string<date-time>
required

When to execute the request (ISO 8601 format)

Example:

"2024-12-25T10:00:00Z"

targetHeaders
object

HTTP headers to include in the request

Example:
{
"Content-Type": "application/json",
"Authorization": "Bearer token123"
}
targetBody
object

Request body (for POST, PUT, PATCH methods)

Example:
{ "message": "Hello from CallMeLater!" }

Response

Schedule created successfully

scheduleId
string

Unique identifier for the scheduled request

Example:

"sched_1234567890abcdef"

invocationId
string

Unique identifier for the invocation

Example:

"inv_1234567890abcdef"

message
string

Success message

Example:

"Request scheduled successfully"

I