curl --request POST \
--url https://api1.irisagent.com/v1/cases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"id": "12345",
"subject": "Application will not access the logs",
"status": "open",
"timeOfCreation": 17437722600,
"description": "<string>",
"priority": "high",
"type": "<string>",
"tags": [
"billing",
"urgent"
],
"comments": [
{
"commentId": "123e4567-e89b-12d3-a456-426655440000",
"comment": "Please help to fix this ASAP.",
"commenter": "Customer",
"timeOfCreation": 17437722600,
"isPublic": true
}
],
"url": "https://support.example.com/cases/12345",
"custom_fields": {
"department": "IT",
"priority_level": 1
},
"kb_links": [
"<unknown>"
],
"source": "email",
"spam": false
}
]
}
'{
"result": "success"
}Send cases for AI training via this endpoint
curl --request POST \
--url https://api1.irisagent.com/v1/cases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"id": "12345",
"subject": "Application will not access the logs",
"status": "open",
"timeOfCreation": 17437722600,
"description": "<string>",
"priority": "high",
"type": "<string>",
"tags": [
"billing",
"urgent"
],
"comments": [
{
"commentId": "123e4567-e89b-12d3-a456-426655440000",
"comment": "Please help to fix this ASAP.",
"commenter": "Customer",
"timeOfCreation": 17437722600,
"isPublic": true
}
],
"url": "https://support.example.com/cases/12345",
"custom_fields": {
"department": "IT",
"priority_level": 1
},
"kb_links": [
"<unknown>"
],
"source": "email",
"spam": false
}
]
}
'{
"result": "success"
}The Authorization header is required to authenticate API requests.
It should contain a bearer token obtained through the IrisAgent portal.
Show child attributes
"12345"
"Application will not access the logs"
"open"
Unix timestamp epoch in milli-seconds as string
17437722600
"high"
The type of case, such as Feature Request or Question
["billing", "urgent"]Show child attributes
"123e4567-e89b-12d3-a456-426655440000"
"Please help to fix this ASAP."
"Customer"
Unix timestamp epoch in milli-seconds as string
17437722600
true
Public link to the case
"https://support.example.com/cases/12345"
{ "department": "IT", "priority_level": 1 }"email"
Indicates if the case is marked as spam
false
Articles uploaded successfully
success, partial