Webhooks
Create Webhook
API Documentation
Endpoints
- Auth
- Connections
- Devices
- Trips
- Positions
- Real-time
- Webhooks
- Tags
- Events
- Tenants
- Milestones
- Consumer
Webhooks
Create Webhook
Creates a new webhook.
POST
/
webhook
curl --request POST \
--url https://api.pathstack.io/webhook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"filters": {
"connection_ids": [
"<string>"
],
"tags": [
"<string>"
],
"device_ids": [
"<string>"
],
"connection_devices": [
{
"connection_id": "<string>",
"system_device_ids": [
"<string>"
]
}
]
},
"options": {
"include_speed": true,
"include_driver_id": true
},
"url": "<string>",
"enabled": true
}'
{
"data": {
"filters": {
"connection_ids": [
"<string>"
],
"tags": [
"<string>"
],
"device_ids": [
"<string>"
],
"connection_devices": [
{
"connection_id": "<string>",
"system_device_ids": [
"<string>"
]
}
]
},
"options": {
"include_speed": true,
"include_driver_id": true
},
"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>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Example:
"2024-03-27"
Body
application/json
Details for webhook
Response
200
application/json
Successful Response
Successful response payload
curl --request POST \
--url https://api.pathstack.io/webhook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"filters": {
"connection_ids": [
"<string>"
],
"tags": [
"<string>"
],
"device_ids": [
"<string>"
],
"connection_devices": [
{
"connection_id": "<string>",
"system_device_ids": [
"<string>"
]
}
]
},
"options": {
"include_speed": true,
"include_driver_id": true
},
"url": "<string>",
"enabled": true
}'
{
"data": {
"filters": {
"connection_ids": [
"<string>"
],
"tags": [
"<string>"
],
"device_ids": [
"<string>"
],
"connection_devices": [
{
"connection_id": "<string>",
"system_device_ids": [
"<string>"
]
}
]
},
"options": {
"include_speed": true,
"include_driver_id": true
},
"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>"
}
}