Retrieve an Organization Release's File

GET /api/0/organizations/{organization_slug}/releases/{version}/files/{file_id}/

Retrieve a file for a given release.

Path Parameters

organization_slug (string)
REQUIRED

The slug of the organization.

version (string)
REQUIRED

The version identifier of the release.

file_id (string)
REQUIRED

The ID of the file to retrieve.

Query Parameters:

download (boolean)

If this is set to true, then the response payload will be the raw file contents. Otherwise, the response will be the file metadata as JSON.

Scopes

<auth_token> requires one of the following scopes:
  • project:releases
curl https://sentry.io/api/0/organizations/{organization_slug}/releases/{version}/files/{file_id}/ \
 -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
{
  "dateCreated": "2018-11-06T21:20:19.150Z",
  "dist": null,
  "headers": {
    "Content-Type": "text/plain; encoding=utf-8"
  },
  "id": "1",
  "name": "/demo/message-for-you.txt",
  "sha1": "2ef7bde608ce5404e97d5f042f95f89f1c232871",
  "size": 12
}