Skip to navigation

Start AI script generation

View as MarkdownOpen in Claude

Triggers background AI generation of an adapter script. Returns a job ID immediately. Poll GET /adapter-scripts/jobs/{jobId} for progress.

Pipeline: gather context → Claude generates script → test against sample data → retry if failed (max 3) → save as candidate. If all retries fail, job status becomes needs_clarification with an AI question for the user.

Authentication

X-Api-Keystring
API Key authentication via header

Request

This endpoint expects an object.
providerstringRequired
topicstringRequired

Response

OK
codeinteger
isSuccessboolean
messagestring
jobIdinteger