POST /projects/{projectId}/prompts/{promptId}/improvements

POST /api/v1/projects/{projectId}/prompts/{promptId}/improvements on the Caveman Cloud control plane. Requires the prompt:write scope. Not exposed to autonomous agents: Spends on the project's own model keys, up to the budget a person sets: one proposer call, then a comparison run. An agent drafts it as a proposal for a person to accept, and reads the result.

post/projects/{projectId}/prompts/{promptId}/improvements

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/projects/{projectId}/prompts/{promptId}/improvements
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: prompt:write
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Request body

versioninteger
dataset_idstring uuid required
dataset_versioninteger
criteriastring[] required
annotationsboolean
budget_usdnumber required
modelstring
instructionsstring

Response

Successful response. Exact status depends on synchronous or durable delivery outcome.

Changes

No recorded changes to this operation across all 1 revision of this API.