code
Run a tool's code
Run the code of a tool your team built, its draft or its live version, and return the run's job.
- Business accounts only, with tools:build and runs:create. Follow the job with GET /v1/jobs/{id}.
- It really runs on the website, so a write tool's run changes it. Send an Idempotency-Key, as with POST /v1/runs.
- A run that signs in needs Edit access to its login, except a run of the live HTTP version.
- A run starts no repair and sends no webhooks.
post/v1/code/{id}/runs
Request
- Base URL: https://api.pomerado.ai
- URL: https://api.pomerado.ai/v1/code/{id}/runs
- Auth: HTTP bearer
Path parameters
idstring required
Example:tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
a tool ID: tool_ and 32 lowercase hex digits
Headers
Idempotency-Keystring
1 to 200 letters, digits, _ or -, such as a UUID
Repeat a request safely: the same key and body answer the first request's job again with Idempotent-Replayed: true; the same key with a different body answers idempotency_conflict.
Request body
Example request
{
"login_id": "login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
}Response
The job this Idempotency-Key already started, with Idempotent-Replayed: true
Example response
{
"id": "job_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"input_request": {
"id": "req_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
},
"build": {
"integration_id": "int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.