Sorry, no results found for "".
Returns a resource object of type webhook_call
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const webhookCallId = "42";7 8 const webhookCall = await client.webhookCalls.find(webhookCallId);9 10 // Check the 'Returned output' tab for the result ☝️11 console.log(webhookCall);12}13 14run();
1{2 id: "42",3 entity_type: "item",4 event_type: "update",5 created_at: "2016-09-20T18:50:24.914Z",6 request_url: "https://www.example.com/webhook",7 request_headers: {8 Accept: "*/*",9 "User-Agent": "DatoCMS (datocms.com)",10 Authorization: "Basic Y2lhbzptaWFv",11 "Content-Type": "application/json",12 },13 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":[]}',14 response_status: 200,15 response_headers: {16 via: "1.1 vegur, 1.1 37c0945d19329fccc23efb283d01aa06.cloudfront.net (CloudFront)",17 date: "Fri, 27 Jul 2018 11:59:20 GMT",18 server: "gunicorn/19.6.0",19 },20 response_payload: "ok",21 attempted_auto_retries_count: 2,22 last_sent_at: "2016-09-20T18:50:24.914Z",23 next_retry_at: "2016-09-20T18:50:24.914Z",24 status: "success",25 webhook: { type: "webhook", id: "312" },26}