---
title: "Get OAuth connection"
method: GET
path: "/hub/integrations/{integration_id}/oauth-token/{connection_id}"
tags: ["Oauth"]
---

# Get OAuth connection

`GET /hub/integrations/{integration_id}/oauth-token/{connection_id}`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/hub/integrations/{integration_id}/oauth-token/{connection_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/docs/hub/integrations/:integration_id/oauth-token/:connection_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get OAuth connection details for a specific integration and connection

## Response `200`

OAuth connection details

- OauthConnection
  - `access_token` string: OAuth access token
  - `token_type` string: Token type (usually Bearer)
  - `refresh_token` string: OAuth refresh token
  - `expiry` string, date-time: Token expiration time
  - `expires_in` integer: Token expires in seconds
  - `sequence` integer: Message sequence number
  - `subject` string: Message subject
  - `modified` integer: Last modified timestamp

## Other responses

- `400`: Bad request

## Changes

- **2025-07-09** `945cf8329cbe`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/changes/hub/integrations/:integration_id/oauth-token/:connection_id/get.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/revisions/f80cd5f3ac1c?raw)
