# 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

| Name                 | In    | Required | Description                                                                                                                                                                                                                    |
| -------------------- | ----- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference`  | path  | Yes      | Project slug, UUID, or domain that identifies the project.                                                                                                                                                                     |
| `style_profile_hash` | query | Yes      | Style profile identifier used with the selector to find current metadata.                                                                                                                                                      |
| `branch`             | query |          | Branch 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_name`   | query |          | Environment name. Exactly one selector is required.                                                                                                                                                                            |
| `release_id`         | query |          | Release UUID. Exactly one selector is required.                                                                                                                                                                                |

## Responses

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