{
  "info": {
    "_postman_id": "apeiron-support",
    "name": "Apeiron API - Support",
    "description": "Support ticket creation, listing, and management.\n\nCollection Version: 1.0.0\nBase URL: https://api.apeiron.io/v2\nAuth: HTTP Basic (email + API token) or JWT Bearer token\nAPI Reference: https://api.apeiron.io/v2/",
    "version": "1.0.0",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "basic",
    "basic": [
      {
        "key": "username",
        "value": "{{username}}",
        "type": "string"
      },
      {
        "key": "password",
        "value": "{{api_token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.apeiron.io",
      "type": "string"
    },
    {
      "key": "username",
      "value": "",
      "type": "string"
    },
    {
      "key": "api_token",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Support",
      "description": "Support endpoints",
      "item": [
        {
          "name": "List of currently open support tickets",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/tickets",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "tickets"
              ]
            },
            "description": "Lists all open support tickets for the customer"
          }
        },
        {
          "name": "Create ticket",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/tickets",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "tickets"
              ]
            },
            "description": "Create a new ticket",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "name",
                  "description": "The requestor's full name",
                  "type": "text",
                  "value": "John Smith"
                },
                {
                  "key": "email",
                  "description": "Email of the requestor",
                  "type": "text",
                  "value": "johnsmith@companyname.com"
                },
                {
                  "key": "subject",
                  "description": "Subject for the ticket",
                  "type": "text",
                  "value": "Port a number from a provider"
                },
                {
                  "key": "message",
                  "description": "Message body of the tickets",
                  "type": "text",
                  "value": ""
                },
                {
                  "key": "priority",
                  "description": "Priority of the ticket",
                  "type": "text",
                  "value": ""
                },
                {
                  "key": "ticket_type",
                  "description": "Type of ticket",
                  "type": "text",
                  "value": ""
                },
                {
                  "key": "collaborators",
                  "description": "Comma separated emails of collaborators to be included on the support ticket",
                  "type": "text",
                  "value": "johnsmith@hotmail.com, anotheremail@gmail.com"
                }
              ]
            }
          }
        },
        {
          "name": "List tickets by status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/tickets/{status}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "tickets",
                "{status}"
              ]
            },
            "description": "List all open or closed tickets by status for the customer"
          }
        },
        {
          "name": "Get ticket details",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/tickets/{ticket_id}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "tickets",
                "{ticket_id}"
              ]
            },
            "description": "All details for a given ticket with comments if any"
          }
        },
        {
          "name": "Comment on a ticket",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/tickets/{ticket_id}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "tickets",
                "{ticket_id}"
              ]
            },
            "description": "Create a new comment on a ticket",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "message",
                  "description": "The message body of the comment",
                  "type": "text",
                  "value": "This is a new comment"
                },
                {
                  "key": "priority",
                  "description": "Priority of the ticket",
                  "type": "text",
                  "value": ""
                },
                {
                  "key": "status",
                  "description": "Status of the ticket",
                  "type": "text",
                  "value": ""
                },
                {
                  "key": "ticket_type",
                  "description": "Type of ticket",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    }
  ]
}