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

# triggerWorkflowWithTestEvent

> Trigger a workflow with test event



**query** `triggerWorkflowWithTestEvent(input: TestWorkflowInput!): TriggerWorkflowDTO!`

## Arguments

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

## Returns

`TriggerWorkflowDTO!`

**`response`**: `JSON`

Workflow payload

---

**`success`**: `Boolean!`

Trigger workflow success

## Examples

```graphql Query
query TriggerWorkflowWithTestEvent($input: TestWorkflowInput!) {
  triggerWorkflowWithTestEvent(input: $input) {
    response
    success
  }
}
```

```json Variables
{
  "input": {
    "endpointUrl": "string",
    "hookEventType": "ADDON_CREATED"
  }
}
```

```json Response
{
  "data": {
    "triggerWorkflowWithTestEvent": {
      "response": "value",
      "success": true
    }
  }
}
```


## Related topics

- [Creating a workflow](https://docs.stigg.io/documentation/workflows/workflow-creation.md)
- [TestWorkflowInput](https://docs.stigg.io/graphql-reference/types/TestWorkflowInput.md)
- [Triggers](https://docs.stigg.io/documentation/workflows/workflow-triggers.md)
- [Sync Stigg data to Salesforce](https://docs.stigg.io/documentation/native-integrations/crm/salesforce/stigg-to-salesforce.md)
- [Key concepts](https://docs.stigg.io/documentation/workflows/workflows-key-concepts.md)


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