Retrieves a subscription list related to user's enterprise and belongs to his organizational unit.
GET
/rest/ws/webhooks/v1/subscriptions
curl \
--request GET 'https://ws-eu1.praxedo.com/rest/ws/webhooks/v1/subscriptions' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
Subscription list successfully retrieved
{
"subscriptions": [
{
"id": "1",
"status": "ACTIVE",
"callback": {
"url": "https://callback.example.com/webhooks",
"secret": "z0nstsmkmrvve4nzc26pu3ky80zsdorlh",
"headers": [
{
"name": "x-pxo-custom_header_name_1",
"value": "value of the custom header 1"
},
{
"name": "x-pxo-custom_header_name_2",
"value": "value of the custom header 2"
}
]
},
"eventTypes": [
{
"name": "workorder.validation"
},
{
"name": "workorder.deletion"
},
{
"name": "asset.upsert"
}
]
},
{
"id": "2",
"status": "INACTIVE",
"callback": {
"url": "https://callback.example.com/webhooks",
"headers": []
},
"eventTypes": [
{
"name": "workorder.deletion"
}
]
}
]
}
{
"subscriptions": []
}
Response examples (401)
401 unauthorized
{
"errors": [
{
"code": "unauthorized.nocredentials",
"message": "No credentials."
}
],
"errorReference": "f939c6b8c15045c9a70f500fdb570555"
}
{
"errors": [
{
"code": "unauthorized.badcredentials",
"message": "Bad Credentials."
}
],
"errorReference": "f1028f99811b422eb21f5ff176664069"
}
Response examples (429)
{
"errors": [
{
"code": "ratelimiter.toomanyrequest",
"message": "Rejected because of the rate limit definition."
}
],
"errorReference": "973326230a3f44daba6cc34a5939b4fb"
}
Response examples (500)
{
"errors": [
{
"code": "internal.server.error",
"message": "Something went wrong."
}
],
"errorReference": "6377010431314bf6b0b95ec4d32ddae0"
}