Returns a resource object of type webhook_call.
1GET https://site-api.datocms.com/webhook_calls/:webhook_call_id HTTP/1.12Authorization: Bearer YOUR-API-TOKEN3Accept: application/json4X-Api-Version: 3
1curl -g 'https://site-api.datocms.com/webhook_calls/:webhook_call_id' \2 \3 -H "Authorization: Bearer YOUR-API-TOKEN" \4 -H "Accept: application/json" \5 -H "X-Api-Version: 3"
1await fetch("https://site-api.datocms.com/webhook_calls/:webhook_call_id", {2 headers: {3 Authorization: "Bearer YOUR-API-TOKEN",4 Accept: "application/json",5 "X-Api-Version": "3",6 },7});
1HTTP/1.1 200 OK2Content-Type: application/json3Cache-Control: cache-control: max-age=0, private, must-revalidate4X-RateLimit-Limit: 305X-RateLimit-Remaining: 286 7{8 "data": {9 "type": "webhook_call",10 "id": "42",11 "attributes": {12 "entity_type": "item",13 "event_type": "update",14 "created_at": "2016-09-20T18:50:24.914Z",15 "request_url": "https://www.example.com/webhook",16 "request_headers": {17 "Accept": "*/*",18 "User-Agent": "DatoCMS (datocms.com)",19 "Authorization": "Basic Y2lhbzptaWFv",20 "Content-Type": "application/json"21 },22 "request_payload": "{\"webhook_call_id\":\"103216210\",\"event_triggered_at\":\"2024-08-26T12:49:16Z\",\"attempted_auto_retries_count\":0,\"webhook_id\":\"28374\",\"site_id\":\"205\",\"environment\":\"main\",\"is_environment_primary\":true,\"entity_type\":\"maintenance_mode\",\"event_type\":\"change\",\"entity\":{\"id\":\"maintenance_mode\",\"type\":\"maintenance_mode\",\"attributes\":{\"active\":false}},\"related_entities\":[]}",23 "response_status": 200,24 "response_headers": {25 "via": "1.1 vegur, 1.1 37c0945d19329fccc23efb283d01aa06.cloudfront.net (CloudFront)",26 "date": "Fri, 27 Jul 2018 11:59:20 GMT",27 "server": "gunicorn/19.6.0"28 },29 "response_payload": "ok",30 "attempted_auto_retries_count": 2,31 "last_sent_at": "2016-09-20T18:50:24.914Z",32 "next_retry_at": "2016-09-20T18:50:24.914Z",33 "status": "success"34 },35 "relationships": {36 "webhook": {37 "data": {38 "type": "webhook",39 "id": "312"40 }41 }42 }43 },44 "included": [45 {46 "type": "webhook",47 "id": "312",48 "attributes": {49 "name": "Item type creation/update",50 "url": "https://www.example.com/webhook",51 "enabled": true,52 "headers": {53 "X-Foo": "Bar"54 },55 "events": [56 {57 "entity_type": "item",58 "event_types": [59 "update"60 ]61 }62 ],63 "http_basic_user": "user",64 "http_basic_password": "password",65 "custom_payload": "{ \"message\": \"{{event_type}} event triggered on {{entity_type}}!\", \"entity_id\": \"{{#entity}}{{id}}{{/entity}}\"] }",66 "payload_api_version": "3",67 "nested_items_in_payload": true,68 "auto_retry": true69 }70 }71 ]72}