> ## 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.

# createEventDestination

> Creates an event destination and returns it with, for a webhook, its signing secret, shown only here. A webhook starts in `PENDING_VERIFICATION` (call `verifyEventDestination`); the other types start `ACTIVE` and receive events from now on. Fails with a top-level `ValidationError` for an invalid name, filter or target, or a `configuration` that doesn't match `type`.



**mutation** `createEventDestination(input: CreateEventDestinationInput!): CreateEventDestinationPayload!`

## Arguments

**`input`**: `CreateEventDestinationInput!` (required)

## Returns

`CreateEventDestinationPayload!`

**`createdEventDestination`**: `CreatedEventDestination`

## Examples

```graphql Mutation
mutation CreateEventDestination($input: CreateEventDestinationInput!) {
  createEventDestination(input: $input) {
    createdEventDestination {
      eventDestination {
        createdAt
        filter
        filterDialectVersion
        id
        name
        startsAfterSequence
      }
      signingSecret
    }
  }
}
```

```json Variables
{
  "input": {
    "filter": "string",
    "name": "string",
    "type": "WEBHOOK"
  }
}
```

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


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