Retrieve a Project Release's File

GET /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/

Return details on an individual file within a release. This does not actually return the contents of the file, just the associated metadata.

Path Parameters:
  • organization_slug (string)

    the slug of the organization the release belongs to.

  • project_slug (string)

    the slug of the project to retrieve the file of.

  • version (string)

    the version identifier of the release.

  • file_id (string)

    the ID of the file to retrieve.

Authentication: required
Method: GET
Path: /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/

Example

GET /api/0/projects/the-interstellar-jurisdiction/pump-station/releases/17642328ead24b51867165985996d04b29310337/files/2/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
HTTP/1.1 200 OK
Content-Length: 219
X-XSS-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Vary: Accept-Language, Cookie
Allow: GET, PUT, DELETE, HEAD, OPTIONS
X-Frame-Options: deny
Content-Type: application/json

{
  "dateCreated": "2018-11-06T21:20:19.460Z", 
  "dist": null, 
  "headers": {
    "Content-Type": "text/plain; encoding=utf-8"
  }, 
  "id": "2", 
  "name": "/demo/readme.txt", 
  "sha1": "2ef7bde608ce5404e97d5f042f95f89f1c232871", 
  "size": 12
}