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

# createWorkflowTrigger

> Create a new workflow trigger



**mutation** `createWorkflowTrigger(input: CreateWorkflowTriggerInput!): WorkflowTriggerDTO!`

## Arguments

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

## Returns

`WorkflowTriggerDTO!`

**`endpoint`**: `String!`

Workflow trigger endpoint

---

**`eventLogTypes`**: `[EventLogType!]!`

Event log types

---

**`id`**: `String!`

Unique identifier for the entity

---

**`triggerId`**: `String!`

Trigger id

## Examples

```graphql Mutation
mutation CreateWorkflowTrigger($input: CreateWorkflowTriggerInput!) {
  createWorkflowTrigger(input: $input) {
    endpoint
    eventLogTypes
    id
    triggerId
  }
}
```

```json Variables
{
  "input": {
    "endpoint": "string",
    "eventLogTypes": [
      "ADDON_CREATED"
    ]
  }
}
```

```json Response
{
  "data": {
    "createWorkflowTrigger": {
      "endpoint": "string",
      "eventLogTypes": [
        "ADDON_CREATED"
      ],
      "id": "string",
      "triggerId": "string"
    }
  }
}
```


## Related topics

- [CreateWorkflowTriggerInput](https://docs.stigg.io/graphql-reference/types/CreateWorkflowTriggerInput.md)
- [Triggers](https://docs.stigg.io/documentation/workflows/workflow-triggers.md)
- [Supported actions](https://docs.stigg.io/documentation/native-integrations/crm/salesforce/salesforce-supported-actions.md)
- [triggerWorkflow](https://docs.stigg.io/graphql-reference/mutations/triggerWorkflow.md)
- [TriggerWorkflowDTO](https://docs.stigg.io/graphql-reference/types/TriggerWorkflowDTO.md)


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