# Get a ticket

`GET /v1/tickets/{ticket_id}`

Requires role member or higher.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `member` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ticket_id` | path | string | yes |  |

## Responses

### 200

An immutable ticket.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "An immutable ticket.",
  "properties": {
    "category": {
      "type": "string"
    },
    "classification_id": {
      "pattern": "^cls_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "type": "string"
    },
    "created_at": {
      "format": "date-time",
      "type": "string"
    },
    "delivery": {
      "anyOf": [
        {
          "enum": [
            "immediate"
          ],
          "type": "string"
        },
        {
          "enum": [
            "digest"
          ],
          "type": "string"
        }
      ]
    },
    "facts": {
      "additionalProperties": {},
      "description": "Snapshot of the group, sample and classification when the ticket was written.",
      "type": "object"
    },
    "group_id": {
      "pattern": "^grp_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "type": "string"
    },
    "id": {
      "pattern": "^tkt_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "type": "string"
    },
    "llm_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "probable_cause": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "project_id": {
      "pattern": "^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "type": "string"
    },
    "reason": {
      "anyOf": [
        {
          "enum": [
            "new"
          ],
          "type": "string"
        },
        {
          "enum": [
            "spike"
          ],
          "type": "string"
        },
        {
          "enum": [
            "regression"
          ],
          "type": "string"
        },
        {
          "enum": [
            "recurrence"
          ],
          "type": "string"
        }
      ]
    },
    "reference_marked_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "When the team marked this ticket as a reference; null if it is not one. Marking does not change the ticket or its retention."
    },
    "severity": {
      "anyOf": [
        {
          "enum": [
            "critical"
          ],
          "type": "string"
        },
        {
          "enum": [
            "high"
          ],
          "type": "string"
        },
        {
          "enum": [
            "medium"
          ],
          "type": "string"
        },
        {
          "enum": [
            "low"
          ],
          "type": "string"
        }
      ]
    },
    "source": {
      "anyOf": [
        {
          "enum": [
            "llm"
          ],
          "type": "string"
        },
        {
          "enum": [
            "template"
          ],
          "type": "string"
        }
      ]
    },
    "suggested_fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "summary": {
      "type": "string"
    },
    "template_reason": {
      "anyOf": [
        {
          "anyOf": [
            {
              "enum": [
                "budget_exhausted"
              ],
              "type": "string"
            },
            {
              "enum": [
                "llm_failed"
              ],
              "type": "string"
            }
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "title": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "group_id",
    "reason",
    "severity",
    "category",
    "delivery",
    "source",
    "title",
    "created_at",
    "reference_marked_at",
    "project_id",
    "classification_id",
    "template_reason",
    "summary",
    "probable_cause",
    "suggested_fix",
    "facts",
    "llm_model"
  ],
  "type": "object"
}
```

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 404

not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X GET "https://api.dlogify.com/v1/tickets/{ticket_id}" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/tickets/getTicket
