---
title: "Account and workspace of this credential"
method: GET
path: "/api/v1/account"
tags: ["usage"]
---

# Account and workspace of this credential

`GET /api/v1/account`

## Request

- Base URL: `https://platform.unstructuredapp.io`
- URL: `https://platform.unstructuredapp.io/api/v1/account`
- Auth: none declared

The workspace the credential acts in and the account that workspace belongs to. Use `account_id` with the account-scoped routes, such as `/api/v1/accounts/{account_id}/consumed`.

Authenticate with an API key, or a bearer token of a member who can read the workspace's metadata. With a bearer token the workspace is the token's own or the one named in `X-Workspace-Id`. Nothing about any other workspace or account is returned.

A workspace that belongs to no account answers 403, and a failure to look the account up answers 503.

Call this endpoint at most 15 times per minute for each authenticated identity.

## Headers

- `unstructured-api-key` string, nullable

## Response `200`

Successful Response

- CredentialAccount
  - `account_id` integer, required: The account the credential's workspace belongs to.
  - `workspace_id` integer, required: The workspace the credential acts in.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `94fb718d49fe`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unstructuredapp/apis/platform-api/changes/api/v1/account/get.md)

---

[API](https://skmtc.dev/unstructuredapp/apis/platform-api.md) - [All operations](https://skmtc.dev/unstructuredapp/apis/platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unstructuredapp/apis/platform-api/revisions/94fb718d49fe?raw)
