List raw logs for a test attempt
const url = 'https://testperch.com/api/public/v1/projects/example/test-runs/example/attempts/example/logs?first=500';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/logs?first=500' \ --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 event sequence and ID.
Opaque forward-pagination cursor containing only the event sequence and ID.
Maximum number of raw output chunks to return (maximum 1,000). Pages may contain fewer chunks to limit output size; use page_info.has_next_page to determine whether more output remains.
Maximum number of raw output chunks to return (maximum 1,000). Pages may contain fewer chunks to limit output size; use page_info.has_next_page to determine whether more output remains.
Responses
Section titled “Responses”A forward page of raw stdout and stderr chunks for one test attempt. At least one available chunk is returned intact, even if it exceeds the server’s output-size target.
object
object
object
Raw output chunk. When encoding is base64, this value is base64-encoded bytes and must be decoded before use.
Forward-pagination state for the returned page.
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
{ "edges": [ { "node": { "encoding": "utf8", "stream": "stdout" } } ]}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" }}