Skip to main content
GET
Preview a project source

Authorizations

Authorization
string
header
required

An admin API key. Personal admin keys reach the API key, billing and Account endpoints for the creator's personal account; the other endpoints need an organization admin key. Security requirement entries list the permission a scoped key needs for the operation.

Scopes

config-registry.publish

Query Parameters

project
string
required

Linked config project, as /org/project.

commit
string

Full SHA of a commit on the default branch. Defaults to the head of the default branch.

Pattern: ^[0-9a-f]{40}$

Response

Preview

project
string
required

Config project, as /org/project.

source
object
required

The repository file and commit a revision was published from, with the state of the commit's checks when it was read. Present only on revisions published from a commit, and only to the revision's owner.

digest
string
required

Digest of the config the registry would store, as sha256:. When problem is set, the digest of the file as read.

config
string<byte>
required

The config the registry would store, base64-encoded. When problem is set, the file as read.

suggested_revision
string
required

The patch release after the project's highest vX.Y.Z revision, or v0.0.1 when it has none.

changed
boolean
required

Whether the config differs from the project's current revision. True when the project has none.

current
object | null
required

The project's current revision, or null when it has none.

problem
string

Why the file cannot be published, such as a validation error. Absent when it can be.