---
title: "GET /vfields/{id}"
method: GET
path: "/vfields/{id}"
tags: ["vfields"]
---

# GET /vfields/{id}

`GET /vfields/{id}`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/vfields/{id}`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token` scopes: `virtualFields|read`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/vfields/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a virtual field by its ID.

## Path parameters

- `id` string, required

## Response `200`

Virtual field.

- VirtualFieldWithId
  - `dataset` string, required
  - `description` string
  - `expression` string, required
  - `name` string, required: Name of the virtual field. Use letters, digits, underscores, and hyphens, starting and ending with a letter or digit.
  - `type` string
  - `unit` string
  - `id` string, required

## Other responses

- `404`: Virtual field not found, or you can't read its dataset.

## Changes

- **2026-10-16** (v2) `fbc1b8430feb`: 1 info
  - added the non-success response with the status `404`

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/vfields/:id/get.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
