Passer au contenu principal
GET
/
2
/
account_activity
/
webhooks
/
{webhook_id}
/
subscriptions
/
all
/
list
Récupérer les abonnements
curl --request GET \
  --url https://api.x.com/2/account_activity/webhooks/{webhook_id}/subscriptions/all/list \
  --header 'Authorization: Bearer <token>'
{
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

webhook_id
string
requis

L’id du webhook pour lequel récupérer les abonnements. L’identifiant unique de cette configuration de webhook.

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

"1146654567674912769"

Réponse

La requête a réussi.

data
object

Liste des abonnements actifs pour un webhook spécifié

errors
object[]
Minimum array length: 1

Un objet HTTP Problem Details, tel que défini dans la RFC IETF 7807 (https://tools.ietf.org/html/rfc7807).