---
title: "Read or finish the current user's OpenAI connection"
method: GET
path: "/tally/app-server-connection"
tags: ["Tally"]
---

# Read or finish the current user's OpenAI connection

`GET /tally/app-server-connection`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/tally/app-server-connection`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Without loginId, returns the current user's sanitized personal OpenAI connection. With loginId, checks that user's pending device login and stores its auth cache encrypted.

## Query parameters

- `loginId` string, uuid

## Response `200`

Sanitized Codex connection state

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
