---
title: "Get the list of variables (or columns) for a workspace."
method: GET
path: "/api/external/v1/workspaces/get-variable-list"
tags: ["Workspaces"]
---

# Get the list of variables (or columns) for a workspace.

`GET /api/external/v1/workspaces/get-variable-list`

This endpoint retrieves all available variables/columns for a specific workspace.
It returns both default variables (first_name, email, company_name, company_domain)
and any custom variables that have been created for the workspace.

When updating or inserting a lead, you can use the variables/columns from this endpoint
to add the values to the specific variable/column for the lead.

## Query parameters

- `workspace_id` integer, required — The workspace to list the variables of.

## Response `200`

- object[]

## Other responses

- `401`
- `422`

---

[API](https://skmtc.dev/genpage/apis/genpage-external-api-documentation.md) · [All operations](https://skmtc.dev/genpage/apis/genpage-external-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/genpage/genpage-external-api-documentation/revisions/29a37db12acb/schema)
