List an Organization's Releases
GET /api/0/organizations/{organization_id_or_slug}/releases/
Return a list of releases for a given organization.
Path Parameters
organization_id_or_slug(string)REQUIREDThe ID or slug of the organization.
Query Parameters:
query(string)This parameter can be used to create a "starts with" filter for the version.
project(array(string))The IDs or slugs of projects to filter releases by. This parameter may be repeated to filter by multiple projects. Omit to include all accessible projects;
-1includes all accessible projects.per_page(integer)The number of releases to return per page. Default and maximum allowed is 100.
cursor(string)A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:project:releases
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/releases/ \ -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied[ { "id": 2, "authors": [], "commitCount": 0, "data": {}, "dateCreated": "2018-11-06T21:20:08.033Z", "dateReleased": null, "deployCount": 0, "firstEvent": null, "lastCommit": null, "lastDeploy": null, "lastEvent": null, "newGroups": 0, "owner": null, "projects": [ { "name": "Pump Station", "slug": "pump-station" } ], "ref": "6ba09a7c53235ee8a8fa5ee4c1ca8ca886e7fdbb", "shortVersion": "2.0rc2", "url": null, "version": "2.0rc2" }, { "id": 1, "authors": [], "commitCount": 0, "data": {}, "dateCreated": "2018-11-06T21:19:58.559Z", "dateReleased": null, "deployCount": 0, "firstEvent": "2018-11-06T21:19:58.639Z", "lastCommit": null, "lastDeploy": null, "lastEvent": "2018-11-06T21:19:58.639Z", "newGroups": 0, "owner": null, "projects": [ { "name": "Prime Mover", "slug": "prime-mover" } ], "ref": null, "shortVersion": "2b6af31", "url": null, "version": "2b6af31b2edccc73a629108b17344dfe20858780" } ]
Was this helpful?