For AI agents: this page is also available as Markdown at https://docs.refabric.com/api-reference/platform/reference-data/read-a-vocabulary.md, and the index of every page is https://docs.refabric.com/llms.txt.

Platform API › Reference data

Read a vocabulary

One named list of values by name, each value with what it means.

GEThttps://api.refabric.com/v1/vocab/{name}
import requests

url = "https://api.refabric.com/v1/vocab/{name}"

response = requests.get(url)

print(response.json())
{
  "name": "resolution",
  "description": "How large the image is.",
  "values": [
    {
      "description": "About 2048 px.",
      "label": "2K",
      "value": "2k"
    }
  ],
  "default": "2k",
  "concept": "image",
  "subset_of": "use_case",
  "groups": [],
  "source": "data",
  "used_in": []
}

Authentication. No key: the reference is the same for every reader and shows nothing of an account.

Common use cases

  • Read a shared list's values live.

Conflicts. An unknown name answers 404. A list only one task field takes has no name here: its values are in the task's schema (GET /v1/tasks/{name}).

See also

  • GET /v1/vocab

Authorization

No key needed.

Parameters

Path parameters

  • stringrequired

Header parameters

  • stringoptional

    The contract version you wrote against (a date). Absent: the current version.

    format: date

  • stringoptional

    Your own id for this request; we answer it back under X-Client-Request-ID.

    max length 128

Response

200 — Done: the answer is in the body.

  • stringrequired

    The vocabulary's name.

    Example: resolution

  • stringrequired

    What it chooses.

    Example: How large the image is.

  • array<object>required

    Its values; for a list whose values may change, as of now.

    Example: [{"description":"About 2048 px.","label":"2K","value":"2k"}]

  • stringoptionalnullable

    The value used when none is sent.

    Example: 2k

  • stringoptionalnullable

    The concept it belongs to.

    Example: image

  • stringoptionalnullable

    The vocabulary it narrows.

    Example: use_case

  • array<object>optionalnullable

    The groups its values fall into.

  • stringoptionalnullable

    Present when its values may change; read them live.

    Values

    • data — Its values may change; read them live.

    Example: data

  • array<object>optionalnullable

    Where it is used.

  • 401 — No valid API key was sent.
  • 403 — Your key or your plan does not allow this.
  • 404 — Nothing has this address.
  • 429 — Too many requests: wait for the number of seconds in the Retry-After header.
  • 500 — Something went wrong on our side; retry, and quote the request id if it keeps happening.