# Get webhook dispatch


```
GET 
https://api.apify.com/v2/webhook-dispatches/:dispatchId
```


Gets webhook dispatch object with all details.

## Request

### Path Parameters

* **dispatchId** string required

  Webhook dispatch ID.

  **Example:** `Zib4xbZsmvZeK55ua`

<!-- -->

### Status 200

**Response Headers**




```
{
  "data": {
    "id": "asdLZtadYvn4mBZmm",
    "userId": "wRsJZtadYvn4mBZmm",
    "webhookId": "asdLZtadYvn4mBZmm",
    "createdAt": "2019-12-12T07:34:14.202Z",
    "status": "ACTIVE",
    "eventType": "ACTOR.BUILD.ABORTED",
    "eventData": "Unknown Type: object,null",
    "calls": [
      {
        "startedAt": "2019-12-12T07:34:14.202Z",
        "finishedAt": "2019-12-12T07:34:14.202Z",
        "errorMessage": "Cannot send request",
        "responseStatus": 200,
        "responseBody": "{\"foo\": \"bar\"}"
      }
    ]
  }
}
```


**Schema**

* **data** object required

  * **id** string required\
    **Example:** `asdLZtadYvn4mBZmm`

  * **userId** string required\
    **Example:** `wRsJZtadYvn4mBZmm`

  * **webhookId** string required\
    **Example:** `asdLZtadYvn4mBZmm`

  * **createdAt** string\<date-time> required\
    **Example:** `2019-12-12T07:34:14.202Z`

  * **status** WebhookDispatchStatus (string) required

    Status of the webhook dispatch indicating whether the HTTP request was successful.

    **Possible values:** \[`ACTIVE`, `SUCCEEDED`, `FAILED`]

  * **eventType** WebhookEventType (string) required

    Type of event that triggers the webhook.

    **Possible values:** \[`ACTOR.BUILD.ABORTED`, `ACTOR.BUILD.CREATED`, `ACTOR.BUILD.FAILED`, `ACTOR.BUILD.SUCCEEDED`, `ACTOR.BUILD.TIMED_OUT`, `ACTOR.RUN.ABORTED`, `ACTOR.RUN.CREATED`, `ACTOR.RUN.FAILED`, `ACTOR.RUN.RESURRECTED`, `ACTOR.RUN.SUCCEEDED`, `ACTOR.RUN.TIMED_OUT`, `TEST`]

  * **eventData** eventData (object,null)

    * **actorId** string required\
      **Example:** `vvE7iMKuMc5qTHHsR`
    * **actorRunId** string required\
      **Example:** `JgwXN9BdwxGcu9MMF`

  * **calls** object\[]

    * **startedAt** string,null\<date-time> nullable\
      **Example:** `2019-12-12T07:34:14.202Z`
    * **finishedAt** string,null\<date-time> nullable\
      **Example:** `2019-12-12T07:34:14.202Z`
    * **errorMessage** string | null nullable\
      **Example:** `Cannot send request`
    * **responseStatus** integer | null nullable\
      **Example:** `200`
    * **responseBody** string | null nullable\
      **Example:** `{"foo": "bar"}`

### Status 400

Bad request - invalid input parameters or request body.


```
{
  "error": {
    "type": "invalid-input",
    "message": "Invalid input: The request body contains invalid data."
  }
}
```


**Schema**

* **error** object required

  * **type** string required\
    **Example:** `run-failed`
  * **message** string required\
    **Example:** `Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED)`
