CorefinityCorefinityDocs
Open the Control PanelControl Panel
Logs · 13 of 25

Collect a logs export

Answers the file of a ready export, once: CSV or one JSON object a line, not a JSON document. Send the capability the start answered; once the file has been collected, or after 24 hours, the answer is 410.

POST/api/corestack/logs/exports/{download}/collect

Path parameters

downloadstringRequired

The id of an export, as its start answered it. 26 characters.

Body

capabilitystringRequired

The capability the export's start answered. Up to 128 characters.

Returns

200 The file. It can be collected once.

Fields of the 200 answer

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409download_preparingThe download is still being prepared.
410expiredThe link, recording or transfer has expired. Start again.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X POST https://manage.corefinity.com/api/corestack/logs/exports/01JB2Y8N7Q4X3R5T6V8W9Z0A1B/collect \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "capability": "Example-export-capability-0000000000000000000001"
  }'
"string"
Try it

Try it is off for this endpointIt deletes data that cannot be brought back. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT