---
title: "Gets context field"
method: GET
path: "/api/admin/context/{contextField}"
tags: ["Context"]
---

# Gets context field

`GET /api/admin/context/{contextField}`

Returns specific [context field](https://docs.getunleash.io/concepts/unleash-context) identified by the name in the path

## Path parameters

- `contextField` string, required

## Response `200`

contextFieldSchema

- ContextFieldSchema — A representation of a [context field](https://docs.getunleash.io/concepts/unleash-context).
  - `name` string, required — The name of the context field
  - `description` string, nullable — The description of the context field.
  - `stickiness` boolean — Does this context field support being used for [stickiness](https://docs.getunleash.io/concepts/stickiness) calculations
  - `sortOrder` integer — Used when sorting a list of context fields. Is also used as a tiebreaker if a list of context fields is sorted alphabetically.
  - `createdAt` string, date-time, nullable — When this context field was created
  - `usedInFeatures` integer, nullable — Number of projects where this context field is used in
  - `usedInProjects` integer, nullable — Number of projects where this context field is used in
  - `legalValues` LegalValueSchema[] — Allowed values for this context field schema. Can be used to narrow down accepted input
    - `value` string, required — The valid value
    - `description` string — Describes this specific legal value
  - `project` string — The project this context field belongs to (if it is project-specific)

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/revisions/b2c3116e633e/schema)
