List steps for a test attempt
const url = 'https://testperch.com/api/public/v1/projects/example/test-runs/example/attempts/example/steps?first=250';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://testperch.com/api/public/v1/projects/example/test-runs/example/attempts/example/steps?first=250' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of a project visible to the authenticated credential.
ID of a project visible to the authenticated credential.
Per-run test ID returned as the grouped execution id.
Per-run test ID returned as the grouped execution id.
ID of an attempt belonging to this grouped execution.
ID of an attempt belonging to this grouped execution.
Query Parameters
Section titled “Query Parameters”Opaque forward-pagination cursor containing only the start time and ID.
Opaque forward-pagination cursor containing only the start time and ID.
Number of steps to return (maximum 1,000).
Number of steps to return (maximum 1,000).
Responses
Section titled “Responses”A forward page of steps for one test attempt.
One forward page from the complete step list for a single test attempt.
object
Steps ordered chronologically by started_at and then id.
Cursor and step value for one result edge.
object
Opaque cursor for this step’s started_at and id ordering position.
Step at this chronological pagination position.
object
Playwright step category as reported, or null when absent.
Reporter-provided nesting depth; 0 denotes a top-level step.
Reported step duration in milliseconds, or null when the step has not finished.
ANSI-cleaned step error message, or null when no step error was reported.
RFC 3339 reporter timestamp for step completion, normalized to UTC; null when no finish was reported.
Step ID within this test attempt. It is also the value referenced by steps.focus_step_id.
Playwright-reported source location for the step, not a parsed stack-frame location; null when no file was reported.
object
Source column reported by Playwright, preserving Playwright’s coordinate semantics; null when omitted.
Reporter-provided source-file path for the step, which may be relative to the test workspace.
Source line reported by Playwright, preserving Playwright’s coordinate semantics; null when omitted.
RFC 3339 reporter timestamp for step start, normalized to UTC.
ID of the individual test attempt that owns this step; it matches the attempt_id path parameter.
Reporter-provided display title for the step.
Reporter-provided hierarchical title segments from the outermost group through this step.
Forward-pagination state for the complete step list.
object
Opaque cursor for the last returned edge, or null when the page is empty.
Whether another forward page is available after end_cursor.
Example generated
{ "edges": [ { "cursor": "example", "node": { "category": "example", "depth": 1, "duration_ms": 1, "error_message": "example", "finished_at": "2026-04-15T12:00:00Z", "id": "example", "source_location": { "column": 1, "file": "example", "line": 1 }, "started_at": "2026-04-15T12:00:00Z", "attempt_id": "example", "title": "example", "title_path": [ "example" ] } } ], "page_info": { "end_cursor": "example", "has_next_page": true }}Invalid parameters, query, or cursor.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Missing or invalid OAuth bearer token or API key.
object
object
object
Example
{ "error": { "code": "invalid_request" }}The project workspace does not have product access.
object
object
object
Example
{ "error": { "code": "invalid_request" }}The credential lacks the required permission; configuration writes require a Read + write project key.
object
object
object
Example
{ "error": { "code": "invalid_request" }}The resource does not exist, belongs to a different project, or the attempt does not belong to the requested group.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Configuration conflicts with an existing resource or integration requirements.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Diagnostics_expired: diagnostic content was removed by workspace retention.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Credential or workspace rate limit exceeded.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”Seconds before retrying.
Seconds before retrying.
Internal server error.
object
object
object
Example
{ "error": { "code": "invalid_request" }}