/v1/api/actionsAPI keyDispatch an inline action
Run an action relay performs in the request and read its result in the answer.
An action whose `runs` is `inline` answers 200 with `{action, result}`. A long write answers a `{taskId, status}` to poll rather than holding the request.
Body
| Field | Type | Required | Description |
|---|---|---|---|
| action | string | required | The catalog action's id. |
| input | object | optional | The action's declared input fields; the catalog read carries each action's schema. |
curl -X POST "https://runlogai.com/runlogapi/api/actions" \
-H "Authorization: Bearer $RUNLOG_API_KEY" \
-H "X-Project-Id: p7Kd2mQx" \
-H "Content-Type: application/json" \
-d '{
"action": "memory_remember",
"input": {
"statement": "Invoices settle net-30 unless the contract says otherwise."
}
}'{
"action": "memory_remember",
"result": {
"action": "queued",
"runId": "run_9Fb3TnQ2"
}
}Errors
| Status | error | When |
|---|---|---|
| 403 | editor access required | The action writes, and the key owner holds view-only access on the project. |
| 404 | unknown action | No catalog action has that id; the catalog read lists every one. |
| 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. |