API reference
Chat
POST
apiKeyheader
AuthorizationBearer <token>An API key from Settings → Developers → API keys.
Idempotency-Key*stringReuse the same key and body when retrying; the retry returns the first result with replayed: true. Keys are kept for 24 hours.
Length
1 <= length <= 128application/json- body
message*stringWhat you ask Italic.
Length
1 <= length <= 4000history?array<>Earlier turns of this conversation, oldest first, so Italic can follow up. Italic keeps no conversation for API calls.
Items
items <= 31timeZone?stringIANA time zone for dates in the reply and drafts, such as America/New_York. Defaults to the account's.
Length
1 <= length <= 64Success. Writes without read permission return an ID and revision only.
application/json- response
run*replayed?booleancurl -X POST 'https://app.italic.com/api/v2/runs' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "message": "string"}'Example Response
{ "run": { "id": "string", "source": "chat", "recordingId": "string", "status": "running", "reply": "string", "error": "string", "prompt": "string", "workflows": [ { "id": "string", "name": "string" } ], "actions": [ { "id": "string", "tool": "string", "status": "proposed", "revision": 1, "executor": "cloud", "args": {}, "result": {}, "link": "string", "workflowId": "string", "stepIndex": 1, "totalSteps": 2 } ], "questions": [ { "id": "string", "prompt": "string", "about": "string", "kind": "recipient", "choices": [ { "label": "string", "detail": "string" } ], "stepIndex": 1, "totalSteps": 2 } ], "createdAt": 0, "updatedAt": 0 }, "replayed": true}GET
apiKeyheader
AuthorizationBearer <token>An API key from Settings → Developers → API keys.
id*stringMatch
^[A-Za-z0-9][A-Za-z0-9._:-]*$Length
1 <= length <= 256Success. Writes without read permission return an ID and revision only.
application/json- response
run*replayed?booleancurl -X GET 'https://app.italic.com/api/v2/runs/string'Example Response
{ "run": { "id": "string", "source": "chat", "recordingId": "string", "status": "running", "reply": "string", "error": "string", "prompt": "string", "workflows": [ { "id": "string", "name": "string" } ], "actions": [ { "id": "string", "tool": "string", "status": "proposed", "revision": 1, "executor": "cloud", "args": {}, "result": {}, "link": "string", "workflowId": "string", "stepIndex": 1, "totalSteps": 2 } ], "questions": [ { "id": "string", "prompt": "string", "about": "string", "kind": "recipient", "choices": [ { "label": "string", "detail": "string" } ], "stepIndex": 1, "totalSteps": 2 } ], "createdAt": 0, "updatedAt": 0 }, "replayed": true}POST
apiKeyheader
AuthorizationBearer <token>An API key from Settings → Developers → API keys.
id*stringMatch
^[A-Za-z0-9][A-Za-z0-9._:-]*$Length
1 <= length <= 256Success. Writes without read permission return an ID and revision only.
application/json- response
run*replayed?booleancurl -X POST 'https://app.italic.com/api/v2/runs/string/cancel'Example Response
{ "run": { "id": "string", "source": "chat", "recordingId": "string", "status": "running", "reply": "string", "error": "string", "prompt": "string", "workflows": [ { "id": "string", "name": "string" } ], "actions": [ { "id": "string", "tool": "string", "status": "proposed", "revision": 1, "executor": "cloud", "args": {}, "result": {}, "link": "string", "workflowId": "string", "stepIndex": 1, "totalSteps": 2 } ], "questions": [ { "id": "string", "prompt": "string", "about": "string", "kind": "recipient", "choices": [ { "label": "string", "detail": "string" } ], "stepIndex": 1, "totalSteps": 2 } ], "createdAt": 0, "updatedAt": 0 }, "replayed": true}