---
title: "Publish a query blueprint"
method: POST
path: "/v1/projects/{project_id}/public-queries"
tags: ["Public Queries"]
---

# Publish a query blueprint

`POST /v1/projects/{project_id}/public-queries`

## Request

- Base URL: `https://api.agentry.sh`
- URL: `https://api.agentry.sh/v1/projects/{project_id}/public-queries`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `blueprint_id` string, required
  - `params` object
  - `description` string

## Response `200`

OK

- object
  - `id` string, required
  - `project_id` string, required
  - `blueprint_id` string, required
  - `params` object
  - `description` string, nullable
  - `publication_safety` object
  - `public_url` string, required
  - `idempotent_replay` boolean, required
  - `next_action` string

## Other responses

- `default`: Error

---

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