Skip to main content
GET
/
connections
List connections
curl --request GET \
  --url https://api.onecli.sh/v1/connections \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "provider": "<string>",
    "label": "<string>",
    "status": "<string>",
    "scopes": [
      "<string>"
    ],
    "metadata": {},
    "connectedAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Query Parameters

provider
string

Filter results to a single provider (e.g. gmail, github)

Response

200 - application/json

List of connections

id
string
provider
string
label
string | null

Display label extracted from metadata (e.g., email address)

status
string
scopes
string[]
scope
enum<string>

Project lists include inherited organization connections; use this to tell them apart.

Available options:
project,
organization
metadata
object | null

Provider metadata captured at connect time (e.g. account email or username).

connectedAt
string<date-time>