---
search:
  tags:
    - Topics
    - GET
seo:
  description: >-
    Get the distinct field paths of a single topic, by name, in the… Reference
    for the GET /v1/topics/unique/topic_fields endpoint in the Roboto REST API.
sidebar:
  label: Get field paths for topic
  badge: GET
title: Get field paths for topic
type: openapi-operation
---
Get the distinct field paths of a single topic, by name, in the organization.

Resolves the topic through the shared-topics/fields model (``topic_identity`` →
``topic_partition`` → ``schema_field``) and returns each field's dot-joined
``path_in_schema`` (e.g. ``linear_acceleration.x``). The fields shown belong to the
referenced topic rather than the org-wide message-path catalog.

Returns paths alone. Callers that need each field's type and unit — to tell a scalar
field from an array one without reading a message — should use
``GET /v1/urdf/bindable_topic_message_paths`` instead.

Pass ``contains`` to return only paths containing it, case-insensitively, anywhere in the dotted
path; an empty value returns every path. Autocomplete callers should send what the user has
typed: the result is capped, so for a topic wider than the cap an unfiltered call omits every
path sorting after the cut.

Reads only the normalized schema tables. A topic with no normalized rows yet (e.g. one
predating the topic-schema tables) returns an empty list.

**Consistency:** Eventually consistent by default; override with the
``X-Roboto-Connection-Consistency`` header.

#### Access control
 - requires_org
 - Restricted tokens need the API scope `api.everything_else`

`GET /v1/topics/unique/topic_fields`

**Responses**

- `200` — OK
- `400` — A conversation with Roboto's AI is longer than the AI model can read at once. The conversation's messages and tool results, together with the AI's instructions, exceed the model's context window. The exception does not carry the token count or the model's limit.
- `401` — The caller's token is expired or malformed.
- `403` — The request would take the user or organization past a limit on a resource, such as AI credits.
- `404` — The request names an API route Roboto does not serve.
- `409` — The request conflicts with an existing resource, such as by giving a name another resource already has.
- `410` — The resource the request names is missing or has expired.
- `500` — Roboto reported an error that this release of the SDK cannot match to a specific exception class. Reported for an element of a :py:class:\`\~roboto.http.BatchResponse\` whose error names a code this release defines no class for, or that arrived without a code, without a message, or as text that is not an error envelope at all. It carries whatever code and message Roboto sent, so a caller handling the failure still learns what went wrong; when no message could be read, the message is the error's raw text. :py:meth:\`\~roboto.domain.devices.Device.create\_session\` raises it, and :py:meth:\`\~roboto.domain.devices.Device.create\_sessions\` lists it in the batch's :py:attr:\`\~roboto.http.BatchResponse.failed\`. The error envelope carries no status code, so \`\`http\_status\_code\`\` reports the 500 inherited from \`\`RobotoDomainException\`\` rather than the status the failure had.
- `501` — The request asks for an operation this deployment of Roboto does not provide.
- `503` — Roboto could not accept the request, such as under heavy load. Retrying later may succeed.
- `504` — Roboto ran out of time while processing the request. Retrying may succeed.
- `507` — The response to the request is larger than Roboto can send. Retrying the same request fails the same way; request less data at a time.

Response example, 200:

```json
{
  "data": [
    "string"
  ]
}
```
