For the complete documentation index, see llms.txt. This page is also available as Markdown.

Builds

Create, finalize, update, and inspect visual testing builds, including their screenshot diffs. This is the core of the visual testing workflow.

Create a build

post

Create a build and receive signed upload targets for its screenshots and Playwright traces. The response lists, for every file Argos doesn't already have, a secure postUrl with fields (or a legacy putUrl) to upload it to. Supports single and parallel builds.

Authorizations
AuthorizationstringRequired

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Argos project settings. Project tokens are used by CI and the SDK to create builds and deployments.

Body
and
anyOptional
or
Responses
201

Result of build creation

application/json
post/builds

Finalize parallel builds

post

Mark every parallel shard sharing the given parallelNonce as complete. Once finalized, Argos compares the aggregated screenshots and starts processing the build.

Authorizations
AuthorizationstringRequired

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Argos project settings. Project tokens are used by CI and the SDK to create builds and deployments.

Body
parallelNoncestring · min: 1Required
Responses
200

Result of build finalization

application/json
post/builds/finalize

Find an eligible baseline from a list of commits

post

Find the build eligible to be used as a baseline among a list of commits. Useful when no Git provider is connected: the CLI can send the candidate ancestor commits and let Argos pick the closest one that has an eligible (complete, valid, approved and not rejected) baseline build.

Authorizations
AuthorizationstringRequired

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Argos project settings. Project tokens are used by CI and the SDK to create builds and deployments.

Body
commitsstring[] · min: 1Required

The commits to look for an eligible baseline, ordered from the closest to the furthest ancestor. The first commit with an eligible baseline wins.

namestring · min: 1Optional

The name of the build to find a baseline for.

Default: default
modestring · enumOptional

The mode of the build to find a baseline for.

Default: ciPossible values:
Responses
200

The eligible baseline build, or null when none is found

application/json
post/baseline

Update a build

put

Add screenshots to an existing build and update its metadata. Used to push the screenshots of a parallel shard, identified by parallelIndex and parallelTotal.

Authorizations
AuthorizationstringRequired

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Argos project settings. Project tokens are used by CI and the SDK to create builds and deployments.

Path parameters
buildIdstringRequired

A unique identifier for the build

Example: 12345
Body
parallelboolean · nullableOptional
parallelTotalinteger · min: -1 · max: 9007199254740991 · nullableOptional
parallelIndexinteger · min: 1 · max: 9007199254740991 · nullableOptional
finalboolean · nullableOptional

Only used for non-parallel builds. Indicates that this is the last request of the build, so Argos can finalize it. A build whose screenshots are too large to fit in a single request can split them across several sequential requests, leaving final falsy on every request but the last. Defaults to true.

Responses
200

Result of build update

application/json
put/builds/{buildId}

List a project's builds

get

List the builds of a project, most recent first. Results are paginated. Use distinctName to return only the latest build per name and commit.

Authorizations
AuthorizationstringRequired

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Argos project settings. Project tokens are used by CI and the SDK to create builds and deployments.

Path parameters
ownerstring · min: 1Required
projectstring · min: 1Required
Query parameters
perPagestringOptional

Number of items per page (max 100)

pagestringOptional

Page number

headstring · min: 1Optional
headShastringOptional

SHA1 hash

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

Only return the latest builds created, unique by name and commit.

Responses
200

List of builds

application/json
get/projects/{owner}/{project}/builds

Get a build

get

Retrieve a single build by its number within a project, including its status and metadata.

Authorizations
AuthorizationstringRequired

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Argos project settings. Project tokens are used by CI and the SDK to create builds and deployments.

Path parameters
ownerstring · min: 1Required
projectstring · min: 1Required
buildNumberstringRequired

The build number

Example: 42
Responses
200

Build

application/json

Build

idstringRequired

A unique identifier for the build

Example: 12345
numberanyRequired

The build number

Example: 42
statusany ofRequired

The status of the build

string · enumOptionalPossible values:
or
string · enumOptionalPossible values:
or
string · enumOptionalPossible values:
conclusionstring · enum · nullableRequired

The conclusion of the build

Possible values:
urlstring · uriRequired

The URL of the build

get/projects/{owner}/{project}/builds/{buildNumber}

List a build's screenshot diffs

get

List the screenshot diffs of a build, with pagination. Each diff compares a baseline screenshot to the one captured by the build. Use onlyChanged to return only the diffs that require review.

Authorizations
AuthorizationstringRequired

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Argos project settings. Project tokens are used by CI and the SDK to create builds and deployments.

Path parameters
ownerstring · min: 1Required
projectstring · min: 1Required
buildNumberstringRequired

The build number

Example: 42
Query parameters
perPagestringOptional

Number of items per page (max 100)

pagestringOptional

Page number

needsReviewstringOptional

Only return diffs that require review. Matches changed, added, and removed, except removed is excluded for subset builds.

Responses
200

List of screenshot diffs

application/json
get/projects/{owner}/{project}/builds/{buildNumber}/diffs

Last updated

Was this helpful?