Skip to content
Support
← Back to Authentication and appsUse Print, then choose Save as PDF to keep a copy.

Skeduler Support · For developers

Authentication and apps

Create an app and get access.

7 pages

Keep your client secret safe

The client secret is shown once and lets anyone act as your app. Keep it on a server, give each integration its own app, and regenerate it if it leaks.

Owner, Admin · Last checked 24 November 2026 · 1 min read

Anyone holding your app's client id and secret can act as your app, with all of its scopes.

Who it's for: Owners, Admins and the developers who look after an integration.

Good habits

  • Copy the secret when it's shown. It appears once, when the app is created or the secret is regenerated. Skeduler can't show it again.
  • Keep it on a server you control, in a secret store or an environment variable. Never put it in a browser app, a mobile app or a public code repository.
  • One app per integration, with only the scopes it needs. Then a leak or a revocation affects only that integration.

If the secret leaks or is lost

In Settings › API & Webhooks, choose Regenerate secret on the app. The current secret stops working immediately and all its access tokens are revoked. Update the integration with the new secret.

If you no longer need the app, choose Revoke. Its tokens and webhook subscriptions stop. This can't be undone.

Create an API app

Create an app in Settings › API & Webhooks, choose its scopes, and copy its client id and one-time secret.

Owner, Admin · Last checked 24 November 2026 · 1 min read

An app holds the credentials your integration uses to talk to Skeduler.

Who can do this: Owners and Admins, and anyone with the Manage Developer Tools permission. You can only give an app scopes you're allowed to use yourself.

  1. In Skeduler, go to Settings › API & Webhooks.

  2. Choose Create app.

  3. Enter a Name and, if you like, a Description.

  4. Under Scopes, choose only what the integration needs. See Scopes.

  5. Create the app, then copy the Client ID and the secret straight away. The secret is shown only once.

The app is listed with its Client ID, Scopes, Status and when it was Last used.

A business can have up to 10 apps that aren't revoked: active and suspended ones count, revoked ones don't. At the limit, creating another says "You have reached the limit of 10 connected apps. Revoke one you no longer use to add another."

Change or remove an app

  • Edit changes the name, description and scopes. Removing a scope signs the app out: its current tokens stop working and it must ask for a new one. Adding scopes or renaming leaves tokens alone.
  • Regenerate secret makes a new secret. The old one stops working at once.
  • Revoke permanently disables the app and its tokens. It can't be undone.

Rotate or revoke an app's secret

Regenerate a secret that leaked or was lost, or revoke an app you no longer use.

Owner, Admin · Last checked 24 November 2026 · 1 min read

Go to Settings › API & Webhooks. Each app is listed with its Client ID, Scopes, Status and Last used.

Who can do this: Owners and Admins with the Manage Developer Tools permission.

Regenerate the secret

  1. On the app, select Regenerate secret.
  2. Read "Regenerate secret for [name]?": the current secret stops working immediately, and all issued access tokens are revoked.
  3. Select Regenerate secret to confirm.
  4. In Save your client secret, copy the new secret. It's shown once and can't be shown again.
  5. Update every integration that uses the app. Until you do, they fail.

The window says "A new secret was generated for [name]." Once your integrations use the new secret, they work again.

Revoke the app

  1. Select Revoke on the app.
  2. Read "Revoke [name]?": this permanently disables the app and revokes all its access tokens. It can't be undone.
  3. Select Revoke app.

You'll see App revoked. Its webhook subscriptions stop too. To use the API again, create a new app. See Create an API app.

Changing scopes isn't the same

Select Edit to rename an app or change its scopes. Removing a scope signs the app out: its current tokens stop working and it must request a new one. Adding scopes or renaming leaves tokens alone.

See Keep your client secret safe.

Get and use an access token

Swap your app's client id and secret for a one-hour bearer token with the OAuth 2.0 client credentials grant, and send it on every call.

Owner, Admin · Last checked 24 November 2026 · 1 min read

The API uses the OAuth 2.0 client credentials grant. Your app swaps its client id and secret for a short-lived bearer token.

Get a token with OAuth client credentials

To get a token, call POST /api/v1/oauth/token with grant_type=client_credentials, sending the client id and secret one of two ways:

WayHow
HTTP Basic (preferred)Authorization: Basic base64(client_id:client_secret)
In the bodyclient_id and client_secret fields (form or JSON)

Sending both is invalid_request (400). Any other grant_type is unsupported_grant_type (400). Every credential problem is the same invalid_client (401). These answers use the OAuth format, { "error": "invalid_client" }, not the usual error envelope.

A successful answer has access_token, token_type (Bearer), expires_in (seconds) and scope (the app's scopes, separated by spaces).

Use the access token

Send the token in the Authorization header of each call:

Authorization: Bearer <access_token>

A token:

  • lasts 1 hour (expires_in: 3600) and carries the app's scopes as they were when it was issued
  • belongs to one business, so there's no business header or parameter to send
  • stops working at once if the app is suspended or revoked, or a scope is removed from it

Cache the token and reuse it until shortly before it expires. Ask for a new one then, or when a call answers 401 unauthenticated. Token requests are rate limited, so fetching one per call will get you throttled.

401 and 403 errors

A 401 means the token is missing, expired or revoked. A 403 means the token is fine but lacks a scope, or the business or app can't use the API right now.

Owner, Admin · Last checked 24 November 2026 · 1 min read

What you see

A call answers 401 or 403, or asking for a token answers invalid_client.

Why it happens

  1. 401 · unauthenticated: no token, or it's malformed, expired or revoked.
  2. 401 · invalid_client (token request): wrong client id or secret, or the app was revoked or its secret regenerated.
  3. 403 · insufficient_scope: the token doesn't have the scope this call needs.
  4. 403 · app_inactive: the business's Skeduler account is no longer active. A suspended or revoked app has no token left, so its calls answer 401 · unauthenticated instead, and asking for a new token answers invalid_client.
  5. 403 · billing_restricted: the business's subscription currently restricts API access.

How to fix it

  1. 401 · unauthenticated: get a new token and retry once.
  2. 401 · invalid_client (token request): check the credentials in Settings › API & Webhooks. Regenerate the secret if needed.
  3. 403 · insufficient_scope: add the scope to the app, then get a new token. See Scopes.
  4. 403 · app_inactive: nothing in your request will fix it. The business's Owner needs its Skeduler account active again, or you can contact Skeduler support.
  5. 403 · billing_restricted: the Owner or an Admin resolves it in Settings › Subscription.

Don't retry a 403 as it is. It won't succeed until the cause is fixed.

My token request fails with invalid_client

A 401 invalid_client means Skeduler couldn't match the client id and secret to an active app. Check the credentials, how you send them, and the app's status.

Owner, Admin · Last checked 24 November 2026 · 2 min read

What you see

POST /api/v1/oauth/token answers 401 with:

{ "error": "invalid_client" }

There's no message with it. Skeduler gives the same answer whichever check failed, so it doesn't say which part was wrong.

Why it happens

  1. The secret was regenerated. The old secret stops working straight away, and every token issued with it is revoked.
  2. The client id or secret is wrong, for example cut short when you copied it, or with a space at the end.
  3. The credentials are sent in a way Skeduler can't read, such as a badly encoded Authorization: basic header.
  4. The app isn't active. It was revoked or suspended, or the business's Skeduler account isn't active.

How to fix it

  1. If someone regenerated the secret, put the new one in your integration. If nobody has it, an Owner or Admin chooses Regenerate secret on the app in Settings › API & Webhooks. The new secret is shown once, so save it straight away. See Rotate or revoke an app's secret.

  2. Copy the Client ID again from Settings › API & Webhooks, and check there's nothing extra around the id or the secret.

  3. Send the credentials one way, never both:

    • an Authorization: Basic header with base64(client_id:client_secret), or
    • client_id and client_secret in the form body.

    Always send grant_type=client_credentials.

  4. A revoked app can't be turned back on. Create a new app and use its credentials. See Create an API app. If the app was suspended, or the business's account isn't active, contact Skeduler support.

Other answers from the token endpoint

StatuserrorWhy
400invalid_requestThe credentials were sent both in the header and in the body.
400unsupported_grant_typegrant_type isn't client_credentials, the only grant Skeduler supports.
429Too many token requests. Reuse your token until it's close to expiring, rather than asking for a new one each call. See I get 429 Too Many Requests.

You don't ask for scopes in the token request. A token always has all the scopes the app has.

How long does an access token last?

One hour. Cache it, and ask for a new one shortly before it expires or when a call answers 401.

Owner, Admin · Last checked 24 November 2026 · 1 min read

One hour. The token response says "expires_in": 3600.

Cache the token and reuse it until shortly before it expires: there's no refresh token, so ask for a new one the same way as the first. Don't fetch one per request, because the token endpoint is rate limited.

A token can stop earlier: revoking or suspending the app deletes its tokens. Its scopes are fixed when it's issued, so request a new token to pick up a scope you've added. On a 401, get a fresh token and retry once.

See Get and use an access token and 401 and 403 errors.