---
title: "Get Linked Account Context"
method: GET
path: "/accounts"
tags: ["Accounts"]
---

# Get Linked Account Context

`GET /accounts`

## Request

- Base URL: `https://synchronex.ai/api/v1`
- URL: `https://synchronex.ai/api/v1/accounts`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://synchronex.ai/oauth/authorize`, token URL `https://synchronex.ai/api/oauth/token`, scopes: `read`)

Returns the authenticated user linked account, profile ids, and reachable workspaces.

## Response `200`

Account context found.

- AccountContextResponse
  - `account` Account, required
    - `id` string, uuid
    - `account_no` integer, nullable
    - `display_name` string, nullable
    - `active_workspace_id` string, uuid, nullable
    - `active_product_id` string, uuid, nullable
    - `default_workspace_id` string, uuid, nullable
    - `default_product_id` string, uuid, nullable
    - `dismissed_activation_at` string, date-time, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `account_no_label` string, nullable
  - `active_workspace_id` string, uuid, nullable, required
  - `active_product_id` string, uuid, nullable, required
  - `profile_ids` string[], required
  - `workspaces` AccountWorkspace[], required
    - `id` string, uuid
    - `name` string
    - `slug` string
    - `team_id` string, uuid
    - `workspace_type` string, nullable
    - `client_email` string, nullable
    - `created_at` string, date-time, nullable

## Other responses

- `401`: Unauthorized. Missing, malformed, expired, or revoked bearer token.
- `404`: Not found or not owned by the authenticated user.
- `429`: Rate limit exceeded. Retry after the indicated reset time.

---

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