SurfacedBySurfacedBy Docs
DocumentationConsoleReference

Webhooks

Register, list, read, and delete Console webhook endpoints.

Ask an AI:Open in ChatGPTOpen in Claude

A webhook endpoint receives signed HTTP POSTs for the event types it subscribes to. Register one with url (HTTPS only), events, and optionally description and enabled. The register response includes the signing_secret exactly once; store it immediately, because it cannot be shown again. The list and single-endpoint reads return id, url, events, enabled, description, and created_at.

For event types, the payload envelope, signature verification, and retries, see Console webhooks.

GET
/webhooks

Header Parameters

X-API-Key?X-Api-Key

Response Body

curl -X GET "https://api.surfacedby.com/api/v1/console/webhooks" \  -H "X-API-Key: string"
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
POST
/webhooks

Header Parameters

X-API-Key?X-Api-Key

Empty Object

Response Body

curl -X POST "https://api.surfacedby.com/api/v1/console/webhooks" \  -H "X-API-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
GET
/webhooks/{endpoint_id}

Path Parameters

endpoint_idEndpoint Id

Header Parameters

X-API-Key?X-Api-Key

Response Body

curl -X GET "https://api.surfacedby.com/api/v1/console/webhooks/string" \  -H "X-API-Key: string"
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
DELETE
/webhooks/{endpoint_id}

Path Parameters

endpoint_idEndpoint Id

Header Parameters

X-API-Key?X-Api-Key

Response Body

curl -X DELETE "https://api.surfacedby.com/api/v1/console/webhooks/string" \  -H "X-API-Key: string"
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}