taskhold-com Labels API
The Labels API from taskhold-com — 3 operation(s) for labels.
The Labels API from taskhold-com — 3 operation(s) for labels.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/taskhold-com:taskhold-com-labels-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Taskhold Labels API
version: 1.2.0
description: 'REST API behind Taskhold, a task list shared by a person and their coding agents. The same API key works for the MCP server at https://taskhold.com/api/mcp, which is the easier way to connect an agent. Changes made with an API key are recorded as made by an agent. Changelog: https://taskhold.com/changelog'
contact:
email: hello@greatwork.company
termsOfService: https://taskhold.com/terms
servers:
- url: https://taskhold.com
security:
- bearer: []
tags:
- name: Labels
paths:
/api/labels:
get:
summary: List labels
description: Labels in the account with their colors, descriptions and task_count (tasks and steps carrying each). Tasks reference labels by name.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
labels:
type: array
items:
$ref: '#/components/schemas/Label'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/SubscriptionRequired'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Labels
operationId: getApiLabels
x-operation-id-source: derived
post:
summary: Create a label
description: Creates a label (201), or returns the existing one with that name, case-insensitive (200). Creating or updating a task with an unknown label name also creates it.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
properties:
name:
type: string
minLength: 1
maxLength: 50
description: Label name
color:
type: string
pattern: ^#[0-9a-fA-F]{6}$
description: Hex color
description:
type:
- string
- 'null'
maxLength: 300
description: What the label means
responses:
'200':
description: A label with this name exists
content:
application/json:
schema:
type: object
properties:
label:
$ref: '#/components/schemas/Label'
created:
type: boolean
const: false
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
label:
$ref: '#/components/schemas/Label'
created:
type: boolean
const: true
'400':
description: Validation failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/SubscriptionRequired'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Labels
operationId: postApiLabels
x-operation-id-source: derived
/api/labels/{id}:
parameters:
- name: id
in: path
required: true
description: Label id (UUID)
schema:
type: string
format: uuid
get:
summary: Get a label
description: 'One label: name, color and description.'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
label:
$ref: '#/components/schemas/Label'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/SubscriptionRequired'
'404':
description: Label not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Labels
operationId: getApiLabelsById
x-operation-id-source: derived
patch:
summary: Update a label
description: 'Rename, recolor or describe a label. A name another label already has (case-insensitive) is refused with 409: merge instead.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 50
color:
type: string
pattern: ^#[0-9a-fA-F]{6}$
description:
type:
- string
- 'null'
maxLength: 300
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
label:
$ref: '#/components/schemas/Label'
'400':
description: Validation failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/SubscriptionRequired'
'404':
description: Label not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Another label has that name
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Labels
operationId: patchApiLabelsById
x-operation-id-source: derived
delete:
summary: Delete a label
description: Removes the label from every task, then deletes it. The tasks stay.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
removed:
type: integer
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/SubscriptionRequired'
'404':
description: Label not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Labels
operationId: deleteApiLabelsById
x-operation-id-source: derived
/api/labels/{id}/merge:
parameters:
- name: id
in: path
required: true
description: Label id (UUID)
schema:
type: string
format: uuid
post:
summary: Merge a label into another
description: Gives every task with this label the `into` label instead, then deletes this label.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- into
properties:
into:
type: string
format: uuid
description: Target label id
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
moved:
type: integer
label:
$ref: '#/components/schemas/Label'
'400':
description: Same label, or validation failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/SubscriptionRequired'
'404':
description: Label not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Labels
operationId: postApiLabelsByIdMerge
x-operation-id-source: derived
components:
schemas:
AuthError:
type: object
properties:
error:
type: string
reason:
type: string
message:
type: string
url:
type: string
format: uri
Label:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
color:
type: string
description:
type:
- string
- 'null'
task_count:
type: integer
description: In GET /api/labels only
Error:
type: object
properties:
error:
type: string
message:
type: string
details: {}
responses:
Unauthorized:
description: Missing, malformed or unknown API key. `reason` is one of missing_key, bad_header, not_a_taskhold_key, unknown_key; `message` says what to do and `url` links to Settings.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthError'
SubscriptionRequired:
description: The key is valid but the account has no active subscription. `url` links to Billing.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthError'
securitySchemes:
bearer:
type: http
scheme: bearer
description: An atd_sk_ API key from https://taskhold.com/dashboard/settings (or a setup URL, which creates one for you).
externalDocs:
description: Setup per agent
url: https://taskhold.com/for