/v1/api/agent-runsAPI keyOpen a query run
Start a conversation bound to one project.
A run is cheap and durable. Open one per user conversation and keep appending; do not open one per question.
Body
| Field | Type | Required | Description |
|---|---|---|---|
| projectId | string | optional | The codebase the run asks about. A run without one has no project memory to read. |
| title | string | optional | Display title. |
| tool | string | optional | Which capability set the run may reach. Defaults to the general set. |
curl -X POST "https://runlog-7613480744.us-central1.run.app/v1/api/agent-runs" \
-H "Authorization: Bearer $RUNLOG_API_KEY" \
-H "X-Project-Id: p7Kd2mQx" \
-H "Content-Type: application/json" \
-d '{
"projectId": "p7Kd2mQx",
"title": "Why does checkout retry?",
"tool": "atlas"
}'{
"createdAt": "2026-08-07T18:30:00Z",
"projectId": "p7Kd2mQx",
"runId": "run_9Fb3TnQ2",
"status": "open",
"title": "Why does checkout retry?"
}Errors
| Status | error | When |
|---|---|---|
| 400 | invalid request body | The body is not JSON, or exceeds the 1 MB request-body cap. |
| 401 | invalid API key | The `Authorization` header is missing, malformed, or names a revoked key. |
| 400 | name the target project via the X-Project-Id header or projectId query | No project was named and the key is not bound to one. |
| 429 | rate limit exceeded | You passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait. |
| 500 | internal error | The relay failed to serve the request. Retry with backoff; the cause is logged server-side against your request. |