Retrieve a Profile

GET /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/profiling/profiles/{profile_id}/

Retrieve a single profile by its ID.

The response includes the profile's metadata, its sampled stack data, and the associated release, when one is found.

Requires profiling to be enabled for the organization.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The ID or slug of the organization the resource belongs to.

project_id_or_slug (string)
REQUIRED

The ID or slug of the project the resource belongs to.

profile_id (string)
REQUIRED

The ID of the profile. Either a numeric ID or a 32-character hexadecimal string.

Scopes

<auth_token> requires one of the following scopes:
  • project:admin
  • project:read
  • project:write
Copied
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/profiling/profiles/{profile_id}/ \
 -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied
{ "event_id": "9b29bbe17e9d4ee3a6d0fe9b2e8a3b1c", "project_id": 1, "version": "2", "platform": "python", "environment": "production", "received": "2026-04-15T18:22:31.000Z", "timestamp": "2026-04-15T18:22:31.000Z", "release": { "id": 123456, "version": "1.0.0", "status": "open", "shortVersion": "1.0.0", "versionInfo": { "package": null, "version": { "raw": "1.0.0" }, "description": "1.0.0", "buildHash": null }, "ref": null, "url": null, "dateReleased": "2026-04-15T18:00:00Z", "dateCreated": "2026-04-15T18:00:00Z", "data": {}, "newGroups": 0, "owner": null, "commitCount": 0, "lastCommit": null, "deployCount": 0, "lastDeploy": null, "authors": [], "projects": [ { "id": 1, "slug": "my-project", "name": "my-project", "platform": "python" } ], "firstEvent": "2026-04-15T18:05:00Z", "lastEvent": "2026-04-15T18:30:00Z", "currentProjectMeta": {} }, "os": { "name": "Linux", "version": "5.15.0", "build_number": "" }, "device": { "architecture": "x86_64" }, "runtime": { "name": "CPython", "version": "3.13.0" }, "profile": { "samples": [ { "stack_id": 0, "thread_id": 1, "elapsed_since_start_ns": 1000000 } ], "stacks": [ [ 0, 1 ] ], "frames": [ { "function": "main", "module": "app.main", "in_app": true, "lineno": 10 }, { "function": "do_work", "module": "app.worker", "in_app": true, "lineno": 42 } ], "thread_metadata": { "1": { "name": "MainThread" } } }, "transaction": { "name": "GET /api/0/projects/{org}/{proj}/files/dsyms/", "trace_id": "0123456789abcdef0123456789abcdef", "id": "9b29bbe17e9d4ee3a6d0fe9b2e8a3b1c", "active_thread_id": 1 } }
Was this helpful?