get webhook events.md

Get Webhook Events

Management API · Webhook Rules

GET https://app.mk.io/api/v1/projects/{project_name}/webhook/rules/{rule_name}/events

Get Events processed for the Webhook Rule.

RBAC Capability Required: webhooks.config.get

Authentication

Path parameters

Name Type Required Description
project_name string Yes
rule_name string Yes

Example request

curl -X GET "https://app.mk.io/api/v1/projects/{project_name}/webhook/rules/{rule_name}/events" \
  -H "Authorization: Bearer <token>"

Responses

200 — A single Webhook Rule

Example:

{
  "@odata.nextLink": "string",
  "supplemental": {
    "count": 0,
    "kind": "string",
    "operation": "string",
    "pagination": {
      "end": 0,
      "records": 0,
      "start": 0,
      "total": 0
    },
    "subscription": {
      "id": "string",
      "name": "string"
    }
  },
  "value": [
    {
      "created": "2024-01-01T00:00:00Z",
      "source": "string",
      "status": "Pending",
      "type": "MediaKind.JobStarted"
    }
  ]
}

400 — Bad Request

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

401 — Unauthorized

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

403 — Forbidden

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

404 — Not Found

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

429 — Too Many Requests

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

500 — Internal Server Error

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

Source spec: management-api · operationId: [get]_/api/v1/projects/{project_name}/webhook/rules/{rule_name}/events