Get style artifact

http
GET /projects/{project_reference}/style-artifacts/current

Read the compiled CSS artifact record for a branch, environment or release to decide whether a build is needed; returns the style artifact record, with status missing when none exists. Requires project.files.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
style_profile_hashqueryYesStyle profile identifier used with the selector to find current metadata.
branchqueryBranch name. Exactly one of branch, environment_name, or release_id is required. Main may be implicit before its branch row exists; other branch and environment names must exist in the project or the request returns 404.
environment_namequeryEnvironment name. Exactly one selector is required.
release_idqueryRelease UUID. Exactly one selector is required.

Responses

StatusDescription
200Current CSS artifact metadata for the selector and style profile: ready, building, failed, or missing. Nothing is built or uploaded.
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error