---
title: "Gets metadata for the account."
method: GET
path: "/accounts/metadata"
tags: ["Account Operations"]
---

# Gets metadata for the account.

`GET /accounts/metadata`

## Request

- Base URL: `https://replace-with-account.api.decodable.co/v1alpha2`
- URL: `https://replace-with-account.api.decodable.co/v1alpha2/accounts/metadata`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://auth.decodable.co/authorize?audience=https://api.decodable.co/`
    - Token URL: `https://auth.decodable.co/oauth/token`
- TypeScript: <https://skmtc.dev/decodable/apis/decodable-control-plane/docs/accounts/metadata/get.ts> (a function with typed inputs; its response is checked against the schema)

Requires permission matching: `account:read:<name>`, where `name` is the account name.

## Response `200`

Metadata for a Decodable Account.

- AccountMetadata: Metadata for a Decodable account.
  - `cell_id` string, required: The id of the Decodable cell in which the account resides.
  - `region` string, required: The name of the region in which the account resides.
  - `cloud` string, required: The name of the cloud in which the account resides.

## Other responses

- `403`: Access denied: requesting user lacks a required permission.
- `default`: An error has occurred.

---

[API](https://skmtc.dev/decodable/apis/decodable-control-plane.md) - [All operations](https://skmtc.dev/decodable/apis/decodable-control-plane/llms.txt) - [OpenAPI document](https://skmtc.dev/decodable/apis/decodable-control-plane/revisions/9718a3019da8?raw)
