---
title: "Create an AI tracking prompt"
method: POST
path: "/projects/{project_id}/ai-tracking/prompts"
tags: ["ai-tracking"]
---

# Create an AI tracking prompt

`POST /projects/{project_id}/ai-tracking/prompts`

## Request

- Base URL: `https://eu.bisibility.com/api/v1`
- URL: `https://eu.bisibility.com/api/v1/projects/{project_id}/ai-tracking/prompts`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `/api/auth/oauth2/authorize`, token URL `/api/auth/oauth2/token`, scopes: `api:write`)

## Path parameters

- `project_id` string, required: Public project ID; membership and token scope are enforced.

## Headers

- `Bisibility-API-Version` 'v1'
- `Idempotency-Key` string
- `X-Bisibility-Source` 'sdk' | 'cli' | 'mcp'

## Request body

- object
  - `generation_reference` object: Trusted model generation provenance, verified against the completed project generation.
    - `generation_id` string, required: Trusted completed project generation public ID.
    - `draft_id` string, uuid, required: Original generated draft UUID; edits retain this trusted reference.
  - `provider_dataset_reference` object: Trusted provider dataset provenance, validated against the project report.
    - `report_id` string, required: Trusted project AI visibility dataset report public ID.
    - `row_index` integer, required: Verified observed-dataset row index in the stored report.
  - `text` string, required: Prompt text; updates create a new immutable revision.
  - `category` 'neutral' | 'comparative' | 'branded': Prompt intent captured in its immutable revision.
  - `paused` boolean: Pause or resume future planning without altering historical samples.
  - `topic_id` string, nullable: Public topic ID scoped to this project.
  - `label` string, nullable: Optional display label.

## Response `201`

Project-scoped tracking data with retained provenance and explicit unknown measurements.

- object
  - `data` AiTrackingPrompt, required
    - `id` string, required
    - `topic_id` string, nullable, required
    - `label` string, nullable, required
    - `archived_at` string, date-time, nullable, required
    - `paused_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `revisions` object[], required
      - `id` string, required
      - `category` 'neutral' | 'comparative' | 'branded', required
      - `ordinal` integer, required
      - `text` string, required
      - `text_hash` string, required
      - `created_at` string, date-time, required
      - `generation_reference` object
        - `generation_id` string, required
        - `draft_id` string, uuid, required
      - `provider_dataset_reference` object
        - `report_id` string, required
        - `row_index` integer, required

## Other responses

- `400`: Invalid input or cursor
- `401`: Authentication required
- `403`: Project membership or credential scope denied
- `404`: Project-scoped resource not found
- `409`: Idempotency key payload or state conflict; Unsupported API version
- `422`: Unsupported source, model, consent or cost policy
- `423`: Project is read-only
- `429`: Rate limited

## Changes

- **2026-10-19** `a6e1ec0dec82`: 1 breaking, 8 info
  - removed the media type `application/json` for the response with the status `409`
  - the endpoint scheme security `AppOAuth` was added to the API
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `400`
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `401`
  - …5 more

[Operation history](https://skmtc.dev/bisibility/apis/bisibility-public-api/changes/projects/:project_id/ai-tracking/prompts/post.md)

---

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