---
title: "Get prompt-config metadata (question definitions + labels)"
method: GET
path: "/agent/prompt-config"
tags: ["Agents"]
---

# Get prompt-config metadata (question definitions + labels)

`GET /agent/prompt-config`

Returns the canonical question definitions, option choices, and example labels
used by the agent-builder UI when collecting input for `POST /agent/with-ai`.

Use this to programmatically discover what questions to ask end-users when
building agent-creation UIs.

## Response `200`

Prompt-config catalogue.

- object
  - `status` boolean
  - `data` object
    - `questions` object[]
      - `text` string
      - `type` 'textarea' | 'select' | 'multiselect'
      - `options` object[]
        - `value` string
        - `label` string
      - `examples` object — Map of `<exampleLabel>` → answer text. Always includes a `default` key.
    - `exampleLabels` string[]
    - `defaultLabel` string

## Other responses

- `401` — Unauthorized access
- `500` — Internal server error

## Changes

- **2026-06-21** `ea4ea58d7c4e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smallest-inc/apis/agent-management-api/changes/agent/prompt-config/get.md)

---

[API](https://skmtc.dev/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.dev/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/ea4ea58d7c4e/schema)
