POST /routes/preview

POST /api/v1/routes/preview on the Caveman Cloud control plane. Requires the policy:draft scope. Exposed to autonomous agents as the preview_routing action of the caveman_project_setup tool (write access). Project settings for the bound project: semantic-cache shadowing and its options, pixel density, routing previews. Optimizations themselves are chosen per request (x-cave-optimize, x-cave-cache), not switched on here. Changing the semantic-cache threshold or TTL is refused server-side unless the caller holds policy:publish_s2_s3, which a scoped agent connection does not.

post/routes/preview

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/routes/preview
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: policy:draft
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Request body

endpointstring
providerstring
workflow_slugstring
project_idstring uuid required

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.