Skip to content
Support

Try the API in Postman or Insomnia

Owner, AdminLast checked 25 November 20263 min readArticle ID: developers-api-collection
On this page

Download a ready-made collection of every Skeduler API request, import it into Postman or Insomnia, add your app's details and send requests.

Send requests to the Skeduler API without writing code. The collection has every endpoint in the API, set up with the sign-in step and an example for each request. It works in Postman and in Insomnia.

Who can do this: an Owner or Admin creates the app. Anyone with its client id and secret can then use the collection.

Before you start: you need an app's client id and client secret (see Create an API app) and your Skeduler API address. Contact Skeduler support if you don't have the address.

1. Download the collection

Download skeduler-api-v1.postman_collection.json. It's a Postman collection file (version 2.1), built from the same API description as the API reference, so it always matches it.

The file holds no keys and no addresses. You add your own in step 3.

2. Import it

  • Postman: choose Import, then drop the file in or pick it.
  • Insomnia: choose Import, then pick the file. Insomnia reads Postman collections.

You get a collection called Skeduler API v1, with one folder for each part of the API, such as Jobs, Invoices and Webhooks.

3. Add your app's details

Open the collection's variables and fill in:

VariableWhat to put in it
baseUrlYour Skeduler API address, without /api/v1 at the end.
clientIdYour app's client id.
clientSecretYour app's client secret.
accessTokenLeave it empty. Step 4 fills it in.

Keep the secret to yourself. If you share or export the collection, take it out first. See Keep your client secret safe.

4. Get an access token

Open Authentication › Get an access token and send it. It swaps the client id and secret for a token that lasts 1 hour.

In Postman, the token is saved in accessToken for you. If your tool doesn't do that, copy access_token from the answer into the accessToken variable.

Every other request sends the token for you. When a request answers 401, the token has run out: send Get an access token again.

5. Send a request

Open a request, such as Jobs › List jobs, and send it. The answer is the same as from your own code. See Make your first API call.

  • Filters on lists: they're listed under the request's query parameters, switched off. Tick the ones you want and change the value.
  • Ids in the address: a request like Jobs › Get a job has an id path variable. Replace the example id with one of yours, from a list request.
  • Create and update requests: the body is an example with made-up values. Change it before you send it. The API reference lists every field you can send.
  • Idempotency-Key: each create or update request sends a new key, so sending it twice does it twice. To repeat a request safely, put a fixed value in the header and send it again. See Safe retries with idempotency keys.

If a request fails

  • 401 invalid_client on the token request: the client id or secret is wrong, or the app is turned off. See My token request fails with invalid_client.
  • 403 insufficient_scope: the app doesn't have the scope that request needs. Add it to the app, then get a new token. See The API says insufficient_scope.
  • 404 not_found: the id isn't one of your business's records. Replace the example id.
  • The request doesn't reach Skeduler: check baseUrl. It starts with https:// and has no /api/v1 at the end.

In this section