## GET /v1/alerts/{id}

Read one alert. An alert that does not exist or belongs to another account returns 404.

Required permissions: read:alerts.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "alert": {
    "body": str,
    "category": str,
    "created_at": str,
    "cta_label": str,
    "cta_url": str,
    "id": str,
    "severity": str,
    "title": str,
    "type": str
  }
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.alerts.get("...")
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.alerts.get('...');
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/alerts/{id}" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "alert": {
      "properties": {
        "body": {
          "type": "string"
        },
        "category": {
          "enum": [
            "billing",
            "agents"
          ],
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "cta_label": {
          "type": "string"
        },
        "cta_url": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "severity": {
          "enum": [
            "info",
            "warning"
          ],
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "enum": [
            "budget_threshold",
            "budget_blocked",
            "credit_low",
            "credit_exhausted",
            "agent_config_broken",
            "agent_failing"
          ],
          "type": "string"
        }
      },
      "required": [
        "id",
        "created_at",
        "category",
        "type",
        "severity",
        "title",
        "body",
        "cta_url",
        "cta_label"
      ],
      "type": "object"
    }
  },
  "required": [
    "alert"
  ],
  "type": "object"
}
```
