# app.reddwarf.labelmerge.queryLabels

> Published by [whey.party](https://lexicon.garden/identity/did:plc:mn45tewwnse5btfftvd3powc)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/app.reddwarf.labelmerge.queryLabels)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/app.reddwarf.labelmerge.queryLabels/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/app.reddwarf.labelmerge.queryLabels/examples)

## Definitions

### `app.reddwarf.labelmerge.queryLabels`

**Type**: `query`

Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `l` | `array` | Yes | List of label sources (labeler DIDs) to filter on. |
| `s` | `array` | Yes | List of label subjects (strings). |
| `strict` | `boolean` | No | If true then any errors will throw the entire query |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `error` | `array` | No |  |
| `labels` | `array` | Yes |  |

### `app.reddwarf.labelmerge.queryLabels#error`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `e` | `string` | No |  |
| `s` | `string` (did) | Yes |  |

## Raw Schema

```json
{
  "id": "app.reddwarf.labelmerge.queryLabels",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "labels"
          ],
          "properties": {
            "error": {
              "type": "array",
              "items": {
                "ref": "#error",
                "type": "ref"
              }
            },
            "labels": {
              "type": "array",
              "items": {
                "ref": "com.atproto.label.defs#label",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "s",
          "l"
        ],
        "properties": {
          "l": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "did"
            },
            "description": "List of label sources (labeler DIDs) to filter on."
          },
          "s": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of label subjects (strings)."
          },
          "strict": {
            "type": "boolean",
            "description": "If true then any errors will throw the entire query"
          }
        }
      },
      "description": "Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth."
    },
    "error": {
      "type": "object",
      "required": [
        "s"
      ],
      "properties": {
        "e": {
          "type": "string"
        },
        "s": {
          "type": "string",
          "format": "did"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
