Skip to content

Export evidence

Request

Exports evidence based on date range.

Security
ApiToken
Bodyapplication/jsonrequired
createdAtStartstring, (date-time)

ISO 8601 date string.

Example:"2024-12-01T00:00:00.000Z"
createdAtEndstring, (date-time)

ISO 8601 date string.

Example:"2024-12-26T00:00:00.000Z"
updatedAtStartstring, (date-time)

ISO 8601 date string. Return evidence updated on or after this date (inclusive).

Example:"2024-12-01T00:00:00.000Z"
updatedAtEndstring, (date-time)

ISO 8601 date string. Return evidence updated on or before this date (inclusive).

Example:"2024-12-26T00:00:00.000Z"
POST
/export/evidences
curl -i -X POST \
  https://api.bagel.ai/export/evidences \
  -H 'Content-Type: application/json' \
  -H 'authorization: YOUR_API_KEY_HERE' \
  -d '{
    "createdAtStart": "2024-12-01T00:00:00.000Z",
    "createdAtEnd": "2024-12-26T00:00:00.000Z",
    "updatedAtStart": "2024-12-01T00:00:00.000Z",
    "updatedAtEnd": "2024-12-26T00:00:00.000Z"
  }'

Responses

A list of evidence

Bodyapplication/json
evidencesArray of objects(ApiEvidence)
Response
{ "evidences": [ { … } ] }