Skip to content

API reference

Download a webhook's deliveries as a file

Other routes API

GET/v1/data-files/webhook-deliveries

Every delivery of one webhook, newest first, as GET /v1/webhooks/{id}/deliveries answers them, but all of them, not only the newest 50. The JSON is a list of WebhookDelivery. Any credential may read it. CSV and Excel have one column per field, a nested one dotted; the CSV is separated by semicolons, in UTF-8 with a byte order mark, and a cell starting with =, +, - or @ is written with a leading '. More than 10,000 entries is refused with 400 too_many_rows.

Query parameters

  • webhookstring (uuid)Required

    The webhook's id.

  • formatstring

    The file's format. Absent, CSV.

    One of csv, xlsx, json.

Status codes

Status Meaning
200
400 The format is not one of csv, xlsx or json (invalid_format), or there are more than 10,000 entries (too_many_rows).
401 No usable credential was sent (invalid_credentials).
404 No webhook of this company has that id, or none was named (unknown_webhook).
501
GET/v1/data-files/webhook-deliveries
Example
curl https://api.certinvo.com/v1/data-files/webhook-deliveries?webhook=3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/data-files/webhook-deliveries?webhook=3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

response = requests.get(
    "https://api.certinvo.com/v1/data-files/webhook-deliveries?webhook=3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
No response body.
Success response
GET
/v1/data-files/webhook-deliveries
Download a webhook's deliveries as a file
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Query Parameters2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/data-files/webhook-deliveries" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close