System Utility - Download All Profiler Files
Endpoint
/i/profiler/download-all
Overview
Streams all profiler output files as a tar archive.
Authentication
Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.
Permissions
Requires Global Admin access.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | String | Conditional | Required if auth_token is not provided. |
auth_token | String | Conditional | Required if api_key is not provided. |
Examples
/i/profiler/download-all?api_key=YOUR_API_KEY
Response
Success Response
Binary stream download with headers:
Content-Type: plain/text; charset=utf-8Content-Disposition: attachment; filename=profiler.tar
Response Fields
| Field | Type | Description |
|---|---|---|
(stream body) | Binary stream | Tar archive containing profiler output files. |
Content-Type | Header | plain/text; charset=utf-8 |
Content-Disposition | Header | attachment; filename=profiler.tar |
Error Responses
404
{
"result": "Profiler files couldn't be found"
}
500
{
"result": "...error text..."
}
Behavior
- Builds tar stream from profiler files directory and pipes it to response.
Implementation details
Database Collections
This endpoint does not read or write database collections.