---
title: "Get profiler samples"
method: GET
path: "/api/v1/profiler/sessions/{id}/samples"
tags: ["profiler"]
---

# Get profiler samples

`GET /api/v1/profiler/sessions/{id}/samples`

Returns profiling samples, markers, and spans collected since the given cursors. Use cursor values from the previous response to poll for new data.

## Path parameters

- `id` string, required

## Query parameters

- `sampleCursor` integer
- `markerCursor` integer
- `spanCursor` integer
- `limit` integer

## Response `200`

Profiler batch of samples, markers, and spans.

- ProfilerBatch — unresolved $ref

## Other responses

- `404` — Resource not found.
- `500` — Internal server error.

---

[API](https://skmtc.dev/dotnet/apis/devflow-agent-protocol.md) · [All operations](https://skmtc.dev/dotnet/apis/devflow-agent-protocol/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dotnet/devflow-agent-protocol/revisions/31dec8eed3de/schema)
