Clearstory Companies API
The Companies API from Clearstory, for companies.
The Companies API from Clearstory, for companies.
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-companies-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 Companies 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: Companies
paths:
/companies/current:
get:
operationId: GetCompanyInfo
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyDetail'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedErrorResponse'
examples:
Example 1:
value:
message: unauthorized
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseJSON'
examples:
Example 1:
value:
message: something went wrong
description: Retrieves company information for the company belonging to the requesting API token.
tags:
- Companies
security:
- ClearstoryAPIKey: []
parameters: []
summary: Get company info
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Get Company Info
/companies/current/users:
get:
operationId: GetCompanyUsers
responses:
'200':
description: Ok
content:
application/json:
schema:
properties:
records:
$ref: '#/components/schemas/User'
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
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseJSON'
examples:
Example 1:
value:
message: something went wrong
description: Retrieves the users belonging to the company belonging to the requesting API token.
tags:
- Companies
security:
- ClearstoryAPIKey: []
parameters:
- in: query
name: sortBy
required: false
schema:
$ref: '#/components/schemas/CompanyUserSortFields'
- 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 by exact email match
in: query
name: email
required: false
schema:
type: string
- description: Filter to include Users 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 Users 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: Get company users
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Get Company Users
/companies/current/offices:
get:
operationId: GetCompanyOffices
responses:
'200':
description: Ok
content:
application/json:
schema:
properties:
records:
$ref: '#/components/schemas/Office'
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
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseJSON'
examples:
Example 1:
value:
message: something went wrong
description: Retrieves the offices belonging to the company belonging to the requesting API token.
tags:
- Companies
security:
- ClearstoryAPIKey: []
parameters:
- in: query
name: sortBy
required: false
schema:
$ref: '#/components/schemas/CompanyOfficeSortFields'
- 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 Offices 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 Offices 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: Get company offices
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Get Company Offices
/companies/current/divisions:
get:
operationId: GetCompanyDivisions
responses:
'200':
description: Ok
content:
application/json:
schema:
properties:
records:
items:
$ref: '#/components/schemas/CompanyDivisionRecord'
type: array
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
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseJSON'
examples:
Example 1:
value:
message: something went wrong
description: 'Retrieves the divisions being used by the company belonging to the requesting API token.
Note: Division values are restricted to an enumerated list of strings. Users and projects may
optionally be associated with a division, but this value is not free-form and this association
is not an actual database relationship. It is more of a label, but can change application behavior.
There are various filters in the web application UI for division and default rates may be
assigned to divisions to use on newly created projects instead of an office''s default rates.
It would be uncommon to see a very long list of divisions returned from this endpoint.'
tags:
- Companies
security:
- ClearstoryAPIKey: []
parameters:
- 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 Divisions 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 Divisions 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: Get company divisions
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: Get Company Divisions
components:
schemas:
User:
properties:
id:
type: integer
format: int32
description: The user id, primary key.
firstName:
type: string
description: The first name of the creator/user.
lastName:
type: string
description: The last name of the creator/user.
email:
type: string
description: The user's email address (they also login with this).
format: email
companyId:
type: integer
format: int32
roleId:
type: integer
format: int32
description: 'A basic role id, note that there are also more granular permissions used
by the system in certain areas.
`2 = Account Owner`
`3 = Admin`
`4 = Project Manager`
`5 = Field User`'
roleName:
type: string
description: A human friendly version of the user's basic role; Account Owner, Admin, Project Manager, or Field User.
company:
$ref: '#/components/schemas/Company'
offices:
$ref: '#/components/schemas/Office'
description: Users can belong to multiple offices within a company.
updatedAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
required:
- id
type: object
additionalProperties: false
Company:
properties:
id:
type: integer
format: int32
name:
type: string
domain:
type: string
address:
type: string
address2:
type: string
city:
type: string
state:
type: string
zipCode:
type: string
country:
type: string
phone:
type: string
fax:
type: string
divisionsEnabled:
type: boolean
tzName:
type: string
updatedAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
required:
- id
type: object
additionalProperties: false
SortDirection:
description: Sort direction options
enum:
- asc
- desc
type: string
CompanyDivisionRecord:
description: 'There isn''t much to a division, it''s a value from a list of enumerated strings.
However, companies do configure which divisions they use. These company division records
indicate which are in use.'
properties:
division:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
required:
- division
- createdAt
- updatedAt
type: object
additionalProperties: false
CompanyDetail:
properties:
id:
type: integer
format: int32
name:
type: string
domain:
type: string
description: 'The associated email domain for the company.
This helps identify other users who may be part of the same company upon sign up.'
address:
type: string
address2:
type: string
city:
type: string
state:
type: string
zipCode:
type: string
country:
type: string
phone:
type: string
fax:
type: string
divisionsEnabled:
type: boolean
tzName:
type: string
updatedAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
logoSignedUrl:
type: string
required:
- id
- updatedAt
- createdAt
type: object
additionalProperties: false
CompanyOfficeSortFields:
type: string
enum:
- createdAt
- updatedAt
- name
description: 'Valid sorting fields for change notifications.
Note that the accepted sorting field values coming from request input are going to be uniform
and use camelCase. The actual values that will end up being needed can be camelCase or snake_case.
Consumers of the API will be able to rely upon just using camelCase field names this way.'
CompanyUserSortFields:
type: string
enum:
- createdAt
- updatedAt
- email
- firstName
- lastName
description: 'Valid sorting fields for change notifications.
Note that the accepted sorting field values coming from request input are going to be uniform
and use camelCase. The actual values that will end up being needed can be camelCase or snake_case.
Consumers of the API will be able to rely upon just using camelCase field names this way.'
UnauthorizedErrorResponse:
properties:
message:
type: string
type: object
additionalProperties: false
Office:
properties:
id:
type: integer
format: int32
name:
type: string
description: 'The office name is only seen internally. It is not seen by other parties.
For example "Main" or "San Francisco" are common examples.'
businessName:
type: string
description: 'An optional business name that will be used instead of the company name
throughout the application, in the context of projects from this office,
for other parties. So when a customer sees their contractor''s company name,
it is derived from their contractor''s project''s office''s business name if set.
Otherwise it will be the contractor''s company name.'
address:
type: string
city:
type: string
state:
type: string
country:
type: string
zipCode:
type: string
phone:
type: string
fax:
type: string
lat:
type: number
format: double
lng:
type: number
format: double
customId:
type: string
description: 'An internal or custom id users can assign their office.
This can help when integrating with other systems.'
tzName:
type: string
description: 'The timezone the office is set to. This is important for PDF documents that get
generated, reporting, and more.'
regionId:
type: number
format: double
updatedAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
required:
- id
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==`'