List a repository's artifacts
List a repository's artifacts that have not expired, newest first: each with its id (a number), name, size_in_bytes, digest (sha256:… of its zip), created_at, expires_at, archive_download_url, and workflow_run (its run's id, head_branch and head_sha).
GET
/repos/{owner}/{name}/actions/artifactsNarrow with name; page with page and per_page (30 by default, at most 100). total_count counts every match. Needs the Read role; a public repository’s are open to anyone.
Expired and deleted artifacts are not listed. workflow_run.id is the run’s id, which get_workflow_run takes.
- Authentication: Optional. Public data can be read without a token; send one to see what is private.
- MCP tool:
workflowwithactionlist_artifacts, and the same inputs - Scope: An access token needs
workflows:read.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
owner |
string | Yes | The workspace that owns the repository. |
name |
string | Yes | The repository’s name. |
Query parameters
Section titled “Query parameters”| Name | Type | Required | Description |
|---|---|---|---|
name |
string | No | The repository’s name. |
page |
integer | No | The page, from 1. |
per_page |
integer | No | Artifacts a page: 30 unless you say, at most 100. |
Example request
Section titled “Example request”curl "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts?name=web-dist&per_page=1" \ -H "Authorization: Bearer $G1T_TOKEN"Example response
Section titled “Example response”A successful request answers 200 with:
{ "total_count": 9, "artifacts": [ { "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
Section titled “Errors”A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See 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. |