Skip to content
Go to platform

Get job logs

GET
/v1preview1/job-logs
curl --request GET \
--url 'https://api.craci.dev/v1preview1/job-logs?provider=github&repo=octo-org%2Focto-repo&job_id=12345678901' \
--header 'Authorization: Bearer <token>'

Stream stored GitHub Actions step output as timestamped plain text. Set follow=true to append new lines until the client disconnects.

provider
required
string

CI provider. The only supported provider is GitHub (github).

Example
github
repo
required
string

GitHub repository in OWNER/REPOSITORY form.

Example
octo-org/octo-repo
job_id
required
string

GitHub job ID.

Example
12345678901
tail
integer format: int32
<= 100000

Return only the last number of stored lines. Omit or use zero for all stored lines.

follow
boolean

Keep the response open and append new lines until the client disconnects.

RFC 3339 timestamp, tab, and log text on each line

Media typetext/plain; charset=utf-8

Malformed selectors or options

Media typeapplication/problem+json
API problem
object
detail
required

Human-readable explanation specific to this occurrence.

string
status
required

HTTP status code returned with the problem.

integer format: int32
title
required

Short, human-readable summary of the problem.

string
type
required

URI identifying the problem type. about:blank uses the HTTP status meaning.

string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Missing, invalid, expired, or revoked token

Media typeapplication/problem+json
API problem
object
detail
required

Human-readable explanation specific to this occurrence.

string
status
required

HTTP status code returned with the problem.

integer format: int32
title
required

Short, human-readable summary of the problem.

string
type
required

URI identifying the problem type. about:blank uses the HTTP status meaning.

string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Unknown job

Media typeapplication/problem+json
API problem
object
detail
required

Human-readable explanation specific to this occurrence.

string
status
required

HTTP status code returned with the problem.

integer format: int32
title
required

Short, human-readable summary of the problem.

string
type
required

URI identifying the problem type. about:blank uses the HTTP status meaning.

string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Internal dependency unavailable

Media typeapplication/problem+json
API problem
object
detail
required

Human-readable explanation specific to this occurrence.

string
status
required

HTTP status code returned with the problem.

integer format: int32
title
required

Short, human-readable summary of the problem.

string
type
required

URI identifying the problem type. about:blank uses the HTTP status meaning.

string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}