# List artifacts

Source: https://amanucci.com/fr/docs/developers/api/artifacts/listArtifacts

## GET /v1/entities/{entityId}/artifacts

List artifacts

This entity's artifacts, oldest first, PAGED BY CURSOR (rule 5); `kind` narrows the walk.

Operation ID: `listArtifacts`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "description": "An opaque position, taken verbatim from a previous response's `nextCursor`. Never construct one: its encoding is an implementation detail and may change within `/v1` (rule 6 governs FIELDS, not the contents of an opaque token)."
    },
    "required": false,
    "description": "An opaque position, taken verbatim from a previous response's `nextCursor`. Never construct one: its encoding is an implementation detail and may change within `/v1` (rule 6 governs FIELDS, not the contents of an opaque token).",
    "name": "cursor",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "peppol_ubl",
        "coda_file",
        "bank_csv",
        "card_statement",
        "pdf",
        "photo",
        "email",
        "payroll_file",
        "user_note",
        "generated_filing",
        "engagement_letter",
        "filing_proof",
        "office_document",
        "audit_file",
        "filed_return",
        "asset_register"
      ],
      "description": "What the file IS. Every kind has a declared fate (the `artifact_kind_fate` table): `coda_file`/`bank_csv` → `import`; `pdf`/`photo`/`peppol_ubl` → `extract`; `email` → `unpack` (its attachments become child artifacts); every other kind is `evidence_only` — kept and cited, never processed."
    },
    "required": false,
    "description": "What the file IS. Every kind has a declared fate (the `artifact_kind_fate` table): `coda_file`/`bank_csv` → `import`; `pdf`/`photo`/`peppol_ubl` → `extract`; `email` → `unpack` (its attachments become child artifacts); every other kind is `evidence_only` — kept and cited, never processed.",
    "name": "kind",
    "in": "query"
  },
  {
    "schema": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 200,
      "description": "How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced."
    },
    "required": false,
    "description": "How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced.",
    "name": "limit",
    "in": "query"
  }
]
```

### Responses

#### 200 One page of artifacts.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/ArtifactList"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
