Skip to content
Support

My token request fails with invalid_client

Owner, AdminLast checked 24 November 20262 min readArticle ID: developers-invalid-client
On this page

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.

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.

In this section