Cirqll Core
HomeCirqll
HomeCirqll
  1. Token
  • Query Parameters
    • Eager Loading
    • Partial Data
    • Count Relations
    • Pagination
      • Filter
      • Order By
  • Authentication
    • OAuth2
      • Authorize
        • Authorize
      • User
        • Me
      • Client
        • Index
        • Create
        • Update
        • Delete
      • Token
        • Create
          POST
        • Refresh
          POST
        • Index
          GET
      • Scopes
        GET
  • User
    • Index
      GET
    • Show
      GET
    • Create
      POST
    • Update
      PATCH
    • Delete
      DELETE
  • Role
    • Index
      GET
    • Show
      GET
    • Create
      POST
    • Update
      PATCH
    • Delete
      DELETE
  • Customer
    • Index
      GET
    • Show
      GET
    • Create
      POST
    • Update
      PATCH
    • Delete
      DELETE
  • Contact
    • Index
    • Show
    • Create
    • Update
    • Delete
  • Appointment
    • Index
    • Show
    • Create
    • Update
    • Delete
  • Task
    • Index
    • Show
    • Create
    • Update
    • Delete
  • Financial
    • Chance
      • Index
      • Show
      • Create
      • Update
      • Delete
    • Assignment
      • Index
      • Show
      • Create
      • Update
      • Delete
    • Contract
      • Index
      • Show
      • Create
      • Update
      • Delete
  • Email
    • Index
    • Show
    • Create
    • Update
    • Delete
  • Field
    • Index
    • Show
    • Create
    • Update
    • Delete
  • Note
    • Index
    • Show
    • Create
    • Update
    • Delete
  • To-do
    • Index
    • Show
    • Create
    • Update
    • Delete
  • Template
    • Index
    • Show
    • Update
    • Create
    • Delete
  • Setting
    • Index
    • Update
  • Webhook
    • Index
    • Show
    • Create
    • Update
    • Delete
  1. Token

Create

POST
/token

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Header Params
Accept
string 
optional
Default:
application/json
Body Params application/x-www-form-urlencoded
grant_type
string 
required
The type of OAuth grant being used.
Example:
authorization_code
client_id
string 
required
The client ID issued by the authorization server.
Example:
client-id
client_secret
string 
required
The client secret associated with the client ID.
Example:
client-secret
redirect_uri
string 
required
The URL to which the authorization server will redirect after authentication.
Example:
http://third-party-app.com/callback
code
string 
required
The authorization code received from the authorization server.
Example:
example-auth-code

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.cirqll.nl/oauth/token' \
--header 'Accept: application/json' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'client_id=client-id' \
--data-urlencode 'client_secret=client-secret' \
--data-urlencode 'redirect_uri=http://third-party-app.com/callback' \
--data-urlencode 'code=example-auth-code'

Responses

🟢200Success
application/json
Body
access_token
string 
required
refresh_token
string 
required
expires_in
integer 
required
This contains the number of seconds until the access token expires.
Example
{
  "access_token": "string",
  "refresh_token": "string",
  "expires_in": 0
}
🔴500Server Error
🟠401Not Logged In
Modified at 2025-05-06 02:34:32
Previous
Delete
Next
Refresh
Built with