---
title: "Get an active CLI connect attempt"
method: GET
path: "/integrations/connect/cli-attempt"
tags: ["Integrations"]
---

# Get an active CLI connect attempt

`GET /integrations/connect/cli-attempt`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/integrations/connect/cli-attempt`
- Auth: none declared
- TypeScript: <https://skmtc.dev/sazabi/apis/sazabi-public-api/docs/integrations/connect/cli-attempt/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the newest pending, non-expired CLI-initiated connect attempt for the given provider, or null if none exists. Used by the dashboard to show a 'connection in progress from your terminal' message.

## Query parameters

- `organizationId` string: Organization to check. Auto-filled from CLI and SDK context when omitted.
- `provider` 'slack' | 'github' | 'linear' | 'pagerduty' | 'victorops' | 'rootly' | 'better_stack' | 'incident_io' | 'webhook' | 'teams' | 'discord' | 'discord_bot' | 'bitbucket' | 'jira' | 'gitcafe' | 'cursor' | 'devin' | 'capy' | 'warp' | 'replicas' | 'claude' | 'codex' | 'hoplite' | 'tembo', required: Integration provider to check for an active CLI connect attempt.

## Response `200`

OK

- object, nullable: The active CLI connect attempt, or null if none exists for this provider.
  - `attemptId` string, uuid, required: The pending CLI connect attempt ID.
  - `expiresAt` string, date-time, required: When the attempt expires if the browser flow never completes.

## Changes

- **2026-11-08** `e7741f78d15a`: 1 info
  - added the new enum value `tembo` to the `query` request parameter `provider`
- **2026-11-06** `33821f7c6f4a`: 1 info
  - added the new enum value `discord_bot` to the `query` request parameter `provider`
- **2026-11-04** `82fac51b9cd6`: 1 info
  - added the new enum value `discord` to the `query` request parameter `provider`
- **2026-11-02** `5b72fd00402a`: 1 info
  - added the new enum value `better_stack` to the `query` request parameter `provider`
- **2026-10-28** `4ec7560565fe`: 2 info
  - added the new enum value `codex` to the `query` request parameter `provider`
  - added the new enum value `hoplite` to the `query` request parameter `provider`

[Operation history](https://skmtc.dev/sazabi/apis/sazabi-public-api/changes/integrations/connect/cli-attempt/get.md)

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) - [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/dae846531e50?raw)
