---
title: "Get attribute metadata"
method: GET
path: "/v1/messaging/accounts/{accountId}/gmb-attribute-metadata"
tags: ["GMB Attributes"]
---

# Get attribute metadata

`GET /v1/messaging/accounts/{accountId}/gmb-attribute-metadata`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/messaging/accounts/{accountId}/gmb-attribute-metadata`
- Auth: HTTP bearer

Returns metadata about which Google Business Profile attributes are available for
a location or business category. Use this endpoint to discover valid attribute names,
value types, and allowed enum values before reading or writing via gmb-attributes.

Two mutually exclusive query modes:

**Location mode**: pass `locationId` (or rely on the account's stored `selectedLocationId`).
Google returns attributes valid for that specific location.

**Category mode**: pass `categoryName` (must start with `categories/`) and `regionCode`.
Google returns attributes valid for that category across the given region.
`languageCode` is optional in category mode.

Both modes support `pageSize` and `pageToken` for pagination.


**Billing:** Read (free unless it says otherwise) · **Rate limit:** 120/min

## Path parameters

- `accountId` string, required

## Query parameters

- `pageSize` integer: Maximum number of attribute metadata items to return. Google defaults to 200.
- `pageToken` string: Pagination token from a previous response's nextPageToken field.
- `locationId` string: Google Business Profile location ID (e.g. "6257659026299438786"). If omitted, uses the account's stored selectedLocationId. Mutually exclusive with categoryName.
- `regionCode` string: BCP-47 region code (e.g. "US", "ES"). Required when categoryName is provided.
- `categoryName` string: Category resource name, must start with "categories/" (e.g. "categories/gcid:plumber"). Required together with regionCode. Mutually exclusive with locationId.
- `languageCode` string: BCP-47 language code for display names (e.g. "en", "es"). Optional when categoryName is provided. Omitted from the Google call when not supplied.

## Headers

- `Idempotency-Key` string
- `X-Tag` string

## Response `200`

Completed

- object
  - `id` string: Execution id — stable across internal retries; use it with GET /v1/executions/{id}
  - `status` 'pending' | 'processing' | 'completed' | 'partial' | 'failed' | 'cancelled' | 'timeout'
  - `operation` string
  - `tag` string, nullable: Your X-Tag, if sent
  - `created_at` string, date-time
  - `completed_at` string, date-time, nullable
  - `output` object: Operation result (see each operation). While a Studio render is processing: `stage` (queued · transcribing · downloading · preparing · cleaning_voice · mixing_audio · rendering · finishing), `phase` (the engine's: download · prepare · voice · audio · encode · qa · upload, or null), `progress` (a percent, 0–100) and `progress_fraction` (0–1), `eta_seconds` (seconds left, never below 0) and `estimate_seconds`
    - `success` boolean
    - `accountId` string
    - `locationId` string: Only present in location mode.
    - `nextPageToken` string: Present when additional pages of results are available.
    - `attributeMetadata` object[]
      - `parent` string: Resource name of the attribute (e.g. "attributes/has_delivery").
      - `valueType` string: Value type (e.g. BOOL, ENUM, URL, REPEATED_ENUM).
      - `deprecated` boolean: True if this attribute should no longer be used.
      - `repeatable` boolean: True if multiple values can be set simultaneously.
      - `displayName` string: Localized human-readable attribute name.
      - `valueMetadata` object[]: Possible enum values (for ENUM / REPEATED_ENUM types).
        - `value` string
        - `displayName` string
      - `groupDisplayName` string: Display name of the attribute group.
  - `error` string, nullable
  - `usage` object
    - `credits_charged` number, nullable
    - `credits_reserved` number
    - `estimated_credits` number
    - `cost_source` 'provider_reported' | 'calculated' | 'estimated' | 'null', nullable
    - `provider_usage` object, nullable: Normalised consumption, e.g. { VIDEO_SECOND: 22.4 }
  - `balance` object
    - `available` number
    - `reserved` number

## Other responses

- `400`: Invalid input
- `402`: Insufficient credits / project budget
- `404`: Resource not found (or not yours)
- `429`: Rate limited
- `503`: Service temporarily paused

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
