Skip to main content
POST
Trigger an on-demand self-tuning optimize

Authorizations

Authorization
string
header
required

Session token from POST /auth/login, sent as Authorization: Bearer <token>.

Headers

X-Pinecone-Api-Version
string
default:2026-07

Date-based contract version, echoed back on the same header. Omit for the default (2026-07); send unstable for the in-development surface. An unrecognized value is rejected with 400 unsupported_api_version.

Path Parameters

slug
string
required

Context slug or UUID.

Body

application/json

Optional overrides for the tuning loop. {} is valid and is a no-op.

eval_pass_rate_threshold
number<double>

Pass rate a candidate manifest must clear to count as ready.

retrieval_p90_latency_ms
integer<int64>

The p90 latency bar a candidate must stay under.

optimize_timeout_seconds
integer<int64>

Default 7200

max_iterations
integer

Default 20

max_tool_turns
integer

Default 200

models
string[]

Model-id overrides passed to the optimize runtime

A tier name or catalog id.

candidate_queries
object[]

Recent query records to tune toward (absent = no-op)

pinecone_api_key
string

Task-token override; normally not needed

Response

Optimize enqueued (state: optimizing)

What every context-workflow trigger returns. The work is asynchronous: poll GET /tasks/{task_id}. The per-workflow booleans duplicate state and appear only where a workflow's contract names one.

task_id
string
required

The enqueued task. Poll it at GET /tasks/{id}.

state
string
required

The forward-looking status the trigger put the context into.

exploring
boolean

Duplicates state; present only for explore

profiling
boolean

Duplicates state; present only for profile

importing
boolean

Duplicates state; present only for the import/curate triggers