{
"_links": {
"self": {
"href": "https://rest.doo.net/v1/team/111/webhooks?page=1"
},
"first": {
"href": "https://rest.doo.net/v1/team/111/webhooks"
},
"last": {
"href": "https://rest.doo.net/v1/team/111/webhooks?page=1"
}
},
"_embedded": {
"webhooks": [
{
"id": "12",
"name": "Test webhook",
"description": "Some description",
"hooks": [
{
"type": "event_created_92bd9a53281981160c955e339304b3e5",
"method": "POST",
"endpoint": "https://company.com/receive-doo-webhooks",
"origin": {
"method": "POST",
"endpoint": "https://gql.doo.net",
"body": "{\"operationName\":\"EventCreatedShort\",\"variables\":{\"id\":\"%EVENT_ID%\"},\"query\":\"query EventCreatedShort($id: ID!) {\\n event(id: $id) {\\n title\\n }\\n}\\n\"}"
}
},
{
"type": "event_updated_2104384af7e8434f0058ed57163b6f33",
"method": "POST",
"endpoint": "https://company.com/receive-doo-webhooks",
"origin": {
"method": "POST",
"endpoint": "https://graphqlgql.doo.net",
"body": "{\"operationName\":\"EventUpdatedShort\",\"variables\":{\"id\":\"%EVENT_ID%\"},\"query\":\"query EventUpdatedShort($id: ID!) {\\n event(id: $id) {\\n title\\n }\\n}\\n\"}"
}
}
],
"authentication": {
"grant_type": "client_credentials",
"endpoint": "https://company.com/authorize-doo-webhooks",
"credentials": {
"client_id": "doo",
"client_secret": "super-strong-secret"
},
"header_format": "Authorization",
"header_value_format": "Bearer %ACCESS_TOKEN%"
},
"_links": {
"self": {
"href": "https://rest.doo.net/v1/team/<team_id>/webhooks"
}
}
}
]
},
"page_count": 1,
"page_size": 7,
"total_items": 1,
"page": 1
} |