Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Authz
  • Back to home
  • Omni
  • Installation
  • Document APIs
  • Contact APIs
  • Audit APIs
  • Tasks
    • Schedules
      • List all scheduled tasks
      • Get scheduled task details
      • Update scheduled task
      • Update scheduled task (full update)
    • Get task details
      GET
    • Update task
      PATCH
    • Update task (full update)
      PUT
  • Core APIs
    • Get Enums
      GET
  • Review
  • Authz
    • Exchange Token
      POST
    • Send OTP
      POST
    • Verify OTP
      POST
    • well know
      GET
    • Login User
      POST
  • Workflow
    • Runner
      • Create Runner
      • Retrieve Runner
      • Executer
    • Flow
      • Create Flow
      • List Flow
  1. Authz

Exchange Token

Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/token/exchange/
Last modified:2025-08-21 09:32:55

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "code": "string"
}

Request Code 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://preprod.api.crego.io/token/exchange/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "code": "string"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "access": "string",
    "refresh": "string",
    "expires_in": 0
}
Modified at 2025-08-21 09:32:55
Previous
Get Enums
Next
Send OTP
Built with