Clearstory Customers API

The Customers API from Clearstory, for customers.

GitHub OpenAPI
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).

Operations 4

GET /customers List customers #
POST /customers Create customer #
GET /customers/{id} Get customer info #
PATCH /customers/{id} Update customer #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/extracker:extracker-customers-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

extracker-customers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Clearstory Web Customers 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: Customers
paths:
  /customers:
    get:
      operationId: ListCustomers
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                properties:
                  records:
                    $ref: '#/components/schemas/Customer'
                  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 a list of Customer info records for the entire company with optional filtering.
      tags:
      - Customers
      security:
      - ClearstoryAPIKey: []
      parameters:
      - description: How many records to skip
        in: query
        name: skip
        required: false
        schema:
          format: int32
          type: integer
      - description: How many records to retrieve
        in: query
        name: take
        required: false
        schema:
          format: int32
          type: integer
          maximum: 100
      - description: Which field to sort by
        in: query
        name: sortBy
        required: false
        schema:
          $ref: '#/components/schemas/CustomerSortFields'
      - description: The sorting direction
        in: query
        name: sortDirection
        required: false
        schema:
          $ref: '#/components/schemas/SortDirection'
      - description: Search by customer name
        in: query
        name: searchName
        required: false
        schema:
          type: string
      - description: Filter by office ID
        in: query
        name: officeId
        required: false
        schema:
          format: double
          type: number
      - description: Filter by your internal ID (exact match)
        in: query
        name: internalId
        required: false
        schema:
          type: string
      - description: Filter to include Customers 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 Customers 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 customers
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: List Customers
    post:
      operationId: CreateCustomer
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Customer'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
              examples:
                Example 1:
                  value:
                    message: something went wrong
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
              examples:
                Example 1:
                  value:
                    message: there was a problem with the request
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
              examples:
                Example 1:
                  value:
                    message: something went wrong
      description: 'Creates a new customer info record.


        Note: You may set an "internal ID" for this Customer record that relates to another system or other

        internal coding system you may have. This is optional, but it can help you better relate and identify

        customer information records internally.


        When you create a new Project, you can pass either the Clearstory ID for the Customer information record

        OR your own internal ID to associate/set the customer information with the project.


        Also note that you must pass a list of Clearstory Office IDs since Customer info records are associated

        with Offices. Each Office in your Company could have a different Customer info record with the same

        customer name, but different address. When you create a new Project, the given Customer info record

        must also belong to the same Office that the Project is being created in.'
      tags:
      - Customers
      security:
      - ClearstoryAPIKey: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCustomerParams'
      summary: Create customer
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Create Customer
  /customers/{id}:
    get:
      operationId: GetCustomerInfo
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDetail'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedErrorResponse'
              examples:
                Example 1:
                  value:
                    message: unauthorized
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
              examples:
                Example 1:
                  value:
                    message: something went wrong
      description: 'Retrieves an individual customer info record given its id.

        You can use this id to associate this information to a Project when creating a Project.


        Note: Your customer does not need a Clearstory account. This information is owned and used by you for

        your needs in the web application for display and filtering your data. It is also used for display

        in PDF documents that you create using Clearstory. For example, address information on T&M Tags

        and Change Order Requests that your company sends to your customer.'
      tags:
      - Customers
      security:
      - ClearstoryAPIKey: []
      parameters:
      - description: The customer info record id
        in: path
        name: id
        required: true
        schema:
          format: int32
          type: integer
      summary: Get customer info
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Get Customer Info
    patch:
      operationId: UpdateCustomer
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Customer'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
              examples:
                Example 1:
                  value:
                    message: something went wrong
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
              examples:
                Example 1:
                  value:
                    message: there was a problem with the request
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseJSON'
              examples:
                Example 1:
                  value:
                    message: something went wrong
      description: 'Updates a Customer information record.


        These records can associated to multiple projects (and across different offices, these are used company-wide),

        so you can easily and quickly update customer information on multiple projects at the same time.'
      tags:
      - Customers
      security:
      - ClearstoryAPIKey: []
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: double
          type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCustomerParams'
      summary: Update customer
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Update Customer
components:
  schemas:
    CustomerDetail:
      properties:
        id:
          type: integer
          format: int32
          description: The customer record id, primary key.
        name:
          type: string
          description: 'The customer''s name. This can be updated, but any PDF document created already

            will not update with the new name. Future PDFs will be created using the updated

            value though.'
        internalId:
          type: string
          description: 'Users can set an internal or custom ID value for a customer record.

            This is helpful in integrating with other systems.'
        creatorId:
          type: number
          format: double
          description: 'The user who created this customer info record.

            Note that customer info records may also be automatically created by users as part of accepting a project invite.

            In this case, the user who accepted the project invite would be the creator of this record.'
        address:
          type: string
        city:
          type: string
        state:
          type: string
        zipCode:
          type: string
        country:
          type: string
        phone:
          type: string
          description: The customer's phone number.
          maxLength: 255
        fax:
          type: string
          description: The customer's fax number.
          maxLength: 255
        offices:
          items:
            $ref: '#/components/schemas/Office'
          type: array
          description: The offices that this customer info record is available to be used by for projects.
      required:
      - id
      type: object
      additionalProperties: false
    CustomerSortFields:
      type: string
      enum:
      - createdAt
      - updatedAt
      - title
      - contractValue
      description: Valid sorting fields for projects.
    SortDirection:
      description: Sort direction options
      enum:
      - asc
      - desc
      type: string
    UpdateCustomerParams:
      properties:
        internalId:
          type: string
          description: An optional internal ID for your customer info record (this could be a reference to another system you use or other internal coding)
          minLength: 1
          maxLength: 150
        name:
          type: string
          description: The Customer name
          minLength: 1
          maxLength: 150
        address:
          type: string
          description: The customer's street address
          maxLength: 255
        city:
          type: string
          description: The customer's city
          maxLength: 75
        state:
          type: string
          description: The customer's state (prefer using US state abbreviation, but not required)
          maxLength: 50
        zipCode:
          type: string
          description: The customer's postal code
          maxLength: 25
        country:
          type: string
          description: The customer's country (prefer using country code, but not required)
          maxLength: 75
        phone:
          type: string
          description: The customer's phone number
          maxLength: 255
        fax:
          type: string
          description: The customer's fax number
          maxLength: 255
        lat:
          type: number
          format: double
          description: The customer's latitude
        lng:
          type: number
          format: double
          description: The customer's longitude
      type: object
      additionalProperties: false
    UnauthorizedErrorResponse:
      properties:
        message:
          type: string
      type: object
      additionalProperties: false
    CreateCustomerParams:
      properties:
        creatorId:
          type: integer
          format: int32
          description: The creator id is a User id of a Company user (if not set, the user ID who owns the API key will be used)
        internalId:
          type: string
          description: An optional internal ID for your customer info record (this could be a reference to another system you use or other internal coding)
          minLength: 1
          maxLength: 150
        officeIds:
          items:
            type: number
            format: double
          type: array
          description: A list of Clearstory Office IDs this customer info record should be available to be used by
        name:
          type: string
          description: The Customer name
          minLength: 1
          maxLength: 150
        address:
          type: string
          description: The customer's street address
          maxLength: 255
        city:
          type: string
          description: The customer's city
          maxLength: 75
        state:
          type: string
          description: The customer's state (prefer using US state abbreviation, but not required)
          maxLength: 50
        zipCode:
          type: string
          description: The customer's postal code
          maxLength: 25
        country:
          type: string
          description: The customer's country (prefer using country code, but not required)
          maxLength: 75
        phone:
          type: string
          description: The customer's phone number
          maxLength: 255
        fax:
          type: string
          description: The customer's fax number
          maxLength: 255
        lat:
          type: number
          format: double
          description: The customer's latitude
        lng:
          type: number
          format: double
          description: The customer's longitude
      required:
      - officeIds
      - name
      type: object
      additionalProperties: false
    Customer:
      properties:
        id:
          type: integer
          format: int32
          description: The customer record id, primary key.
        name:
          type: string
          description: 'The customer''s name. This can be updated, but any PDF document created already

            will not update with the new name. Future PDFs will be created using the updated

            value though.'
        internalId:
          type: string
          description: 'Users can set an internal or custom ID value for a customer record.

            This is helpful in integrating with other systems.'
        creatorId:
          type: number
          format: double
          description: 'The user who created this customer info record.

            Note that customer info records may also be automatically created by users as part of accepting a project invite.

            In this case, the user who accepted the project invite would be the creator of this record.'
        address:
          type: string
        city:
          type: string
        state:
          type: string
        zipCode:
          type: string
        country:
          type: string
        phone:
          type: string
          description: The customer's phone number.
          maxLength: 255
        fax:
          type: string
          description: The customer's fax number.
          maxLength: 255
      required:
      - id
      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==`'