Welcome to Slimhooks, the lightweight, developer-friendly API platform for scheduling HTTP callbacks and automating backend workflows. Slimhooks is designed to simplify the complexities of task scheduling, enabling you to focus on building great products without worrying about managing cron jobs, queues, workers, or infrastructure.
You'll interact with Slimhooks via our API.
https://api.slimhooks.com/api/
To authenticate you need to add an Authorization header with the contents of the header being Bearer sk_123456789 where sk_123456789 is your API Key. You can generate these secret keys under "API keys" in your Slimhooks dashboard.
Authorization: Bearer sk_123456789
Slimhooks uses standard HTTP codes to indicate the success or failure of your requests.
In general, 2xx HTTP codes correspond to success, 4xx codes are for user-related failures, and 5xx codes are for infrastructure issues.
Expose your endpoints to the internet so we can send callbacks during build time.
ngrok http 5000
Start scheduling tasks with the /tasks/schedule endpoint. Tasks are sent to your callback on the execution time provided, with the provided JSON payload. The callback requests will always be an 'application/json' POST request.
curl -X POST 'https://api.slimhooks.com/api/tasks/schedule' \
-H 'Authorization: Bearer sk_123456789' \
-H 'Content-Type: application/json' \
-d $'{
"callback": "https://dummyjson.com/posts/add",
"executionTime": "2024-12-01T08:41:05.233Z", // UTC
"payload": {
"text": "Hello, world!",
"userId": "17"
},
"protected": false
}'
{ taskId: "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794" }
callback
string
valid url
required
The endpoint you want us to request on schedule.
executionTime
ISO string
Datetime > current datetime
required
The UTC datetime for when we should call your endpoint.
payload
JSON Object
optional
If you want us to send a JSON payload with metadata in the request to your endpoint, you can supply that here.
protected
boolean
Default true
optional
By default, we assume your endpoints are protected with authorization requirements. You can configure the authorization token we send in your Slimhooks dashboard. If your endpoint doesn't have any authentication requirements, you can disable it.