WorkSmart Dev
HomeSign In
  • Introduction
  • REST Web API
    • Oauth 2.0 Authorization
      • Authorization Code Flow
      • Token (Auth Code Flow)
      • Token (Client Credentials)
    • Records
      • Create Record
      • Read Record
      • Update Record
      • Delete Record
      • Read Records By View
      • Add Comment
      • Add Attachment
      • Download Attachment
    • List Sites
    • Columns
      • List of Columns
  • Webhook
    • Configure a Webhook
Powered by GitBook
On this page
  • Request Access Token Using client credentials:
  • Parameters
  • Sample Request
  • Sample Response

Was this helpful?

  1. REST Web API
  2. Oauth 2.0 Authorization

Token (Client Credentials)

Request Access Token Using client credentials:

URL : /api/v1/oauth2/token Method : POST

Parameters

client_id (required) Your application client id

client_secret (required) Your application client secret

grant_type (required) Use the value as “client_credentials“

Sample Request

curl -u {client_id}:{client_secret} https://my.worksmart.app/api/v1/oauth2/token -d 'grant_type=client_credentials'

Sample Response

{
    "access_token": "abcdefghijklmnopqrstuvwxyz123456789", 
    "expires_in": 3600, 
    "token_type": "Bearer", 
    "scope": null
}
PreviousToken (Auth Code Flow)NextRecords

Last updated 2 years ago

Was this helpful?