Saltar al contenido principal
PUT
/
2
/
webhooks
/
{webhook_id}
Validar webhook
curl --request PUT \
  --url https://api.x.com/2/webhooks/{webhook_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "attempted": true
  },
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de ruta

webhook_id
string
requerido

El ID del webhook que se comprobará. El identificador único de esta configuración de webhook.

Pattern: ^[0-9]{1,19}$
Ejemplo:

"1146654567674912769"

Respuesta

La solicitud se completó correctamente.

data
object
errors
object[]
Minimum array length: 1

Un objeto HTTP Problem Details, tal como se define en el IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).