# Get an artifact

> Get one artifact by its id: its name, size_in_bytes, digest, when it was made and when it expires, and its run.

<div class="g1t-endpoint"><span class="g1t-method" data-method="get">GET</span><code>/repos/{owner}/{name}/actions/artifacts/{id}</code></div>

Needs the Read role.

- **Authentication:** Optional. Public data can be read without a token; send one to see what is private.
- **MCP tool:** [`workflow`](/reference/mcp/#workflow) with `action` `get_artifact`, and the same inputs
- **Scope:** An access token needs [`workflows:read`](/guides/authentication/#scopes).

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `owner` | string | Yes | The workspace that owns the repository. |
| `name` | string | Yes | The repository's name. |
| `id` | integer or string | Yes | The artifact's id, a number. |

## Example request

```sh
curl https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182 \
  -H "Authorization: Bearer $G1T_TOKEN"
```

## Example response

A successful request answers `200` with:

```json
{
  "id": 4182,
  "node_id": "artifact_4182",
  "name": "web-dist",
  "size_in_bytes": 18734120,
  "url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182",
  "archive_download_url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182/zip",
  "expired": false,
  "digest": "sha256:5f1c3a9e7b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a",
  "created_at": "2026-10-08T14:03:51.204Z",
  "updated_at": "2026-10-08T14:03:52.880Z",
  "expires_at": "2026-10-22T14:03:51.204Z",
  "workflow_run": {
    "id": "run_01kq9c4e6g8j0m2p4r6t8v0x2z",
    "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
    "head_repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
    "head_branch": "main",
    "head_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7"
  }
}
```

## Errors

A failed request answers with one of these statuses and a body like `{"error": {"code": "not_found", "message": "Repository not found."}}`. See [errors](/reference/api/#errors).

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthenticated` | A token is required, or the one sent is not valid. |
| 403 | `forbidden` | The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository. |
| 404 | `not_found` | It does not exist, or you cannot see it. |
| 422 | `invalid` | The input is not valid. `message` says which field and why. |
