Idempotency-Key header and exact-key lookup endpoint.
Python does not author .play.ts files. It calls a saved or Prebuilt Play over
HTTP, receives a durable run ID, and observes that same run until terminal.
Run the maintained Python caller
The checked example isdocs-examples/sdk-v2/http-python/run_prebuilt.py. It
reads DEEPLINE_HOST_URL and DEEPLINE_API_KEY from environment variables or
an uncommitted .env.deepline file.
The caller contract
The example performs four deliberate actions:POST /api/v2/plays/runwith a saved or Prebuilt Play name and JSON input.- Persist
run.idfrom the raw HTTP response before waiting. - Poll
GET /api/v2/runs/:runIduntil the status iscompleted,failed, orcancelled. - Write the final response to JSON before you turn it into a CSV or update a destination.
When to use each caller
Use Call Plays for the CLI, TypeScript, and raw HTTP
entrypoints. Use Runtime API reference for exact
request and response fields.