> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eventDestination

> Gets an event destination by its global id. Fails with a top-level `NotFoundError` if there's none.



**query** `eventDestination(id: ID!): EventDestination!`

## Arguments

**`id`**: `ID!` (required)

Global id of the event destination: base64 of `EventDestination:<id>`, where `<id>` is `EventDestination.id`.

## Returns

`EventDestination!`

**`createdAt`**: `DateTime!`

When the event destination was created (UTC).

---

**`filter`**: `String!`

Which events it receives, in the syntax `CreateEventDestinationInput.filter` describes. Stored normalized, e.g. `(type eq "source.updated" and sourceId eq "products")`.

---

**`filterDialectVersion`**: `Int!`

Version of the filter syntax. Currently always 1.

---

**`id`**: `UUID!`

Raw id of the event destination (UUID). `eventDestination`, `eventDestinationDeliveries` and the event destination mutations take its global form, base64 of `EventDestination:<id>`.

---

**`name`**: `String!`

Name of the event destination, 1 to 200 characters.

---

**`startsAfterSequence`**: `String`

Position in the tenant's event stream that delivery started after: only later events are delivered. Same format as the CloudEvent `sequence` (e.g. `001.00000000000000012345`). Null while a webhook waits for verification; for a durable consumer, the position it was created at.

---

**`status`**: `EventDestinationStatus!`

Lifecycle state of the event destination. See `EventDestinationStatus`.

---

**`target`**: `String`

Where events are sent: the webhook URL, the storage queue URL, or the Service Bus entity as `sb://<namespace>/<entity>`. Null for `DURABLE_CONSUMER`.

---

**`type`**: `EventDestinationType!`

Kind of event destination. See `EventDestinationType`.

---

**`updatedAt`**: `DateTime!`

When the event destination last changed (UTC), status changes Occtoo makes itself included.

## Examples

```graphql Query
query EventDestination($id: ID!) {
  eventDestination(id: $id) {
    createdAt
    filter
    filterDialectVersion
    id
    name
    startsAfterSequence
  }
}
```

```json Variables
{
  "id": "id"
}
```

```json Response
{
  "data": {
    "eventDestination": {
      "createdAt": "value",
      "filter": "string",
      "filterDialectVersion": 1,
      "id": "value",
      "name": "string",
      "startsAfterSequence": "string"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.