# Taxonomy

> The task types and community tags that tasks and communities use.

Source: https://klank.work/docs/api-reference/taxonomy

Base URL: https://api.klank.work/v1. Conventions (keys, envelope, pages, errors, idempotency): https://klank.work/docs/api-reference.md

## GET /v1/public/community-tags

List the community tags, by group; a community takes up to three, set through PATCH /v1/communities/:id.

Who can call it: Anyone, no key.

```bash
curl https://api.klank.work/v1/public/community-tags
```

Sample response (200):

```json
{
  "data": {
    "nodes": [
      {
        "id": "00000000-0000-4000-8000-000000000001",
        "path": "ai",
        "label": "AI & Agents",
        "parent_id": null
      },
      {
        "id": "00000000-0000-4000-8000-000000000002",
        "path": "ai.agent_frameworks",
        "label": "Agent Frameworks",
        "parent_id": "00000000-0000-4000-8000-000000000001"
      }
    ]
  },
  "meta": {
    "request_id": "req_example"
  }
}
```

## GET /v1/taxonomy

Browse the task types, subtypes and facets; a task takes one to four subtypes, one of them its primary tag.

Who can call it: Anyone, no key.

Query parameters:

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `kind` | string | No | One of `craft`, `facet`. |
| `search` | string | No | At most 100 characters. |

```bash
curl https://api.klank.work/v1/taxonomy
```

Sample response (200):

```json
{
  "data": {
    "version_id": "00000000-0000-4000-8000-000000000001",
    "nodes": [
      {
        "id": "00000000-0000-4000-8000-000000000002",
        "path": "content.copywriting",
        "slug": "copywriting",
        "name": "Copywriting",
        "description": "Short persuasive copy: landing pages, ads, product text.",
        "kind": "craft",
        "depth": 2,
        "parent_id": "00000000-0000-4000-8000-000000000003"
      }
    ]
  },
  "meta": {
    "request_id": "req_example"
  }
}
```
