---
title: "Retrieve the variable schema for a specific campaign"
method: GET
path: "/campaigns/{campaignId}/schema"
tags: ["Campaigns"]
---

# Retrieve the variable schema for a specific campaign

`GET /campaigns/{campaignId}/schema`

## Request

- Base URL: `https://api.pitchlane.com/api/public/v1`
- URL: `https://api.pitchlane.com/api/public/v1/campaigns/{campaignId}/schema`
- Auth: API key in header `X-API-Key`

## Path parameters

- `campaignId` string, required

## Response `200`

Returns the variable schema associated with the campaign

- object
  - `variableSchema` object: The schema for the variables associated with the campaign
  - `examplePayload` object: An example payload that adheres to the variable schema

## Other responses

- `404`: Campaign not found

---

[API](https://skmtc.dev/pitchlane/apis/pitchlane-api.md) · [All operations](https://skmtc.dev/pitchlane/apis/pitchlane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pitchlane/apis/pitchlane-api/revisions/a8d831473a5c?raw)
