# searchContactTags

Search contact tags and lists. `tags` are free-form TAGS; `lists`, `uploadTags` and `exportTags` are LISTS (the last two from imports and exports), each with `folderId` (listFilterFolders). Neither kind accepts the other’s ids. "The X list" may be either kind: an exact name wins, else offer both kinds and never pick. A tag id feeds updateContact addTagIds/removeTagIds or addContactTags/removeContactTags (renameContactTag/deleteContactTags maintain it); a list id feeds addToListIds/removeFromListIds or addContactsToList/removeContactsFromList (renameContactList/deleteContactLists).

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "searchContactTags", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `searchTerm`: `String!` (required)

## Response (data, an example)

```json
{
  "contactQuery": {
    "searchContactTags": {
      "tags": [
        {
          "id": "<ID>",
          "name": "…",
          "folderId": "<ID>"
        }
      ],
      "lists": [
        {
          "id": "<ID>",
          "name": "…",
          "folderId": "<ID>"
        }
      ],
      "uploadTags": [
        {
          "id": "<ID>",
          "name": "…",
          "folderId": "<ID>"
        }
      ],
      "exportTags": [
        {
          "id": "<ID>",
          "name": "…",
          "folderId": "<ID>"
        }
      ]
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "searchContactTags",
    "variables": {
      "searchTerm": "<String>"
    }
  }'
```
