Saltar al contingut principal
GET

Veure un webhook

Scope:developers:webhooks.read
https://api.holded.com/api/v2/webhooks/{webhookId}

Recupera tots els detalls d'un webhook pel seu identificador, incloent el `secret` per verificar signatures.

Paràmetres

Paràmetres de ruta

webhookIdstringobligatori

ID del webhook (ObjectId hexadecimal de 24 caràcters)

Petició

python
import requests

url = "https://api.holded.com/api/v2/webhooks/507f1f77bcf86cd799439011"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Respostes

Resposta

json
{
  "id": "507f1f77bcf86cd799439011",
  "url": "https://example.com/webhook",
  "events": [
    "invoice.create",
    "invoice.update"
  ],
  "version": "v1",
  "description": "My webhook",
  "enabled": true,
  "created_at": "2026-01-15T10:30:00+00:00",
  "updated_at": "2026-01-15T10:30:00+00:00",
  "secret": "whsec_abc123",
  "disable": {
    "at": "2026-01-15T10:30:00+00:00",
    "reason": "Endpoint returning 5xx errors",
    "by": {
      "id": "507f1f77bcf86cd799439011",
      "type": "user"
    }
  }
}

Respostes exitoses

200Webhook trobatapplication/json
object
idstring
urlstring<uri>
events[]string[]
versionstring
descriptionstring
enabledboolean
created_atstring<date-time>
updated_atstring<date-time> | null
secretstring
disableobject | null
atstring<date-time>
reasonstring
byobject | null

Respostes d'error

401API key no vàlida o no proporcionadaapplication/json
403Permisos insuficientsapplication/json
404Webhook no trobatapplication/json
429Límit de sol·licituds exceditapplication/json