Self-Improve

Start a self-improve run. Confirm-gated: call once to preview, then again with confirmed=true.

post/v1/self-improve/runs

Request

  • Base URL
    https://api.getbluejay.ai
  • URL
    https://api.getbluejay.ai/v1/self-improve/runs
  • Auth
    HTTPBearer (a scheme the document does not define)

Headers

X-Organization-Idstring
X-API-Keystring required

API key required to authenticate requests.

Request body

agent_idinteger required

VAPI, ElevenLabs, Retell, or Google CES agent to self-improve in place (prompt iterated; one new 'latest' version written at the end).

simulation_idinteger required

Simulation (digital humans + metrics) to run each round against the agent.

target_pass_ratenumber
max_iterationsinteger
min_improvementnumber

Minimum pass-rate gain to keep an iteration; non-negative so worse prompts are never kept.

metric_countinteger
success_metric_idsstring[] nullable

Reuse these metrics instead of generating new ones.

confirmedboolean

Response

Successful Response

unknown required

Changes