Make your first API call
developers-first-callOn this page
Create an app in Skeduler, swap its client id and secret for an access token, and call the API, in three steps.
Create an app in Skeduler, swap its client id and secret for an access token, and call the API, in three steps.
Who can do this: an Owner or Admin creates the app. Anyone with its credentials can then call the API.
Before you start: you need your Skeduler API address. In the examples below it's $SKEDULER_API. Contact Skeduler support if you don't have it. In the JavaScript and PHP tabs, the same names in capitals (SKEDULER_API, CLIENT_ID and so on) are variables you set.
1. Create an app
In Skeduler, go to Settings › API & Webhooks, choose Create app, pick its scopes, and copy the client id and client secret. The secret is shown only once. See Create an API app.
2. Get an access token
curl
curl -s -X POST "$SKEDULER_API/api/v1/oauth/token" \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-d grant_type=client_credentials
JavaScript (fetch)
const res = await fetch(`${SKEDULER_API}/api/v1/oauth/token`, {
method: "POST",
headers: {
Authorization: `Basic ${btoa(`${CLIENT_ID}:${CLIENT_SECRET}`)}`,
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({ grant_type: "client_credentials" }),
});
const data = await res.json();
PHP (Guzzle)
$client = new \GuzzleHttp\Client();
$res = $client->request('POST', "$SKEDULER_API/api/v1/oauth/token", [
'auth' => [$CLIENT_ID, $CLIENT_SECRET],
'form_params' => ['grant_type' => 'client_credentials'],
]);
$data = json_decode((string) $res->getBody(), true);
{
"access_token": "your-access-token",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "read:customers read:jobs"
}
3. Call the API
curl
curl -s "$SKEDULER_API/api/v1/jobs?per_page=2" \
-H "Authorization: Bearer $ACCESS_TOKEN"
JavaScript (fetch)
const res = await fetch(`${SKEDULER_API}/api/v1/jobs?per_page=2`, {
headers: {
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await res.json();
PHP (Guzzle)
$client = new \GuzzleHttp\Client();
$res = $client->request('GET', "$SKEDULER_API/api/v1/jobs?per_page=2", [
'headers' => [
'Authorization' => "Bearer $ACCESS_TOKEN",
],
]);
$data = json_decode((string) $res->getBody(), true);
{
"data": [
{
"id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
"job_number": 1042,
"title": "Fix AC",
"description": "Split system not cooling in the main bedroom.",
"status": "New",
"job_status_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BD",
"customer_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BE",
"address": { "line_1": "12 Example Street", "line_2": null, "city": "Brisbane", "state": "QLD", "postal_code": "4000" },
"notes": null,
"created_at": "2026-11-03T01:00:00+00:00",
"updated_at": "2026-11-03T01:00:00+00:00"
}
],
"meta": { "page": 1, "per_page": 2, "total": 1 }
}
If it worked, the answer lists your jobs in data, with the paging details in meta. To try the other endpoints without writing code, see Try the API in Postman or Insomnia.
A single record comes back as { "data": { … } }. A failure comes back as { "error": { "code": "…", "message": "…" } }. See API errors.