Skip to main content
POST
/
v1
/
cases
Upload cases for AI training
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"
}

Authorizations

Authorization
string
header
required

The Authorization header is required to authenticate API requests. It should contain a bearer token obtained through the IrisAgent portal.

Body

application/json
data
object[]
required

Response

Articles uploaded successfully

result
enum<string>
required
Available options:
success,
partial