Skip to content

List steps for a test attempt

GET
/api/public/v1/projects/{project_id}/test-runs/{run_test_id}/attempts/{attempt_id}/steps
curl --request GET \
--url 'https://testperch.com/api/public/v1/projects/example/test-runs/example/attempts/example/steps?first=250' \
--header 'Authorization: Bearer <token>'
project_id
required

ID of a project visible to the authenticated credential.

string
>= 1 characters

ID of a project visible to the authenticated credential.

run_test_id
required

Per-run test ID returned as the grouped execution id.

string
>= 1 characters

Per-run test ID returned as the grouped execution id.

attempt_id
required

ID of an attempt belonging to this grouped execution.

string
>= 1 characters

ID of an attempt belonging to this grouped execution.

after

Opaque forward-pagination cursor containing only the start time and ID.

string
>= 1 characters

Opaque forward-pagination cursor containing only the start time and ID.

first

Number of steps to return (maximum 1,000).

integer
default: 250 >= 1 <= 1000

Number of steps to return (maximum 1,000).

A forward page of steps for one test attempt.

Media typeapplication/json

One forward page from the complete step list for a single test attempt.

object
edges
required

Steps ordered chronologically by started_at and then id.

Array<object>

Cursor and step value for one result edge.

object
cursor
required

Opaque cursor for this step’s started_at and id ordering position.

string
node
required

Step at this chronological pagination position.

object
category
required

Playwright step category as reported, or null when absent.

string | null
depth
required

Reporter-provided nesting depth; 0 denotes a top-level step.

integer
duration_ms
required

Reported step duration in milliseconds, or null when the step has not finished.

integer | null
error_message
required

ANSI-cleaned step error message, or null when no step error was reported.

string | null
finished_at
required

RFC 3339 reporter timestamp for step completion, normalized to UTC; null when no finish was reported.

string | null format: date-time
id
required

Step ID within this test attempt. It is also the value referenced by steps.focus_step_id.

string
source_location
required

Playwright-reported source location for the step, not a parsed stack-frame location; null when no file was reported.

object
column
required

Source column reported by Playwright, preserving Playwright’s coordinate semantics; null when omitted.

integer | null
file
required

Reporter-provided source-file path for the step, which may be relative to the test workspace.

string
line
required

Source line reported by Playwright, preserving Playwright’s coordinate semantics; null when omitted.

integer | null
started_at
required

RFC 3339 reporter timestamp for step start, normalized to UTC.

string format: date-time
attempt_id
required

ID of the individual test attempt that owns this step; it matches the attempt_id path parameter.

string
title
required

Reporter-provided display title for the step.

string
title_path
required

Reporter-provided hierarchical title segments from the outermost group through this step.

Array<string>
page_info
required

Forward-pagination state for the complete step list.

object
end_cursor
required

Opaque cursor for the last returned edge, or null when the page is empty.

string | null
has_next_page
required

Whether another forward page is available after end_cursor.

boolean

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.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

Example

{
"error": {
"code": "invalid_request"
}
}

Missing or invalid OAuth bearer token or API key.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

Example

{
"error": {
"code": "invalid_request"
}
}

The project workspace does not have product access.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

Example

{
"error": {
"code": "invalid_request"
}
}

The credential lacks the required permission; configuration writes require a Read + write project key.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

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.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

Example

{
"error": {
"code": "invalid_request"
}
}

Configuration conflicts with an existing resource or integration requirements.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

Example

{
"error": {
"code": "invalid_request"
}
}

Diagnostics_expired: diagnostic content was removed by workspace retention.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

Example

{
"error": {
"code": "invalid_request"
}
}

Credential or workspace rate limit exceeded.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

Example

{
"error": {
"code": "invalid_request"
}
}
Retry-After
required

Seconds before retrying.

integer
> 0

Seconds before retrying.

Internal server error.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request conflict diagnostics_expired insufficient_scope unauthorized subscription_required not_found rate_limited query_timeout internal_error onboarding_closed
details
Array<object>
object
code
required
string
message
required
string
path
required
Array
message
required
string
request_id
required
string format: uuid

Example

{
"error": {
"code": "invalid_request"
}
}