Skip to main content
POST
/
oauth
/
token
Issue or refresh a token
curl --request POST \
  --url https://api.vendaze.com/oauth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "client_secret": "<string>",
  "code": "<string>",
  "redirect_uri": "<string>",
  "code_verifier": "<string>",
  "refresh_token": "<string>"
}
'
{
  "access_token": "eyJ...",
  "refresh_token": "eyJ...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "workspace_slug": "acme-corp"
}

Documentation Index

Fetch the complete documentation index at: https://developers.vendaze.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
grant_type
enum<string>
required
Available options:
authorization_code,
refresh_token
client_id
string<uuid>
required
client_secret
string
required
code
string

Required for grant_type=authorization_code.

redirect_uri
string<uri>

Required for grant_type=authorization_code.

code_verifier
string

Original string before hashing. Required for grant_type=authorization_code.

refresh_token
string

Required for grant_type=refresh_token.

Response

Tokens issued successfully.

access_token
string
Example:

"eyJ..."

refresh_token
string
Example:

"eyJ..."

token_type
string
Example:

"Bearer"

expires_in
integer
Example:

3600

workspace_slug
string

Slug of the workspace the user authorized. Use this to identify the connected account in your app.

Example:

"acme-corp"