# List tags `GET /api/v1/tags` Lists tag records in the workspace. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Tags → Read**. ## Query parameters - `q` (string) — Search by tag name. - `tag_type` (string) — Use tag or accounting_category. Defaults to tag. - `direction` (string or null) — Use incoming or outgoing for accounting categories. - `selected` (boolean) — Filter by whether this is the selected category. - `length` (integer) — Number of records to return. - `start` (integer) — Zero-based offset. - `draw` (string) — Optional request marker echoed in the response. - `page` (integer) — One-based page number when pageSize is supplied. - `pageSize` (integer) — Page size from 1 to 100. - `sort` (string) — Sort by id, name, tag_type, direction, selected, tsc, or tsu. Prefix the field name with a minus sign for descending order. - `order` (string) — Direction for unprefixed sort fields. Use asc or desc. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --get \ --url "https://api.asdincloud.com/api/v1/tags" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --data-urlencode "length=10" \ --data-urlencode "tag_type=accounting_category" ``` ## Response **200 OK** Returns items in `data`, counts before and after text search, and the optional `draw` marker. Example with fictional data and selected fields. ```json { "status": "success", "data": [ { "id": 8, "name": "Season fees", "tag_type": "accounting_category", "direction": "incoming", "selected": false } ], "records_total": 1, "records_filtered": 1, "draw": null } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission.