Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Clearstory Web Reason Categories 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: Reason Categories
paths:
/reason-categories:
get:
operationId: ListReasonCategories
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/ReasonCategoriesListResponse'
'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 Reason Categories belonging to the requesting company.
tags:
- Reason Categories
security:
- ClearstoryAPIKey: []
parameters: []
summary: List reason categories
x-summary-source: derived
x-operation-id-source: normalized
x-operation-id-original: List Reason Categories
components:
schemas:
CorReasonCategory:
properties:
id:
type: string
name:
type: string
description:
type: string
isArchived:
type: boolean
isDefault:
type: boolean
sortOrder:
type: number
format: double
reasonCategoryGroup:
allOf:
- $ref: '#/components/schemas/CorReasonCategoryGroup'
required:
- id
type: object
additionalProperties: false
UnauthorizedErrorResponse:
properties:
message:
type: string
type: object
additionalProperties: false
ReasonCategoriesListResponse:
properties:
count:
type: number
format: double
records:
items:
$ref: '#/components/schemas/CorReasonCategory'
type: array
required:
- count
- records
type: object
additionalProperties: false
CorReasonCategoryGroup:
properties:
id:
type: string
name:
type: string
isArchived:
type: boolean
isDefault:
type: boolean
sortOrder:
type: number
format: double
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==`'