# List artifact metadata

Deprecated

GET

/v1/artifacts

```sh
curl --request GET \
  --url 'https://example.com/v1/artifacts?limit=25' \
  --header 'Authorization: Bearer <token>'
```

Use `files.list`. Removed in 0.9.0.

Cursor-paginated. Metadata rows only (no bytes). Filters: `?ownerRunId=`, `?projectId=`, `?contentType=`, `?tag.<key>=<value>` (repeatable — every provided tag must match as AND). Sort order is binding-defined (typically `createdAt desc, blobId desc`). With authorization on, only artifacts in projects the caller can read are listed; with `?ownerRunId=` of a run of the caller’s own (one that acts for them), `run` on the project is enough too.

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.8.0/reference/api.md#bearerauth)**

## Parameters

### Query Parameters

**limit**

integer

default: 25 >= 1 <= 100

1..100. Default 25.

**cursor**

string

Where the previous page ended: its `nextCursor`, as it came. A runtime that seals cursors takes one only for the same list, filters and caller, within a day; otherwise `400 bad-input`, and the list starts again without it. Absent → first page.

**ownerRunId**

string format: uuid

Filter to blobs produced by this RunId.

**contentType**

string

Filter by exact content-type match.

**projectId**

string

Filter to the artifacts of one project.

## Responses

### 200

Page of blob metadata.

application/json

object

**data**

required

Array\<object>

object

**blobId**

required

ArtifactId — opaque branded string (a UUID).

string

**tenantId**

required

string format: uuid

**name**

required

Caller-supplied filename or logical name.

string

**contentType**

required

MIME type as declared by the uploader. Framework does NOT sniff content-type server-side.

string

**size**

required

Byte length of the persisted body.

integer

**hash**

required

Sha256 of the body, hex-encoded, lowercase (64 chars).

string

/^\[0-9a-f]{64}$/

**tags**

required

Free-form caller-supplied labels. Filterable on list via `?tag.<key>=<value>`.

object

**_key_**

additional properties

string

**ownerRunId**

Optional back-ref to the RunId that produced this blob.

string format: uuid

**projectId**

The project the artifact belongs to: its owner run’s, else the upload’s `projectId`, else the workspace’s default project. Reading it needs `read` there; deleting it, `write`. Absent on blobs stored before projects were recorded.

string

**createdBy**

Who uploaded it: `user:<id>` or `service_account:<id>`.

string

**createdAt**

required

string format: date-time

**expiresAt**

When this upload for a run is deleted if no run that names it in its input has started by then. Present only on a `forRun` upload whose run hasn’t started; once one starts, it’s gone, and the file stays until it’s deleted.

string format: date-time

**bucket**

The bucket of the blob’s S3-compatible address (`/s3/{bucket}/{key}`). Present, with `key`, when the server’s storage gives the blob one: an object put through `/s3` has the bucket and key it was put under, and an upload through `POST /v1/artifacts` conventionally has bucket `artifacts` and its `blobId` as the key.

string

**key**

The key of the blob’s S3-compatible address (`/s3/{bucket}/{key}`). Present, with `bucket`, when the server’s storage gives the blob one.

string

**fileId**

The file these bytes are a version of, on a runtime that keeps file versions (`/v1/files`). A blob stored before it kept them is version 1 of a file with its own id.

string

**version**

Which version of `fileId` these bytes are. Set with `fileId`. Bytes two versions share name the lowest: the one that stored them.

integer

\>= 1

**nextCursor**

string

**hasMore**

required

boolean

##### Examplegenerated

```json
{
  "data": [
    {
      "blobId": "example",
      "tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
      "name": "example",
      "contentType": "example",
      "size": 1,
      "hash": "example",
      "tags": {
        "additionalProperty": "example"
      },
      "ownerRunId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
      "projectId": "example",
      "createdBy": "example",
      "createdAt": "2026-04-15T12:00:00Z",
      "expiresAt": "2026-04-15T12:00:00Z",
      "bucket": "example",
      "key": "example",
      "fileId": "example",
      "version": 1
    }
  ],
  "nextCursor": "example",
  "hasMore": true
}
```

### 400

Malformed query parameter (e.g. empty `tag.` key).

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 429

`rate-limit-exceeded` with `details.limit: "api-requests"`, on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; `Retry-After` says when to send it again.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

#### Headers

**Retry-After**

integer

\>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

### 503

The database was too busy to answer in time (`database-busy`), or the authorization store couldn’t be reached (`authz-backend-unavailable`); `Retry-After` (whole seconds) says when to try again.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

#### Headers

**Retry-After**

integer

\>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

## See also

- [`POST /v1/artifacts`: Upload an artifact](https://docs.kindgi.com/v0.8.0/reference/api/operations/artifactsupload.md)
- [Files and versions](https://docs.kindgi.com/v0.8.0/concepts/files-and-versions.md)
- [Export your data](https://docs.kindgi.com/v0.8.0/hosted/export-your-data.md)
- [Kindgi 0.1.10](https://docs.kindgi.com/v0.8.0/releases/0.1.10.md)
- [Error code `authz-backend-unavailable`](https://docs.kindgi.com/v0.8.0/reference/errors.md#authz-backend-unavailable)
- [Error code `database-busy`](https://docs.kindgi.com/v0.8.0/reference/errors.md#database-busy)
- [Error code `rate-limit-exceeded`](https://docs.kindgi.com/v0.8.0/reference/errors.md#rate-limit-exceeded)
- [Every error code](https://docs.kindgi.com/v0.8.0/reference/errors.md)
