API reference
Tasks
GET
apiKeyheader
AuthorizationBearer <token>An API key from Settings → Developers → API keys.
Success. Writes without read permission return an ID and revision only.
application/json- response
runs*array<>curl -X GET 'https://app.italic.com/api/v2/tasks'Example Response
{
"runs": [
{
"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",
"executor": "cloud",
"args": {},
"result": {},
"link": "string",
"workflowId": "string"
}
],
"questions": [
{
"id": "string",
"prompt": "string",
"about": "string",
"kind": "recipient",
"choices": [
{
"label": "string",
"detail": "string"
}
]
}
],
"createdAt": 0,
"updatedAt": 0
}
]
}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 <= 256actionId*stringMatch
^[A-Za-z0-9][A-Za-z0-9._:-]*$Length
1 <= length <= 256application/json- body
decision*stringValue in
"approve""reject"tool?stringThe draft's tool, as you showed it to the person. Required to approve.
Length
1 <= length <= 64args?Edited fields of an email, event or reminder draft, replacing its args. Omit to approve it as drafted.
Success. 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/actions/string/decision' \
-H 'Content-Type: application/json' \
-d '{
"decision": "approve"
}'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",
"executor": "cloud",
"args": {},
"result": {},
"link": "string",
"workflowId": "string"
}
],
"questions": [
{
"id": "string",
"prompt": "string",
"about": "string",
"kind": "recipient",
"choices": [
{
"label": "string",
"detail": "string"
}
]
}
],
"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 <= 256questionId*stringMatch
^[A-Za-z0-9][A-Za-z0-9._:-]*$Length
1 <= length <= 256application/json- body
choice?integerIndex of one of the question's choices.
Range
0 <= value <= 50text?stringA typed answer. A recipient question needs an email address in it.
Length
1 <= length <= 2000dismiss?booleantrue skips the question; the workflow ends there.
Success. 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/questions/string/answer' \
-H 'Content-Type: application/json' \
-d '{}'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",
"executor": "cloud",
"args": {},
"result": {},
"link": "string",
"workflowId": "string"
}
],
"questions": [
{
"id": "string",
"prompt": "string",
"about": "string",
"kind": "recipient",
"choices": [
{
"label": "string",
"detail": "string"
}
]
}
],
"createdAt": 0,
"updatedAt": 0
},
"replayed": true
}