# Get

Launch stage: GA

`GET /api/2.0/sql/alerts/{id}`

Gets an alert.

API scopes: sql

## Path parameters

- `id` (string, optional)

## Returns

Returns the Alert object.

## Response

```json
{
  "condition": {
    "op": "GREATER_THAN",
    "operand": {
      "column": {
        "name": "foo"
      }
    },
    "threshold": {
      "value": {
        "string_value": "test"
      }
    }
  },
  "create_time": "2019-08-24T14:15:22Z",
  "display_name": "Test alert",
  "id": "fe25e731-92f2-4838-9fb2-1ca364320a3d",
  "lifecycle_state": "ACTIVE",
  "owner_user_name": "user.name@acme.com",
  "parent_path": "/Workspace/Users/user.name@acme.com",
  "query_id": "dee5cca8-1c79-4b5e-a711-e7f9d241bdf6",
  "seconds_to_retrigger": 0,
  "state": "OK",
  "update_time": "2019-08-24T14:15:22Z"
}
```

