# zone.stratos.space.listBlobs

> Published by [lexicon.northsky.app](https://lexicon.garden/identity/did:plc:6uxgo3ypovauub7nblwylqyv)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.space.listBlobs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.space.listBlobs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.space.listBlobs/examples)

## Definitions

### `zone.stratos.space.listBlobs`

**Type**: `query`

List the CIDs of blobs referenced by an account's records within a permissioned space, optionally since some revision of that repo. Spec-shaped mirror of com.atproto.space.listBlobs (atproto#5187): callable with standard user auth (the caller must be a member of the space) or with a space credential for that space (for syncing services). Blobs behind permissioned records are never enumerated by an unauthenticated endpoint.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `repo` | `string` (did) | Yes | The DID of the account whose blobs to list. |
| `limit` | `integer` | No |  |
| `since` | `string` (tid) | No | Optional revision of the repo to list blobs since. |
| `space` | `string` | Yes | The space's at:// URI (at://{did}/space/{type}/{skey}). Mirrors the upstream space-ref string format (atproto#5187); declared as a plain string until @atproto/lexicon supports that format. Its space DID must equal this service's DID. |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cids` | `array` | Yes |  |
| `cursor` | `string` | No |  |

#### Errors

- **RepoNotFound**: The requested account has no repo on this service.
- **UnknownSpace**: The requested space URI is malformed or its space DID does not match this service's DID.
- **AuthRequired**: The caller is not admitted to the requested space (not a member, or the presented credential targets a different space).

## Raw Schema

```json
{
  "id": "zone.stratos.space.listBlobs",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "RepoNotFound",
          "description": "The requested account has no repo on this service."
        },
        {
          "name": "UnknownSpace",
          "description": "The requested space URI is malformed or its space DID does not match this service's DID."
        },
        {
          "name": "AuthRequired",
          "description": "The caller is not admitted to the requested space (not a member, or the presented credential targets a different space)."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "cids"
          ],
          "properties": {
            "cids": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "cid"
              }
            },
            "cursor": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "space",
          "repo"
        ],
        "properties": {
          "repo": {
            "type": "string",
            "format": "did",
            "description": "The DID of the account whose blobs to list."
          },
          "limit": {
            "type": "integer",
            "default": 500,
            "maximum": 1000,
            "minimum": 1
          },
          "since": {
            "type": "string",
            "format": "tid",
            "description": "Optional revision of the repo to list blobs since."
          },
          "space": {
            "type": "string",
            "description": "The space's at:// URI (at://{did}/space/{type}/{skey}). Mirrors the upstream space-ref string format (atproto#5187); declared as a plain string until @atproto/lexicon supports that format. Its space DID must equal this service's DID."
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "List the CIDs of blobs referenced by an account's records within a permissioned space, optionally since some revision of that repo. Spec-shaped mirror of com.atproto.space.listBlobs (atproto#5187): callable with standard user auth (the caller must be a member of the space) or with a space credential for that space (for syncing services). Blobs behind permissioned records are never enumerated by an unauthenticated endpoint."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
