Skip to main content
Projects in Sentry represent a single application or service you want to monitor. These endpoints let you manage projects within an organization.

List projects in an organization

GET /api/0/organizations/{organization_id_or_slug}/projects/
Returns a list of projects bound to an organization. Required scope: project:read

Path parameters

organization_id_or_slug
string
required
The ID or slug of the organization.

Query parameters

cursor
string
Pagination cursor from the Link response header.

Example request

curl https://sentry.io/api/0/organizations/my-org/projects/ \
  -H "Authorization: Bearer <token>"

Example response

[
  {
    "id": "2",
    "slug": "pump-station",
    "name": "Pump Station",
    "platform": "python",
    "dateCreated": "2018-11-06T21:19:58.536Z",
    "isBookmarked": false,
    "isMember": true,
    "hasAccess": true,
    "firstEvent": "2018-11-06T21:19:58.639Z",
    "firstTransactionEvent": false,
    "features": [],
    "status": "active"
  }
]

Create a project

POST /api/0/teams/{organization_id_or_slug}/{team_id_or_slug}/projects/
Creates a new project bound to a team. Required scope: project:write

Path parameters

organization_id_or_slug
string
required
The ID or slug of the organization.
team_id_or_slug
string
required
The ID or slug of the team that will own the project.

Request body

name
string
required
The name of the project.
slug
string
A unique slug for the project. Generated from the name if not provided.
platform
string
The platform identifier (e.g. python, javascript, java).

Example request

curl -X POST https://sentry.io/api/0/teams/my-org/my-team/projects/ \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Backend API", "platform": "python"}'

Retrieve a project

GET /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/
Returns details for a single project. Required scope: project:read

Path parameters

organization_id_or_slug
string
required
The ID or slug of the organization.
project_id_or_slug
string
required
The ID or slug of the project.

Example request

curl https://sentry.io/api/0/projects/my-org/pump-station/ \
  -H "Authorization: Bearer <token>"

Response fields

id
string
The unique ID of the project.
slug
string
The URL-friendly identifier for the project.
name
string
The display name of the project.
platform
string
The primary platform of the project (e.g. python, javascript).
dateCreated
string
ISO 8601 timestamp of when the project was created.
isBookmarked
boolean
Whether the authenticated user has bookmarked this project.
isMember
boolean
Whether the authenticated user is a member of a team assigned to this project.
hasAccess
boolean
Whether the authenticated user has access to this project.
firstEvent
string | null
ISO 8601 timestamp of the first event received, or null if no events have been received.
status
string
The project status. One of active or deleted.

Update a project

PUT /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/
Updates settings for an existing project. Required scope: project:write

Path parameters

organization_id_or_slug
string
required
The ID or slug of the organization.
project_id_or_slug
string
required
The ID or slug of the project.

Request body

name
string
The new display name for the project.
slug
string
A new URL slug for the project.
platform
string
The project’s primary platform.
isBookmarked
boolean
Whether the current user bookmarks the project.

Example request

curl -X PUT https://sentry.io/api/0/projects/my-org/pump-station/ \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Pump Station v2"}'

Delete a project

DELETE /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/
Permanently deletes a project and all of its data. Required scope: project:admin
Deleting a project is permanent and cannot be undone. All issues, events, and releases associated with the project will be removed.

Path parameters

organization_id_or_slug
string
required
The ID or slug of the organization.
project_id_or_slug
string
required
The ID or slug of the project to delete.

Example request

curl -X DELETE https://sentry.io/api/0/projects/my-org/pump-station/ \
  -H "Authorization: Bearer <token>"
A successful deletion returns 204 No Content.

Build docs developers (and LLMs) love