Get Your API Key

First, you’ll need to create an account and get your API key to start scheduling requests.
1

Sign Up

Create your CallMeLater account at callmelater.xyz
2

Generate API Key

Navigate to your dashboard and create a new API key for your project
3

Save Your Key

Copy and securely store your API key - you’ll need it for all API requests

Schedule Your First Request

Let’s schedule a simple HTTP request to be executed in the future.

Using cURL

curl -X POST https://api.callmelater.xyz/schedule \
  -H "Content-Type: application/json" \
  -H "x-api-key: your_api_key_here" \
  -d '{
    "targetUrl": "https://httpbin.org/post",
    "targetMethod": "POST",
    "targetHeaders": {
      "Content-Type": "application/json"
    },
    "targetBody": {
      "message": "Hello from the future!"
    },
    "triggerAt": "2024-03-20T15:00:00Z"
  }'

Using JavaScript (fetch)

const response = await fetch("https://api.callmelater.xyz/schedule", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": "your_api_key_here",
  },
  body: JSON.stringify({
    targetUrl: "https://httpbin.org/post",
    targetMethod: "POST",
    targetHeaders: {
      "Content-Type": "application/json",
    },
    targetBody: {
      message: "Hello from the future!",
    },
    triggerAt: "2024-03-20T15:00:00Z",
  }),
});

const result = await response.json();
console.log("Scheduled:", result.scheduleId);

Using Python

import requests
import json
from datetime import datetime, timedelta

# Schedule for 1 hour from now
trigger_time = (datetime.utcnow() + timedelta(hours=1)).isoformat() + 'Z'

response = requests.post(
    'https://api.callmelater.xyz/schedule',
    headers={
        'Content-Type': 'application/json',
        'x-api-key': 'your_api_key_here'
    },
    json={
        'targetUrl': 'https://httpbin.org/post',
        'targetMethod': 'POST',
        'targetHeaders': {
            'Content-Type': 'application/json'
        },
        'targetBody': {
            'message': 'Hello from the future!'
        },
        'triggerAt': trigger_time
    }
)

result = response.json()
print(f"Scheduled: {result['scheduleId']}")

Response

You’ll receive a response with your schedule details:
{
  "scheduleId": "sch_abc123",
  "invocationId": "inv_def456",
  "message": "Request scheduled successfully"
}

Monitor Your Request

Check the status and logs of your scheduled requests.

Get Logs

curl -H "x-api-key: your_api_key_here" \
  "https://api.callmelater.xyz/stats/logs"

Check Credits

curl -H "x-api-key: your_api_key_here" \
  "https://api.callmelater.xyz/stats/remaining-credits"

Next Steps

Common Use Cases

Here are some popular ways developers use CallMeLater: