Skip to main content

System Utility - Download All Profiler Files

Endpoint

/i/profiler/download-all

Overview

Streams all profiler output files as a tar archive.

Authentication

Countly API supports three authentication methods:

  1. api_key=YOUR_API_KEY
  2. auth_token=YOUR_AUTH_TOKEN
  3. countly-token: YOUR_AUTH_TOKEN

Permissions

Requires Global Admin access.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Response

Success Response

Binary stream download with headers:

  • Content-Type: plain/text; charset=utf-8
  • Content-Disposition: attachment; filename=profiler.tar

Response Fields

FieldTypeDescription
(stream body)Binary streamTar archive containing profiler output files.
Content-TypeHeaderplain/text; charset=utf-8
Content-DispositionHeaderattachment; filename=profiler.tar

Error Responses

  • 404
{
"result": "Profiler files couldn't be found"
}
  • 500
{
"result": "...error text..."
}

Behavior/Processing

  • Builds tar stream from profiler files directory and pipes it to response.

Database Collections

This endpoint does not read or write database collections.

Examples

/i/profiler/download-all?api_key=YOUR_API_KEY

Last Updated

2026-03-07