Clearstory Labels API
The Labels API from Clearstory, for labels.
The Labels API from Clearstory, 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/extracker:extracker-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: Clearstory Web Labels API
version: 1.9.0
host: web-api.clearstory.build
description: 'The Clearstory Web API allows you to access and build your own applications that utilize your Clearstory data. The Clearstory Web API provides a RESTful interface with JSON-formatted responses to access many Clearstory resources. Check back here for more information as we continue to expanding our API functionality.
Web API domain: `https://web-api.clearstory.build`'
x-logo:
url: https://www.clearstory.build/hubfs/CS_Logo_Landscape_Color_1200x400.svg
backgroundColor: '#FFFFFF'
altText: Clearstory
servers:
- url: https://web-api.clearstory.build/
tags:
- name: Labels
paths:
/labels/{id}:
get:
operationId: GetLabel
responses:
'200':
description: Ok
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Label'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedErrorResponse'
examples:
Example 1:
value:
message: unauthorized
'404':
description: Not Found
'422':
description: Unprocessable Entity
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
examples:
Example 1:
value:
success: false
errors:
- value: some-invalid-id
msg: Invalid value
param: id
location: params
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseJSON'
examples:
Example 1:
value:
message: something went wrong
description: Retrieves a Label that your company has created.
tags:
- Labels
security:
- ClearstoryAPIKey: []
parameters:
- description: The Label id
in: path
name: id
required: true
schema: {}
summary: Get label
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Get Label
/labels:
get:
operationId: ListCompanyLabels
responses:
'200':
description: Ok
content:
application/json:
schema:
properties:
records:
$ref: '#/components/schemas/Label'
limit:
type: number
format: double
offset:
type: number
format: double
count:
type: number
format: double
required:
- records
- limit
- offset
- count
type: object
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedErrorResponse'
examples:
Example 1:
value:
message: unauthorized
'422':
description: Unprocessable Entity
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
examples:
Example 1:
value:
success: false
errors:
- value: something
msg: Invalid value
param: inbox
location: query
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseJSON'
examples:
Example 1:
value:
message: something went wrong
description: Retrieves a list of Labels created and used by your company.
tags:
- Labels
security:
- ClearstoryAPIKey: []
parameters:
- in: query
name: sortBy
required: false
schema:
$ref: '#/components/schemas/LabelSortFields'
- in: query
name: sortDirection
required: false
schema:
$ref: '#/components/schemas/SortDirection'
- description: How many records to skip (can use also `skip`)
in: query
name: offset
required: false
schema:
format: int32
type: integer
minimum: 0
- description: How many records to take (can also use `take`)
in: query
name: limit
required: false
schema:
format: int32
type: integer
maximum: 100
- description: Filter to include Labels from their last updated timestamp (greater than or equal to) this ISO-8601 date, ie. `"2026-01-26T00:00:00Z"`. If no timezone is specified, UTC is used.
in: query
name: fromUpdatedAt
required: false
schema:
format: date-time
type: string
- description: Filter to include Labels until their last updated timestamp (less than or equal to) this ISO-8601 date, ie. `"2026-01-27T00:00:00Z"`. If no timezone is specified, UTC is used.
in: query
name: untilUpdatedAt
required: false
schema:
format: date-time
type: string
summary: List company labels
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: List Company Labels
components:
schemas:
SortDirection:
description: Sort direction options
enum:
- asc
- desc
type: string
Location:
type: string
enum:
- body
- cookies
- headers
- params
- query
LabelSortFields:
description: Sorting fields for labels.
enum:
- createdAt
- updatedAt
- name
type: string
ValidationError:
description: 'Note: This class is the same as defined by `express-validator` package.
It was just creating documentation issues with `tsoa` to use it from the package.'
properties:
location:
$ref: '#/components/schemas/Location'
param:
type: string
value: {}
msg: {}
nestedErrors:
items:
$ref: '#/components/schemas/ValidationError'
type: array
required:
- msg
type: object
additionalProperties: false
UnauthorizedErrorResponse:
properties:
message:
type: string
type: object
additionalProperties: false
Label:
properties:
id:
type: integer
format: int32
description: The label id, primary key.
name:
type: string
description: The actual label value that is displayed.
companyStandard:
type: boolean
description: 'If this is `true` then it means the label is seen by users in the company
when adding labels to things in the application. This is to allow a company
to prioritize an surface common labels. Users can create/add any label they like
to things. Since there''s no restriction, this just helps make others aware
of important, common, or "standard" labels the company uses.'
active:
type: boolean
updatedAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
required:
- id
type: object
additionalProperties: false
ValidationErrorResponse:
properties:
success:
type: boolean
errors:
items:
$ref: '#/components/schemas/ValidationError'
type: array
required:
- success
type: object
additionalProperties: false
ErrorResponseJSON:
properties:
message:
type: string
type: object
additionalProperties: false
securitySchemes:
ClearstoryAPIKey:
type: http
scheme: basic
in: header
name: Authorization
description: 'The Web API currently uses Basic Auth where the username is the _Key ID_ and password is the _Key Secret._ **These API keys provide access to your data at a company level.**
There is a limit to the number of API keys a given company can have generated and active at any given time. Keys can be disabled and created again.
It is important to note the _Secret Key_ value cannot be retrieved again. Should you lose it, you will need to generate a new API key.
Basic Auth works simply by including an `Authorization` header with a base64 encoded string value that combines your _**Key ID**_ and _**Key Secret**_ separated by a colon. ie. `476B2524694742F2B2ACA15ACE3518C9:112cd32ec0d015fe9c5709d14cef3201`.
Your final header should look something like: `Authorization: Basic YWRzZmFkZmFrZmpoM2sybGpma3dhMw==`'