GET/v1/integration/files/{type}/{id}
Download a file
Authorize a file in the active account and redirect to a short-lived URL. Send Accept: application/json or as=link to receive url and expires_at instead of a redirect. Records store a disk and a path; the URL is created on this request.
operationIdfile.showFilesBearer token
Authentication
Bearer token with the integration ability. Create tokens in Settings → API.
Authorization: Bearer <integration-personal-access-token>
Example request
curl -sS -X GET 'https://api.asklytic.com/v1/integration/files/{type}/{id}' \
-H 'Authorization: Bearer $INTEGRATION_TOKEN' \
-H 'Accept: application/json'Parameters
Name
In
Type and rules
typeRequired
path
string
idRequired
path
string
Responses
Name
Type
Required
Unauthenticated
Name
Type
Required
messageError overview.
string
Required
Authorization error
Name
Type
Required
messageError overview.
string
Required
Validation error
Name
Type
Required
messageErrors overview.
string
Required
errorsA detailed description of each field that failed validation.
object<string, array<string>>
Required