# Search Labels

Searches internal labels by name, sorted by name, with notes and app links. get-label identifies the objects carrying one.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "query": {
      "type": [
        "null",
        "string"
      ],
      "description": "Part of the name, case-insensitive; omit for all",
      "default": null,
      "maxLength": 250
    },
    "limit": {
      "type": "integer",
      "description": "Labels per page, 1 to 200",
      "default": 50,
      "minimum": 1,
      "maximum": 200
    },
    "offset": {
      "type": "integer",
      "description": "Labels to skip, for the next page",
      "default": 0,
      "minimum": 0
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "total",
    "labels"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "labelId",
          "name",
          "notes",
          "editUrl"
        ],
        "properties": {
          "labelId": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "editUrl": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

