DKBSignDocs

API reference

POSTRequires Bearer token

Generate a report file

/api/logs-audit/reports/files

Submit /api/logs-audit/reports/files. Authenticated routes need Authorization: Bearer {token} from POST /api/v1/login.

Path parameters

This endpoint has no path parameters.

Query parameters

This endpoint has no query parameters.

Request body

FieldTypeDescription
type
Required
stringactivity, compliance, usage, or audit.
e.g. "activity"
format
Required
stringpdf, csv, or xlsx.
e.g. "pdf"
range
Required
string7d, 30d, 90d, or 12m.
e.g. "30d"

Responses

StatusMeaning
200Binary file stream
401Missing or invalid Bearer token.

Request

curl
curl -X POST 'https://api.dkbsigns.com/api/logs-audit/reports/files' \
  -H 'Authorization: Bearer $DKBSIGN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"type":"activity","format":"pdf","range":"30d"}'

Response 200

json
{
  "content_type": "application/pdf",
  "note": "The HTTP body is the PDF bytes, not JSON."
}