const response = await fetch("https://app.archive.com/api/v2", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer docs_demo_token_0000000000000000000000",
"WORKSPACE-ID": "6ccefa76-e8ba-5ab0-9c60-e48a9e235a4a"
},
body: JSON.stringify({
query: `mutation RedeliverWebhookDeliveryDefault($deliveryId: ID!) {
redeliverWebhookDelivery(deliveryId: $deliveryId) {
webhookDelivery {
id
subscriptionId
eventId
status
attemptCount
lastResponseStatus
responseTimeMs
}
userErrors {
field
message
}
}
}`,
variables: {
"deliveryId": "dbe6be29-b520-5cdc-81a3-b7a0d5d8f62e"
}
})
})
console.log(JSON.stringify(await response.json(), null, 2))