Skip to main content

Test webhook

POST 

/v2/webhooks/:webhookId/test

Tests a webhook. Creates a webhook dispatch with a dummy payload.

Request

Path Parameters

    webhookId string required

    Webhook ID.


    Example: Zib4xbZsmvZeK55ua

Status 201

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\"}"
    }
    ]
    }
    }