Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Client Credentials Grant (Server Token)

The client credentials grant flow is meant only for server-to-server API requests that use an app access token.

To get an access token, send an HTTP POST request to https://pulsoid.net/oauth2/token. Set the following x-www-form-urlencoded parameters as appropriate for your app.

Name
Type
Description

grant_type

string

Must be set to client_credentials

There should be an Authorization header with base64 encoded client_id:client_secret. For example: for client_id=c0403af6-998a-4b22-b08b-cc7329bbdc03 and client_secret=b2729cb2-a34a-4641-aa92-b66b2d27eabd there should be a header

Authorization: Basic YzA0MDNhZjYtOTk4YS00YjIyLWIwOGItY2M3MzI5YmJkYzAzOmIyNzI5Y2IyLWEzNGEtNDY0MS1hYTkyLWI2NmIyZDI3ZWFiZA==

Curl request example

curl --request POST \
  --url https://pulsoid.net/oauth2/token \
  --header 'Authorization: Basic YzA0MDNhZjYtOTk4YS00YjIyLWIwOGItY2M3MzI5YmJkYzAzOmIyNzI5Y2IyLWEzNGEtNDY0MS1hYTkyLWI2NmIyZDI3ZWFiZA==' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data scope=profile:create

Curl response example

If the request succeeds, it returns an access token.

{
  "access_token": "4edb0b67-79f9-49ef-ab8f-afb05f24c4d1",
  "expires_in": 5011271,
  "token_type": "bearer"
}

Last updated