Skip to main content
GET
/
hub
/
integrations
/
oauth-callback
OAuth callback
curl --request GET \
  --url https://api.quiva.ai/hub/integrations/oauth-callback \
  --header 'Authorization: Bearer <token>'
{
  "access_token": "eyJhbGciOiJSUzI1Ni...",
  "expires_in": 1800,
  "expiry": "2025-05-29T17:09:39.816102+01:00",
  "modified": 1748533179,
  "refresh_token": "ulpL_...",
  "sequence": 85,
  "subject": "ms.integration.oauth.AC75JGNMJHTRQNXCBDMIAJCJ57HAEWP2RGWXJCIFFGW2K64OKG267A2D.xero.demo",
  "token_type": "Bearer"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme

Query Parameters

code
string
required

OAuth authorization code

state
string
required

OAuth state parameter

Response

OAuth token received and saved

access_token
string

OAuth access token

Example:

"eyJhbGciOiJSUzI1Ni..."

token_type
string

Token type (usually Bearer)

Example:

"Bearer"

refresh_token
string

OAuth refresh token

Example:

"ulpL_..."

expiry
string<date-time>

Token expiration time

Example:

"2025-05-29T17:09:39.816102+01:00"

expires_in
integer

Token expires in seconds

Example:

1800

sequence
integer

Message sequence number

Example:

85

subject
string

Message subject

Example:

"ms.integration.oauth.AC75JGNMJHTRQNXCBDMIAJCJ57HAEWP2RGWXJCIFFGW2K64OKG267A2D.xero.demo"

modified
integer

Last modified timestamp

Example:

1748533179