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