cURL
curl --request POST \ --url https://api.pathstack.io/webhook \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "<string>", "enabled": true, "filter": { "device_ids": [ "<string>" ], "options": { "include_speed": true, "include_driver_id": true } } }'
{ "data": { "url": "<string>", "enabled": true, "id": "<string>", "error_count": 123, "last_error": "<string>", "last_error_at": "2023-11-07T05:31:56Z", "created_at": "<string>", "updated_at": "<string>", "filter": { "device_ids": [ "<string>" ], "options": { "include_speed": true, "include_driver_id": true } } } }
Creates a new webhook.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"2024-03-26"
Details for webhook
Successful Response
The response is of type object.
object