> ## Documentation Index
> Fetch the complete documentation index at: https://developer.folk.app/llms.txt
> Use this file to discover all available pages before exploring further.

# (Beta) Create a dashboard

> Create a dashboard in a group the user can edit, for its people, its companies or one of its object types, with the charts sent, in that order, each as "create a chart" takes it. Only the charts sent are created, possibly none: unlike in the app, a new dashboard gets no default chart. A chart that would not be working refuses the whole request, and nothing is created. A dashboard holds at most 100 charts.<br/><Warning>This endpoint is currently in open beta. The API surface may change as we iterate based on feedback.</Warning>



## OpenAPI

````yaml /schemas/2025-06-09.json post /v1/dashboards
openapi: 3.1.0
info:
  title: Folk External API
  description: >-
    Folk's public REST API lets you manage workspaces, groups, contacts, and
    real-time triggers.
  version: '2025-06-09'
  contact:
    name: folk
    email: tech@folk.app
    url: https://folk.app
servers:
  - url: https://api.folk.app
    description: Folk's public API production base URL.
    x-internal: false
security: []
tags:
  - name: Campaigns
    description: >-
      Operations related to campaigns: emails, or sequences of emails, sent to
      people or companies, and their messages.
  - name: Companies
    description: Operations related to companies.
  - name: Credits
    description: Operations related to credits.
  - name: Custom objects
    description: >-
      Operations related to objects of any type in a group, such as deals. Every
      object type shares these endpoints, with its name given as the
      `objectType` path parameter.
  - name: Dashboards
    description: Operations related to dashboards.
  - name: Groups
    description: Operations related to groups.
  - name: Group members
    description: Operations related to group members.
  - name: Group custom fields
    description: Operations related to group custom fields.
  - name: Interactions
    description: Operations related to interactions.
  - name: Notes
    description: Operations related to notes.
  - name: People
    description: Operations related to people.
  - name: Person enrichments
    description: Operations related to person enrichments.
  - name: Reminders
    description: Operations related to reminders.
  - name: Tasks
    description: Operations related to tasks.
  - name: Users
    description: Operations related to users.
  - name: Views
    description: Operations related to views.
  - name: Webhooks
    description: Operations related to webhooks.
paths:
  /v1/dashboards:
    post:
      tags:
        - Dashboards
      summary: Create a dashboard
      description: >-
        Create a dashboard in a group the user can edit, for its people, its
        companies or one of its object types, with the charts sent, in that
        order, each as "create a chart" takes it. Only the charts sent are
        created, possibly none: unlike in the app, a new dashboard gets no
        default chart. A chart that would not be working refuses the whole
        request, and nothing is created. A dashboard holds at most 100
        charts.<br/><Warning>This endpoint is currently in open beta. The API
        surface may change as we iterate based on feedback.</Warning>
      operationId: createDashboard
      parameters:
        - schema:
            type: string
            maxLength: 255
            description: >-
              A unique key, such as a UUID, that makes retrying this request
              safe: a retry with the same key and body returns the original
              response without running the operation again. Keys are kept for 24
              hours after the request completes.
            example: 8e03978e-40d5-43e8-bc93-6894a57f9324
          required: false
          description: >-
            A unique key, such as a UUID, that makes retrying this request safe:
            a retry with the same key and body returns the original response
            without running the operation again. Keys are kept for 24 hours
            after the request completes.
          name: Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                groupId:
                  type: string
                  minLength: 40
                  maxLength: 40
                  description: >-
                    The group to create the dashboard in. A dashboard never
                    changes group.
                  example: grp_92ab3f1c-0386-434d-82d7-a91eb6badd71
                name:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: The name of the dashboard, as shown in the app.
                  example: Pipeline
                entityType:
                  type: string
                  maxLength: 500
                  description: >-
                    The entity type the charts of the dashboard cover: `person`,
                    `company`, or the name of an object type of the group. A
                    dashboard never changes entity type.
                  example: person
                charts:
                  type: array
                  items:
                    oneOf:
                      - type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 500
                            description: The name of the chart, as shown in the app.
                            example: Leads by status
                          filter:
                            type:
                              - object
                              - 'null'
                            properties:
                              combinator:
                                type: string
                                enum:
                                  - and
                                  - or
                                description: The logical operator combining the conditions.
                                example: and
                              conditions:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    field:
                                      type: string
                                      maxLength: 1000
                                      description: >-
                                        The field the condition applies to, with
                                        the same keys as the filters of the
                                        search endpoints, e.g. `jobTitle`,
                                        `company.industry` or
                                        `customFieldValues.<groupId>.<Field
                                        name>`.
                                      example: jobTitle
                                    operator:
                                      type: string
                                      enum:
                                        - eq
                                        - not_eq
                                        - like
                                        - not_like
                                        - gt
                                        - lt
                                        - in
                                        - all
                                        - not_in
                                        - empty
                                        - not_empty
                                      example: like
                                    value:
                                      anyOf:
                                        - type: string
                                          maxLength: 500
                                        - type: number
                                        - type: array
                                          items:
                                            type: string
                                            maxLength: 500
                                          maxItems: 100
                                        - type: array
                                          items:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    maxLength: 64
                                                required:
                                                  - id
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  email:
                                                    type: string
                                                    maxLength: 254
                                                required:
                                                  - email
                                                additionalProperties: false
                                          maxItems: 100
                                      description: >-
                                        The value of the condition:

                                        - a single value for `eq`, `not_eq`,
                                        `like`, `not_like`, `gt` and `lt` on
                                        text, number and date fields;

                                        - a list for `in`, `all` and `not_in`,
                                        and for `eq` and `not_eq` on select,
                                        user and reference fields, where they
                                        mean "exactly these values";

                                        - absent for `empty` and `not_empty`.


                                        Numbers are given as a number or a
                                        string, select options are given by
                                        label, users by `{ id }` or `{ email }`,
                                        people, companies and groups by `{ id
                                        }`, dates as `YYYY-MM-DD` or relative
                                        dates (`today`, `yesterday`, `tomorrow`,
                                        `7-days-ago`, `in-3-months`).
                                      example: engineer
                                  required:
                                    - field
                                    - operator
                                  additionalProperties: false
                                  description: A condition of the filter.
                                maxItems: 50
                                description: >-
                                  The conditions of the filter, in order, at
                                  most 50. The same field can appear in several
                                  conditions. An empty list means no filter.
                            required:
                              - combinator
                              - conditions
                            additionalProperties: false
                            description: >-
                              The filter of the chart, in the format of the
                              filter of a view, `null` or absent for no filter.
                              The chart only covers the records that match it.
                              It takes the custom fields of the dashboard, and
                              the native fields
                              `interactionMetadata.workspace.lastInteractedAt`,
                              `createdAt` or `createdBy` on people, `createdAt`,
                              `createdBy` or `name` on companies and objects.
                          type:
                            type: string
                            enum:
                              - metric
                          measure:
                            oneOf:
                              - type: object
                                properties:
                                  aggregation:
                                    type: string
                                    enum:
                                      - count
                                  field:
                                    type: string
                                    maxLength: 1000
                                    description: >-
                                      The field to count the records that have a
                                      value in: a `numericField`, `singleSelect`
                                      or `multipleSelect` custom field. Absent
                                      to count every record. Fields are named
                                      with the keys of the filter of a view:
                                      `customFieldValues.grp_<id>.<Name>` for a
                                      group field, `customFieldValues.<Name>`
                                      for an object field, `createdAt`,
                                      `addedToGroupAt` and `createdBy` for the
                                      native ones.
                                    example: >-
                                      customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                required:
                                  - aggregation
                                additionalProperties: false
                                title: Count
                                description: >-
                                  The number of records the chart covers or,
                                  with `field`, the number of records with a
                                  value in the field.
                              - type: object
                                properties:
                                  aggregation:
                                    type: string
                                    enum:
                                      - sum
                                      - average
                                  field:
                                    type: string
                                    maxLength: 1000
                                    description: >-
                                      The field to sum or to average: `sum`
                                      takes a `numericField` custom field,
                                      `average` takes a `numericField` custom
                                      field. Fields are named with the keys of
                                      the filter of a view:
                                      `customFieldValues.grp_<id>.<Name>` for a
                                      group field, `customFieldValues.<Name>`
                                      for an object field, `createdAt`,
                                      `addedToGroupAt` and `createdBy` for the
                                      native ones.
                                    example: >-
                                      customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                required:
                                  - aggregation
                                  - field
                                additionalProperties: false
                                title: Sum or average
                                description: The sum or the average of a number field.
                              - type: object
                                properties:
                                  aggregation:
                                    type: string
                                    enum:
                                      - ratio
                                  field:
                                    type: string
                                    maxLength: 1000
                                    description: >-
                                      The field of the choice: a `singleSelect`
                                      or `multipleSelect` custom field. Fields
                                      are named with the keys of the filter of a
                                      view: `customFieldValues.grp_<id>.<Name>`
                                      for a group field,
                                      `customFieldValues.<Name>` for an object
                                      field, `createdAt`, `addedToGroupAt` and
                                      `createdBy` for the native ones.
                                    example: >-
                                      customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                  choice:
                                    type: string
                                    maxLength: 100
                                    description: >-
                                      The label of the choice the ratio is
                                      computed on.
                                    example: Closed-won
                                required:
                                  - aggregation
                                  - field
                                  - choice
                                additionalProperties: false
                                title: Ratio of a choice
                                description: >-
                                  The share of the records with the choice,
                                  among the records that have a value in the
                                  field. Only available on `metric` charts. A
                                  rate such as a win rate or a conversion rate
                                  usually needs a filter on the outcome choices,
                                  for instance `Status` in `Closed-won` or
                                  `Closed-lost`: without it, the records still
                                  in progress, such as open deals, count among
                                  the records with a value.
                            description: What the number of the chart is.
                          groupBy:
                            type: 'null'
                            description: >-
                              `null` or absent: this type of chart has no
                              group-by.
                          breakdownBy:
                            type: 'null'
                            description: >-
                              `null` or absent: this type of chart has no
                              breakdown-by.
                        required:
                          - name
                          - type
                          - measure
                        additionalProperties: false
                        title: Metric chart
                        description: A single number.
                        example:
                          name: Win rate
                          type: metric
                          measure:
                            aggregation: ratio
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                            choice: Closed-won
                          groupBy: null
                          breakdownBy: null
                          filter: null
                      - type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 500
                            description: The name of the chart, as shown in the app.
                            example: Leads by status
                          filter:
                            type:
                              - object
                              - 'null'
                            properties:
                              combinator:
                                type: string
                                enum:
                                  - and
                                  - or
                                description: The logical operator combining the conditions.
                                example: and
                              conditions:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    field:
                                      type: string
                                      maxLength: 1000
                                      description: >-
                                        The field the condition applies to, with
                                        the same keys as the filters of the
                                        search endpoints, e.g. `jobTitle`,
                                        `company.industry` or
                                        `customFieldValues.<groupId>.<Field
                                        name>`.
                                      example: jobTitle
                                    operator:
                                      type: string
                                      enum:
                                        - eq
                                        - not_eq
                                        - like
                                        - not_like
                                        - gt
                                        - lt
                                        - in
                                        - all
                                        - not_in
                                        - empty
                                        - not_empty
                                      example: like
                                    value:
                                      anyOf:
                                        - type: string
                                          maxLength: 500
                                        - type: number
                                        - type: array
                                          items:
                                            type: string
                                            maxLength: 500
                                          maxItems: 100
                                        - type: array
                                          items:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    maxLength: 64
                                                required:
                                                  - id
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  email:
                                                    type: string
                                                    maxLength: 254
                                                required:
                                                  - email
                                                additionalProperties: false
                                          maxItems: 100
                                      description: >-
                                        The value of the condition:

                                        - a single value for `eq`, `not_eq`,
                                        `like`, `not_like`, `gt` and `lt` on
                                        text, number and date fields;

                                        - a list for `in`, `all` and `not_in`,
                                        and for `eq` and `not_eq` on select,
                                        user and reference fields, where they
                                        mean "exactly these values";

                                        - absent for `empty` and `not_empty`.


                                        Numbers are given as a number or a
                                        string, select options are given by
                                        label, users by `{ id }` or `{ email }`,
                                        people, companies and groups by `{ id
                                        }`, dates as `YYYY-MM-DD` or relative
                                        dates (`today`, `yesterday`, `tomorrow`,
                                        `7-days-ago`, `in-3-months`).
                                      example: engineer
                                  required:
                                    - field
                                    - operator
                                  additionalProperties: false
                                  description: A condition of the filter.
                                maxItems: 50
                                description: >-
                                  The conditions of the filter, in order, at
                                  most 50. The same field can appear in several
                                  conditions. An empty list means no filter.
                            required:
                              - combinator
                              - conditions
                            additionalProperties: false
                            description: >-
                              The filter of the chart, in the format of the
                              filter of a view, `null` or absent for no filter.
                              The chart only covers the records that match it.
                              It takes the custom fields of the dashboard, and
                              the native fields
                              `interactionMetadata.workspace.lastInteractedAt`,
                              `createdAt` or `createdBy` on people, `createdAt`,
                              `createdBy` or `name` on companies and objects.
                          type:
                            type: string
                            enum:
                              - bar
                              - pie
                          measure:
                            oneOf:
                              - type: object
                                properties:
                                  aggregation:
                                    type: string
                                    enum:
                                      - count
                                  field:
                                    type: string
                                    maxLength: 1000
                                    description: >-
                                      The field to count the records that have a
                                      value in: a `numericField`, `singleSelect`
                                      or `multipleSelect` custom field. Absent
                                      to count every record. Fields are named
                                      with the keys of the filter of a view:
                                      `customFieldValues.grp_<id>.<Name>` for a
                                      group field, `customFieldValues.<Name>`
                                      for an object field, `createdAt`,
                                      `addedToGroupAt` and `createdBy` for the
                                      native ones.
                                    example: >-
                                      customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                required:
                                  - aggregation
                                additionalProperties: false
                                title: Count
                                description: >-
                                  The number of records the chart covers or,
                                  with `field`, the number of records with a
                                  value in the field.
                              - type: object
                                properties:
                                  aggregation:
                                    type: string
                                    enum:
                                      - sum
                                      - average
                                  field:
                                    type: string
                                    maxLength: 1000
                                    description: >-
                                      The field to sum or to average: `sum`
                                      takes a `numericField` custom field,
                                      `average` takes a `numericField` custom
                                      field. Fields are named with the keys of
                                      the filter of a view:
                                      `customFieldValues.grp_<id>.<Name>` for a
                                      group field, `customFieldValues.<Name>`
                                      for an object field, `createdAt`,
                                      `addedToGroupAt` and `createdBy` for the
                                      native ones.
                                    example: >-
                                      customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                required:
                                  - aggregation
                                  - field
                                additionalProperties: false
                                title: Sum or average
                                description: The sum or the average of a number field.
                            description: What each number of the chart is.
                          groupBy:
                            type: object
                            properties:
                              field:
                                type: string
                                maxLength: 1000
                                description: >-
                                  The field. Fields are named with the keys of
                                  the filter of a view:
                                  `customFieldValues.grp_<id>.<Name>` for a
                                  group field, `customFieldValues.<Name>` for an
                                  object field, `createdAt`, `addedToGroupAt`
                                  and `createdBy` for the native ones.
                                example: >-
                                  customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                            required:
                              - field
                            additionalProperties: false
                            description: >-
                              One bar or slice per value of this field. It takes
                              a `multipleSelect`, `userField`, `singleSelect`,
                              `dateField` or `numericField` custom field of the
                              dashboard, or a native field: `addedToGroupAt`,
                              `createdAt` or `createdBy` on people and
                              companies, `createdAt` or `createdBy` on objects.
                              A date is split by month, and its rows are
                              labelled `YYYY-MM`.
                          breakdownBy:
                            type: 'null'
                            description: >-
                              `null` or absent: this type of chart has no
                              breakdown-by.
                        required:
                          - name
                          - type
                          - measure
                          - groupBy
                        additionalProperties: false
                        title: Bar or pie chart
                        description: One bar or slice per value of a field.
                        example:
                          name: Leads by status
                          type: pie
                          measure:
                            aggregation: count
                          groupBy:
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                          breakdownBy: null
                          filter: null
                      - type: object
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 500
                            description: The name of the chart, as shown in the app.
                            example: Leads by status
                          filter:
                            type:
                              - object
                              - 'null'
                            properties:
                              combinator:
                                type: string
                                enum:
                                  - and
                                  - or
                                description: The logical operator combining the conditions.
                                example: and
                              conditions:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    field:
                                      type: string
                                      maxLength: 1000
                                      description: >-
                                        The field the condition applies to, with
                                        the same keys as the filters of the
                                        search endpoints, e.g. `jobTitle`,
                                        `company.industry` or
                                        `customFieldValues.<groupId>.<Field
                                        name>`.
                                      example: jobTitle
                                    operator:
                                      type: string
                                      enum:
                                        - eq
                                        - not_eq
                                        - like
                                        - not_like
                                        - gt
                                        - lt
                                        - in
                                        - all
                                        - not_in
                                        - empty
                                        - not_empty
                                      example: like
                                    value:
                                      anyOf:
                                        - type: string
                                          maxLength: 500
                                        - type: number
                                        - type: array
                                          items:
                                            type: string
                                            maxLength: 500
                                          maxItems: 100
                                        - type: array
                                          items:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    maxLength: 64
                                                required:
                                                  - id
                                                additionalProperties: false
                                              - type: object
                                                properties:
                                                  email:
                                                    type: string
                                                    maxLength: 254
                                                required:
                                                  - email
                                                additionalProperties: false
                                          maxItems: 100
                                      description: >-
                                        The value of the condition:

                                        - a single value for `eq`, `not_eq`,
                                        `like`, `not_like`, `gt` and `lt` on
                                        text, number and date fields;

                                        - a list for `in`, `all` and `not_in`,
                                        and for `eq` and `not_eq` on select,
                                        user and reference fields, where they
                                        mean "exactly these values";

                                        - absent for `empty` and `not_empty`.


                                        Numbers are given as a number or a
                                        string, select options are given by
                                        label, users by `{ id }` or `{ email }`,
                                        people, companies and groups by `{ id
                                        }`, dates as `YYYY-MM-DD` or relative
                                        dates (`today`, `yesterday`, `tomorrow`,
                                        `7-days-ago`, `in-3-months`).
                                      example: engineer
                                  required:
                                    - field
                                    - operator
                                  additionalProperties: false
                                  description: A condition of the filter.
                                maxItems: 50
                                description: >-
                                  The conditions of the filter, in order, at
                                  most 50. The same field can appear in several
                                  conditions. An empty list means no filter.
                            required:
                              - combinator
                              - conditions
                            additionalProperties: false
                            description: >-
                              The filter of the chart, in the format of the
                              filter of a view, `null` or absent for no filter.
                              The chart only covers the records that match it.
                              It takes the custom fields of the dashboard, and
                              the native fields
                              `interactionMetadata.workspace.lastInteractedAt`,
                              `createdAt` or `createdBy` on people, `createdAt`,
                              `createdBy` or `name` on companies and objects.
                          type:
                            type: string
                            enum:
                              - stackedBar
                              - groupedBar
                          measure:
                            oneOf:
                              - type: object
                                properties:
                                  aggregation:
                                    type: string
                                    enum:
                                      - count
                                  field:
                                    type: string
                                    maxLength: 1000
                                    description: >-
                                      The field to count the records that have a
                                      value in: a `numericField`, `singleSelect`
                                      or `multipleSelect` custom field. Absent
                                      to count every record. Fields are named
                                      with the keys of the filter of a view:
                                      `customFieldValues.grp_<id>.<Name>` for a
                                      group field, `customFieldValues.<Name>`
                                      for an object field, `createdAt`,
                                      `addedToGroupAt` and `createdBy` for the
                                      native ones.
                                    example: >-
                                      customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                required:
                                  - aggregation
                                additionalProperties: false
                                title: Count
                                description: >-
                                  The number of records the chart covers or,
                                  with `field`, the number of records with a
                                  value in the field.
                              - type: object
                                properties:
                                  aggregation:
                                    type: string
                                    enum:
                                      - sum
                                      - average
                                  field:
                                    type: string
                                    maxLength: 1000
                                    description: >-
                                      The field to sum or to average: `sum`
                                      takes a `numericField` custom field,
                                      `average` takes a `numericField` custom
                                      field. Fields are named with the keys of
                                      the filter of a view:
                                      `customFieldValues.grp_<id>.<Name>` for a
                                      group field, `customFieldValues.<Name>`
                                      for an object field, `createdAt`,
                                      `addedToGroupAt` and `createdBy` for the
                                      native ones.
                                    example: >-
                                      customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                required:
                                  - aggregation
                                  - field
                                additionalProperties: false
                                title: Sum or average
                                description: The sum or the average of a number field.
                            description: What each number of the chart is.
                          groupBy:
                            type: object
                            properties:
                              field:
                                type: string
                                maxLength: 1000
                                description: >-
                                  The field. Fields are named with the keys of
                                  the filter of a view:
                                  `customFieldValues.grp_<id>.<Name>` for a
                                  group field, `customFieldValues.<Name>` for an
                                  object field, `createdAt`, `addedToGroupAt`
                                  and `createdBy` for the native ones.
                                example: >-
                                  customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                            required:
                              - field
                            additionalProperties: false
                            description: >-
                              One bar or slice per value of this field. It takes
                              a `multipleSelect`, `userField`, `singleSelect`,
                              `dateField` or `numericField` custom field of the
                              dashboard, or a native field: `addedToGroupAt`,
                              `createdAt` or `createdBy` on people and
                              companies, `createdAt` or `createdBy` on objects.
                              A date is split by month, and its rows are
                              labelled `YYYY-MM`.
                          breakdownBy:
                            type: object
                            properties:
                              field:
                                type: string
                                maxLength: 1000
                                description: >-
                                  The field. Fields are named with the keys of
                                  the filter of a view:
                                  `customFieldValues.grp_<id>.<Name>` for a
                                  group field, `customFieldValues.<Name>` for an
                                  object field, `createdAt`, `addedToGroupAt`
                                  and `createdBy` for the native ones.
                                example: >-
                                  customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                            required:
                              - field
                            additionalProperties: false
                            description: >-
                              Each bar broken down per value of this second
                              field. It takes a `multipleSelect`, `userField`,
                              `singleSelect`, `dateField` or `numericField`
                              custom field of the dashboard, or a native field:
                              `addedToGroupAt`, `createdAt` or `createdBy` on
                              people and companies, `createdAt` or `createdBy`
                              on objects. A date is split by month, and its rows
                              are labelled `YYYY-MM`.
                        required:
                          - name
                          - type
                          - measure
                          - groupBy
                          - breakdownBy
                        additionalProperties: false
                        title: Stacked or grouped bar chart
                        description: >-
                          One bar per value of a field, each broken down per
                          value of a second field.
                        example:
                          name: Deal amount by status and size
                          type: stackedBar
                          measure:
                            aggregation: sum
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Amount
                          groupBy:
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                          breakdownBy:
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Size
                          filter: null
                    description: >-
                      The settings of a chart, as a chart carries them once
                      read: its name, its type, what it measures, the fields it
                      is grouped and broken down by, and its filter. Which ones
                      it takes depends on its `type`. A chart must be working
                      once created: every field and choice it names must exist,
                      and be of a kind the type and the measure can use.
                  maxItems: 100
                  description: >-
                    The charts of the dashboard, in display order, each with the
                    settings of a chart to create. None by default. At most 100.
              required:
                - groupId
                - name
                - entityType
              additionalProperties: false
              description: >-
                A dashboard of a group, with its charts. Only the charts sent
                are created: unlike in the app, a dashboard gets no default
                chart. Every chart must be working: one that would not be
                refuses the whole dashboard.
      responses:
        '200':
          description: >-
            The created dashboard, as "Get a dashboard" returns it, with its
            charts and their data.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-RateLimit-Limit-Burst:
              $ref: '#/components/headers/X-RateLimit-Limit-Burst'
            X-RateLimit-Remaining-Burst:
              $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
            X-RateLimit-Reset-Burst:
              $ref: '#/components/headers/X-RateLimit-Reset-Burst'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: The id of the dashboard.
                        example: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                      name:
                        type: string
                        description: The name of the dashboard, as shown in the app.
                        example: Pipeline
                      groupId:
                        type: string
                        description: >-
                          The group the dashboard belongs to. A dashboard never
                          changes group.
                        example: grp_92ab3f1c-0386-434d-82d7-a91eb6badd71
                      entityType:
                        type: string
                        description: >-
                          The entity type the charts of the dashboard cover:
                          `person`, `company`, or the name of an object type of
                          the group.
                        example: person
                      createdAt:
                        type: string
                        format: date-time
                        description: >-
                          The date and time the dashboard was created, in ISO
                          format.
                        example: '2026-11-03T09:10:27.000Z'
                      updatedAt:
                        type:
                          - string
                          - 'null'
                        format: date-time
                        description: >-
                          The date and time the dashboard was last updated, in
                          ISO format. Equals `createdAt` until the dashboard is
                          first updated. Can be `null` on older dashboards.
                        example: '2026-11-12T10:05:19.000Z'
                      charts:
                        type: array
                        items:
                          anyOf:
                            - type: object
                              properties:
                                id:
                                  type: string
                                  description: The id of the chart.
                                  example: cht_5d2e7f10-0386-434d-82d7-a91eb6badd71
                                dashboardId:
                                  type: string
                                  description: The id of the dashboard of the chart.
                                  example: dsh_8c1a4b2d-0386-434d-82d7-a91eb6badd71
                                name:
                                  type: string
                                  description: The name of the chart, as shown in the app.
                                  example: Leads by status
                                filter:
                                  type:
                                    - object
                                    - 'null'
                                  properties:
                                    combinator:
                                      type: string
                                      enum:
                                        - and
                                        - or
                                      description: >-
                                        The logical operator combining the
                                        conditions.
                                      example: and
                                    conditions:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          field:
                                            type: string
                                            description: >-
                                              The field the condition applies to, with
                                              the same keys as the filters of the
                                              search endpoints, e.g. `jobTitle`,
                                              `company.industry` or
                                              `customFieldValues.<groupId>.<Field
                                              name>`.
                                            example: jobTitle
                                          operator:
                                            type: string
                                            enum:
                                              - eq
                                              - not_eq
                                              - like
                                              - not_like
                                              - gt
                                              - lt
                                              - in
                                              - all
                                              - not_in
                                              - empty
                                              - not_empty
                                            example: like
                                          value:
                                            anyOf:
                                              - type: string
                                              - type: array
                                                items:
                                                  type: string
                                              - type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    id:
                                                      type: string
                                                  required:
                                                    - id
                                            description: >-
                                              The value of the condition:

                                              - a single value for `eq`, `not_eq`,
                                              `like`, `not_like`, `gt` and `lt` on
                                              text, number and date fields;

                                              - a list for `in`, `all` and `not_in`,
                                              and for `eq` and `not_eq` on select,
                                              user and reference fields, where they
                                              mean "exactly these values";

                                              - absent for `empty` and `not_empty`.


                                              Select options are given by label,
                                              users, people, companies and groups by
                                              `{ id }`, dates as `YYYY-MM-DD` or
                                              relative dates (`today`, `yesterday`,
                                              `tomorrow`, `7-days-ago`,
                                              `in-3-months`).
                                            example: engineer
                                        required:
                                          - field
                                          - operator
                                        description: A condition of the filter.
                                      description: >-
                                        The conditions of the filter, in order.
                                        The same field can appear in several
                                        conditions.
                                  required:
                                    - combinator
                                    - conditions
                                  description: >-
                                    The filter of the chart, in the format of
                                    the filter of a view, `null` when the chart
                                    has no filter. The chart only covers the
                                    records that match it.
                                includeEmptyValues:
                                  type: boolean
                                  description: >-
                                    Whether the app shows the "No value" row of
                                    the chart. Set in the app only: it can not
                                    be changed through the API, and it does not
                                    change the rows returned here.
                                  example: true
                                createdAt:
                                  type: string
                                  format: date-time
                                  description: >-
                                    The date and time the chart was created, in
                                    ISO format.
                                  example: '2026-11-02T09:12:00.000Z'
                                updatedAt:
                                  type:
                                    - string
                                    - 'null'
                                  format: date-time
                                  description: >-
                                    The date and time the chart was last
                                    updated, in ISO format. Equals `createdAt`
                                    until the chart is first updated. Can be
                                    `null` on older charts.
                                  example: '2026-11-03T10:00:00.000Z'
                                status:
                                  type: string
                                  enum:
                                    - working
                                  description: >-
                                    The chart is working: every setting is valid
                                    for its type.
                                problem:
                                  type: 'null'
                                  description: '`null` on a working chart.'
                                type:
                                  type: string
                                  enum:
                                    - metric
                                measure:
                                  anyOf:
                                    - type: object
                                      properties:
                                        aggregation:
                                          type: string
                                          enum:
                                            - count
                                      required:
                                        - aggregation
                                      additionalProperties: false
                                      title: Count of records
                                      description: The number of records the chart covers.
                                    - type: object
                                      properties:
                                        aggregation:
                                          type: string
                                          enum:
                                            - count
                                            - sum
                                            - average
                                          description: >-
                                            `count`: the number of records that have
                                            a value in the field. `sum` and
                                            `average`: the sum or the average of a
                                            number field.
                                        field:
                                          type: string
                                          description: >-
                                            The field. Fields are named with the
                                            keys of the filter of a view:
                                            `customFieldValues.grp_<id>.<Name>` for
                                            a group field,
                                            `customFieldValues.<Name>` for an object
                                            field, `createdAt`, `addedToGroupAt` and
                                            `createdBy` for the native ones.
                                          example: >-
                                            customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                      required:
                                        - aggregation
                                        - field
                                      additionalProperties: false
                                      title: Aggregation of a field
                                      description: >-
                                        The number of records with a value in
                                        the field, or the sum or the average of
                                        a number field.
                                    - type: object
                                      properties:
                                        aggregation:
                                          type: string
                                          enum:
                                            - ratio
                                        field:
                                          type: string
                                          description: >-
                                            The field. Fields are named with the
                                            keys of the filter of a view:
                                            `customFieldValues.grp_<id>.<Name>` for
                                            a group field,
                                            `customFieldValues.<Name>` for an object
                                            field, `createdAt`, `addedToGroupAt` and
                                            `createdBy` for the native ones.
                                          example: >-
                                            customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                        choice:
                                          type: string
                                          description: >-
                                            The label of the choice the ratio is
                                            computed on.
                                          example: Closed-won
                                      required:
                                        - aggregation
                                        - field
                                        - choice
                                      additionalProperties: false
                                      title: Ratio of a choice
                                      description: >-
                                        The share of the records with the
                                        choice, among the records that have a
                                        value in the field. Only available on
                                        `metric` charts. A rate such as a win
                                        rate or a conversion rate usually needs
                                        a filter on the outcome choices, for
                                        instance `Status` in `Closed-won` or
                                        `Closed-lost`: without it, the records
                                        still in progress, such as open deals,
                                        count among the records with a value.
                                  description: What the number of the chart is.
                                groupBy:
                                  type: 'null'
                                  description: '`null`: this type of chart has no group-by.'
                                breakdownBy:
                                  type: 'null'
                                  description: >-
                                    `null`: this type of chart has no
                                    breakdown-by.
                                data:
                                  anyOf:
                                    - type: object
                                      properties:
                                        value:
                                          type:
                                            - number
                                            - 'null'
                                          description: >-
                                            The number the chart draws. `null` when
                                            there is nothing to compute: an average
                                            over no value, a ratio over no record
                                            with a value in the field.
                                          example: 10
                                        recordCount:
                                          type: integer
                                          description: >-
                                            The number of records (people, companies
                                            or objects) the chart covers, after its
                                            filter, each counted once.
                                          example: 10
                                      required:
                                        - value
                                        - recordCount
                                      additionalProperties: false
                                      title: Value
                                      description: The number of a count, sum or average.
                                    - type: object
                                      properties:
                                        value:
                                          type:
                                            - number
                                            - 'null'
                                          description: >-
                                            The number the chart draws. `null` when
                                            there is nothing to compute: an average
                                            over no value, a ratio over no record
                                            with a value in the field.
                                          example: 10
                                        matching:
                                          type: integer
                                          description: >-
                                            The number of records with the choice of
                                            the ratio.
                                          example: 2
                                        outOf:
                                          type: integer
                                          description: >-
                                            The number of records with a value in
                                            the field of the ratio: the ratio is
                                            `matching / outOf`. Records without a
                                            value are not part of the ratio, so
                                            `outOf` can be lower than `recordCount`.
                                          example: 9
                                        recordCount:
                                          type: integer
                                          description: >-
                                            The number of records (people, companies
                                            or objects) the chart covers, after its
                                            filter, each counted once.
                                          example: 10
                                      required:
                                        - value
                                        - matching
                                        - outOf
                                        - recordCount
                                      additionalProperties: false
                                      title: Ratio
                                      description: >-
                                        The number of a ratio, with the counts
                                        it is computed from.
                                  description: The number of a metric chart.
                              required:
                                - id
                                - dashboardId
                                - name
                                - filter
                                - includeEmptyValues
                                - createdAt
                                - updatedAt
                                - status
                                - problem
                                - type
                                - measure
                                - groupBy
                                - breakdownBy
                                - data
                              additionalProperties: false
                              title: Metric chart
                              description: 'A working metric chart: a single number.'
                              example:
                                id: cht_7a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d
                                dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                                name: Win rate
                                type: metric
                                measure:
                                  aggregation: ratio
                                  field: >-
                                    customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                  choice: Closed-won
                                groupBy: null
                                breakdownBy: null
                                filter: null
                                includeEmptyValues: true
                                status: working
                                problem: null
                                data:
                                  value: 0.2222
                                  matching: 2
                                  outOf: 9
                                  recordCount: 10
                                createdAt: '2026-11-03T09:14:10.000Z'
                                updatedAt: null
                            - type: object
                              properties:
                                id:
                                  type: string
                                  description: The id of the chart.
                                  example: cht_5d2e7f10-0386-434d-82d7-a91eb6badd71
                                dashboardId:
                                  type: string
                                  description: The id of the dashboard of the chart.
                                  example: dsh_8c1a4b2d-0386-434d-82d7-a91eb6badd71
                                name:
                                  type: string
                                  description: The name of the chart, as shown in the app.
                                  example: Leads by status
                                filter:
                                  type:
                                    - object
                                    - 'null'
                                  properties:
                                    combinator:
                                      type: string
                                      enum:
                                        - and
                                        - or
                                      description: >-
                                        The logical operator combining the
                                        conditions.
                                      example: and
                                    conditions:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          field:
                                            type: string
                                            description: >-
                                              The field the condition applies to, with
                                              the same keys as the filters of the
                                              search endpoints, e.g. `jobTitle`,
                                              `company.industry` or
                                              `customFieldValues.<groupId>.<Field
                                              name>`.
                                            example: jobTitle
                                          operator:
                                            type: string
                                            enum:
                                              - eq
                                              - not_eq
                                              - like
                                              - not_like
                                              - gt
                                              - lt
                                              - in
                                              - all
                                              - not_in
                                              - empty
                                              - not_empty
                                            example: like
                                          value:
                                            anyOf:
                                              - type: string
                                              - type: array
                                                items:
                                                  type: string
                                              - type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    id:
                                                      type: string
                                                  required:
                                                    - id
                                            description: >-
                                              The value of the condition:

                                              - a single value for `eq`, `not_eq`,
                                              `like`, `not_like`, `gt` and `lt` on
                                              text, number and date fields;

                                              - a list for `in`, `all` and `not_in`,
                                              and for `eq` and `not_eq` on select,
                                              user and reference fields, where they
                                              mean "exactly these values";

                                              - absent for `empty` and `not_empty`.


                                              Select options are given by label,
                                              users, people, companies and groups by
                                              `{ id }`, dates as `YYYY-MM-DD` or
                                              relative dates (`today`, `yesterday`,
                                              `tomorrow`, `7-days-ago`,
                                              `in-3-months`).
                                            example: engineer
                                        required:
                                          - field
                                          - operator
                                        description: A condition of the filter.
                                      description: >-
                                        The conditions of the filter, in order.
                                        The same field can appear in several
                                        conditions.
                                  required:
                                    - combinator
                                    - conditions
                                  description: >-
                                    The filter of the chart, in the format of
                                    the filter of a view, `null` when the chart
                                    has no filter. The chart only covers the
                                    records that match it.
                                includeEmptyValues:
                                  type: boolean
                                  description: >-
                                    Whether the app shows the "No value" row of
                                    the chart. Set in the app only: it can not
                                    be changed through the API, and it does not
                                    change the rows returned here.
                                  example: true
                                createdAt:
                                  type: string
                                  format: date-time
                                  description: >-
                                    The date and time the chart was created, in
                                    ISO format.
                                  example: '2026-11-02T09:12:00.000Z'
                                updatedAt:
                                  type:
                                    - string
                                    - 'null'
                                  format: date-time
                                  description: >-
                                    The date and time the chart was last
                                    updated, in ISO format. Equals `createdAt`
                                    until the chart is first updated. Can be
                                    `null` on older charts.
                                  example: '2026-11-03T10:00:00.000Z'
                                status:
                                  type: string
                                  enum:
                                    - working
                                  description: >-
                                    The chart is working: every setting is valid
                                    for its type.
                                problem:
                                  type: 'null'
                                  description: '`null` on a working chart.'
                                type:
                                  type: string
                                  enum:
                                    - bar
                                    - pie
                                measure:
                                  anyOf:
                                    - type: object
                                      properties:
                                        aggregation:
                                          type: string
                                          enum:
                                            - count
                                      required:
                                        - aggregation
                                      additionalProperties: false
                                      title: Count of records
                                      description: The number of records the chart covers.
                                    - type: object
                                      properties:
                                        aggregation:
                                          type: string
                                          enum:
                                            - count
                                            - sum
                                            - average
                                          description: >-
                                            `count`: the number of records that have
                                            a value in the field. `sum` and
                                            `average`: the sum or the average of a
                                            number field.
                                        field:
                                          type: string
                                          description: >-
                                            The field. Fields are named with the
                                            keys of the filter of a view:
                                            `customFieldValues.grp_<id>.<Name>` for
                                            a group field,
                                            `customFieldValues.<Name>` for an object
                                            field, `createdAt`, `addedToGroupAt` and
                                            `createdBy` for the native ones.
                                          example: >-
                                            customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                      required:
                                        - aggregation
                                        - field
                                      additionalProperties: false
                                      title: Aggregation of a field
                                      description: >-
                                        The number of records with a value in
                                        the field, or the sum or the average of
                                        a number field.
                                  description: What each number of the chart is.
                                groupBy:
                                  type: object
                                  properties:
                                    field:
                                      type: string
                                      description: >-
                                        The field. Fields are named with the
                                        keys of the filter of a view:
                                        `customFieldValues.grp_<id>.<Name>` for
                                        a group field,
                                        `customFieldValues.<Name>` for an object
                                        field, `createdAt`, `addedToGroupAt` and
                                        `createdBy` for the native ones.
                                      example: >-
                                        customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                  required:
                                    - field
                                  additionalProperties: false
                                  description: >-
                                    One bar or slice per value of this field. It
                                    takes a `multipleSelect`, `userField`,
                                    `singleSelect`, `dateField` or
                                    `numericField` custom field of the
                                    dashboard, or a native field:
                                    `addedToGroupAt`, `createdAt` or `createdBy`
                                    on people and companies, `createdAt` or
                                    `createdBy` on objects. A date is split by
                                    month, and its rows are labelled `YYYY-MM`.
                                breakdownBy:
                                  type: 'null'
                                  description: >-
                                    `null`: this type of chart has no
                                    breakdown-by.
                                data:
                                  type: object
                                  properties:
                                    recordCount:
                                      type: integer
                                      description: >-
                                        The number of records (people, companies
                                        or objects) the chart covers, after its
                                        filter, each counted once.
                                      example: 10
                                    overallValue:
                                      type:
                                        - number
                                        - 'null'
                                      description: >-
                                        The measure computed over all the
                                        records, ignoring the group-by and
                                        breakdown-by: it is not always the sum
                                        of the rows (average, field that can
                                        hold several values).
                                      example: 10
                                    rowsOverlap:
                                      type: boolean
                                      description: >-
                                        Whether a record can be in several rows:
                                        `true` when the group-by or breakdown-by
                                        field can hold several values (a
                                        multiple choice or user custom field,
                                        not `createdBy`), so the rows add up to
                                        more than `recordCount`.
                                      example: false
                                    rows:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          group:
                                            anyOf:
                                              - type: string
                                              - $ref: '#/components/schemas/User'
                                              - type: 'null'
                                            description: >-
                                              The value of the group-by field: a
                                              choice by its label, a month as
                                              `YYYY-MM`, a number, or a user as a
                                              `User` object, whose `fullName` and
                                              `email` are empty when the user is no
                                              longer in the workspace. `null` is "No
                                              value": the records with nothing in the
                                              field. The "No value" group is always in
                                              the rows, with `recordCount: 0` when
                                              every record has a value.
                                            example: Lead
                                          value:
                                            type:
                                              - number
                                              - 'null'
                                            description: >-
                                              The number the chart draws. `null` when
                                              there is nothing to compute: an average
                                              over no value, a ratio over no record
                                              with a value in the field.
                                            example: 10
                                          recordCount:
                                            type: integer
                                            description: >-
                                              The number of records in this row, after
                                              the filter.
                                            example: 2
                                        required:
                                          - group
                                          - value
                                          - recordCount
                                        additionalProperties: false
                                  required:
                                    - recordCount
                                    - overallValue
                                    - rowsOverlap
                                    - rows
                                  additionalProperties: false
                                  description: One row per bar or slice.
                              required:
                                - id
                                - dashboardId
                                - name
                                - filter
                                - includeEmptyValues
                                - createdAt
                                - updatedAt
                                - status
                                - problem
                                - type
                                - measure
                                - groupBy
                                - breakdownBy
                                - data
                              additionalProperties: false
                              title: Bar or pie chart
                              description: A working bar or pie chart.
                              example:
                                id: cht_5d6c1a8e-2b7f-4e3a-9c1d-8f0e7a6b5c4d
                                dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                                name: Leads by status
                                type: pie
                                measure:
                                  aggregation: count
                                groupBy:
                                  field: >-
                                    customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                breakdownBy: null
                                filter: null
                                includeEmptyValues: true
                                status: working
                                problem: null
                                data:
                                  recordCount: 10
                                  overallValue: 10
                                  rowsOverlap: false
                                  rows:
                                    - group: Lead
                                      value: 2
                                      recordCount: 2
                                    - group: Follow-up
                                      value: 2
                                      recordCount: 2
                                    - group: Closed-won
                                      value: 2
                                      recordCount: 2
                                    - group: Closed-lost
                                      value: 2
                                      recordCount: 2
                                    - group: Qualified
                                      value: 1
                                      recordCount: 1
                                    - group: null
                                      value: 1
                                      recordCount: 1
                                createdAt: '2026-11-03T09:12:44.000Z'
                                updatedAt: '2026-11-10T16:40:02.000Z'
                            - type: object
                              properties:
                                id:
                                  type: string
                                  description: The id of the chart.
                                  example: cht_5d2e7f10-0386-434d-82d7-a91eb6badd71
                                dashboardId:
                                  type: string
                                  description: The id of the dashboard of the chart.
                                  example: dsh_8c1a4b2d-0386-434d-82d7-a91eb6badd71
                                name:
                                  type: string
                                  description: The name of the chart, as shown in the app.
                                  example: Leads by status
                                filter:
                                  type:
                                    - object
                                    - 'null'
                                  properties:
                                    combinator:
                                      type: string
                                      enum:
                                        - and
                                        - or
                                      description: >-
                                        The logical operator combining the
                                        conditions.
                                      example: and
                                    conditions:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          field:
                                            type: string
                                            description: >-
                                              The field the condition applies to, with
                                              the same keys as the filters of the
                                              search endpoints, e.g. `jobTitle`,
                                              `company.industry` or
                                              `customFieldValues.<groupId>.<Field
                                              name>`.
                                            example: jobTitle
                                          operator:
                                            type: string
                                            enum:
                                              - eq
                                              - not_eq
                                              - like
                                              - not_like
                                              - gt
                                              - lt
                                              - in
                                              - all
                                              - not_in
                                              - empty
                                              - not_empty
                                            example: like
                                          value:
                                            anyOf:
                                              - type: string
                                              - type: array
                                                items:
                                                  type: string
                                              - type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    id:
                                                      type: string
                                                  required:
                                                    - id
                                            description: >-
                                              The value of the condition:

                                              - a single value for `eq`, `not_eq`,
                                              `like`, `not_like`, `gt` and `lt` on
                                              text, number and date fields;

                                              - a list for `in`, `all` and `not_in`,
                                              and for `eq` and `not_eq` on select,
                                              user and reference fields, where they
                                              mean "exactly these values";

                                              - absent for `empty` and `not_empty`.


                                              Select options are given by label,
                                              users, people, companies and groups by
                                              `{ id }`, dates as `YYYY-MM-DD` or
                                              relative dates (`today`, `yesterday`,
                                              `tomorrow`, `7-days-ago`,
                                              `in-3-months`).
                                            example: engineer
                                        required:
                                          - field
                                          - operator
                                        description: A condition of the filter.
                                      description: >-
                                        The conditions of the filter, in order.
                                        The same field can appear in several
                                        conditions.
                                  required:
                                    - combinator
                                    - conditions
                                  description: >-
                                    The filter of the chart, in the format of
                                    the filter of a view, `null` when the chart
                                    has no filter. The chart only covers the
                                    records that match it.
                                includeEmptyValues:
                                  type: boolean
                                  description: >-
                                    Whether the app shows the "No value" row of
                                    the chart. Set in the app only: it can not
                                    be changed through the API, and it does not
                                    change the rows returned here.
                                  example: true
                                createdAt:
                                  type: string
                                  format: date-time
                                  description: >-
                                    The date and time the chart was created, in
                                    ISO format.
                                  example: '2026-11-02T09:12:00.000Z'
                                updatedAt:
                                  type:
                                    - string
                                    - 'null'
                                  format: date-time
                                  description: >-
                                    The date and time the chart was last
                                    updated, in ISO format. Equals `createdAt`
                                    until the chart is first updated. Can be
                                    `null` on older charts.
                                  example: '2026-11-03T10:00:00.000Z'
                                status:
                                  type: string
                                  enum:
                                    - working
                                  description: >-
                                    The chart is working: every setting is valid
                                    for its type.
                                problem:
                                  type: 'null'
                                  description: '`null` on a working chart.'
                                type:
                                  type: string
                                  enum:
                                    - stackedBar
                                    - groupedBar
                                measure:
                                  anyOf:
                                    - type: object
                                      properties:
                                        aggregation:
                                          type: string
                                          enum:
                                            - count
                                      required:
                                        - aggregation
                                      additionalProperties: false
                                      title: Count of records
                                      description: The number of records the chart covers.
                                    - type: object
                                      properties:
                                        aggregation:
                                          type: string
                                          enum:
                                            - count
                                            - sum
                                            - average
                                          description: >-
                                            `count`: the number of records that have
                                            a value in the field. `sum` and
                                            `average`: the sum or the average of a
                                            number field.
                                        field:
                                          type: string
                                          description: >-
                                            The field. Fields are named with the
                                            keys of the filter of a view:
                                            `customFieldValues.grp_<id>.<Name>` for
                                            a group field,
                                            `customFieldValues.<Name>` for an object
                                            field, `createdAt`, `addedToGroupAt` and
                                            `createdBy` for the native ones.
                                          example: >-
                                            customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                      required:
                                        - aggregation
                                        - field
                                      additionalProperties: false
                                      title: Aggregation of a field
                                      description: >-
                                        The number of records with a value in
                                        the field, or the sum or the average of
                                        a number field.
                                  description: What each number of the chart is.
                                groupBy:
                                  type: object
                                  properties:
                                    field:
                                      type: string
                                      description: >-
                                        The field. Fields are named with the
                                        keys of the filter of a view:
                                        `customFieldValues.grp_<id>.<Name>` for
                                        a group field,
                                        `customFieldValues.<Name>` for an object
                                        field, `createdAt`, `addedToGroupAt` and
                                        `createdBy` for the native ones.
                                      example: >-
                                        customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                  required:
                                    - field
                                  additionalProperties: false
                                  description: >-
                                    One bar or slice per value of this field. It
                                    takes a `multipleSelect`, `userField`,
                                    `singleSelect`, `dateField` or
                                    `numericField` custom field of the
                                    dashboard, or a native field:
                                    `addedToGroupAt`, `createdAt` or `createdBy`
                                    on people and companies, `createdAt` or
                                    `createdBy` on objects. A date is split by
                                    month, and its rows are labelled `YYYY-MM`.
                                breakdownBy:
                                  type: object
                                  properties:
                                    field:
                                      type: string
                                      description: >-
                                        The field. Fields are named with the
                                        keys of the filter of a view:
                                        `customFieldValues.grp_<id>.<Name>` for
                                        a group field,
                                        `customFieldValues.<Name>` for an object
                                        field, `createdAt`, `addedToGroupAt` and
                                        `createdBy` for the native ones.
                                      example: >-
                                        customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                  required:
                                    - field
                                  additionalProperties: false
                                  description: >-
                                    Each bar broken down per value of this
                                    second field. It takes a `multipleSelect`,
                                    `userField`, `singleSelect`, `dateField` or
                                    `numericField` custom field of the
                                    dashboard, or a native field:
                                    `addedToGroupAt`, `createdAt` or `createdBy`
                                    on people and companies, `createdAt` or
                                    `createdBy` on objects. A date is split by
                                    month, and its rows are labelled `YYYY-MM`.
                                data:
                                  type: object
                                  properties:
                                    recordCount:
                                      type: integer
                                      description: >-
                                        The number of records (people, companies
                                        or objects) the chart covers, after its
                                        filter, each counted once.
                                      example: 10
                                    overallValue:
                                      type:
                                        - number
                                        - 'null'
                                      description: >-
                                        The measure computed over all the
                                        records, ignoring the group-by and
                                        breakdown-by: it is not always the sum
                                        of the rows (average, field that can
                                        hold several values).
                                      example: 10
                                    rowsOverlap:
                                      type: boolean
                                      description: >-
                                        Whether a record can be in several rows:
                                        `true` when the group-by or breakdown-by
                                        field can hold several values (a
                                        multiple choice or user custom field,
                                        not `createdBy`), so the rows add up to
                                        more than `recordCount`.
                                      example: false
                                    rows:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          group:
                                            anyOf:
                                              - type: string
                                              - $ref: '#/components/schemas/User'
                                              - type: 'null'
                                            description: >-
                                              The value of the group-by field: a
                                              choice by its label, a month as
                                              `YYYY-MM`, a number, or a user as a
                                              `User` object, whose `fullName` and
                                              `email` are empty when the user is no
                                              longer in the workspace. `null` is "No
                                              value": the records with nothing in the
                                              field. The "No value" group is always in
                                              the rows, with `recordCount: 0` when
                                              every record has a value.
                                            example: Lead
                                          breakdown:
                                            anyOf:
                                              - type: string
                                              - $ref: '#/components/schemas/User'
                                              - type: 'null'
                                            description: >-
                                              The value of the breakdown-by field,
                                              labelled like `group`. `null` is "No
                                              value".
                                            example: Small
                                          value:
                                            type:
                                              - number
                                              - 'null'
                                            description: >-
                                              The number the chart draws. `null` when
                                              there is nothing to compute: an average
                                              over no value, a ratio over no record
                                              with a value in the field.
                                            example: 10
                                          recordCount:
                                            type: integer
                                            description: >-
                                              The number of records in this row, after
                                              the filter.
                                            example: 2
                                        required:
                                          - group
                                          - breakdown
                                          - value
                                          - recordCount
                                        additionalProperties: false
                                  required:
                                    - recordCount
                                    - overallValue
                                    - rowsOverlap
                                    - rows
                                  additionalProperties: false
                                  description: >-
                                    One row per (group, breakdown) pair that has
                                    records. Pairs with no record are left out,
                                    except the "No value" row: `group` and
                                    `breakdown` both `null`, always there, with
                                    `recordCount: 0` when every record has a
                                    value.
                              required:
                                - id
                                - dashboardId
                                - name
                                - filter
                                - includeEmptyValues
                                - createdAt
                                - updatedAt
                                - status
                                - problem
                                - type
                                - measure
                                - groupBy
                                - breakdownBy
                                - data
                              additionalProperties: false
                              title: Stacked or grouped bar chart
                              description: A working stacked bar or grouped bar chart.
                              example:
                                id: cht_9e8d7c6b-5a4f-4e3d-a2c1-b0a9f8e7d6c5
                                dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                                name: Deal amount by status and size
                                type: stackedBar
                                measure:
                                  aggregation: sum
                                  field: >-
                                    customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Amount
                                groupBy:
                                  field: >-
                                    customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                breakdownBy:
                                  field: >-
                                    customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Size
                                filter: null
                                includeEmptyValues: true
                                status: working
                                problem: null
                                data:
                                  recordCount: 10
                                  overallValue: 125000
                                  rowsOverlap: false
                                  rows:
                                    - group: Lead
                                      breakdown: Small
                                      value: 10000
                                      recordCount: 2
                                    - group: Qualified
                                      breakdown: Large
                                      value: 40000
                                      recordCount: 1
                                    - group: Closed-won
                                      breakdown: Small
                                      value: 15000
                                      recordCount: 3
                                    - group: Closed-won
                                      breakdown: Large
                                      value: 60000
                                      recordCount: 2
                                    - group: null
                                      breakdown: null
                                      value: 0
                                      recordCount: 2
                                createdAt: '2026-11-04T11:02:31.000Z'
                                updatedAt: '2026-11-09T08:21:47.000Z'
                            - type: object
                              properties:
                                id:
                                  type: string
                                  description: The id of the chart.
                                  example: cht_5d2e7f10-0386-434d-82d7-a91eb6badd71
                                dashboardId:
                                  type: string
                                  description: The id of the dashboard of the chart.
                                  example: dsh_8c1a4b2d-0386-434d-82d7-a91eb6badd71
                                name:
                                  type: string
                                  description: The name of the chart, as shown in the app.
                                  example: Leads by status
                                filter:
                                  type:
                                    - object
                                    - 'null'
                                  properties:
                                    combinator:
                                      type: string
                                      enum:
                                        - and
                                        - or
                                      description: >-
                                        The logical operator combining the
                                        conditions.
                                      example: and
                                    conditions:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          field:
                                            type: string
                                            description: >-
                                              The field the condition applies to, with
                                              the same keys as the filters of the
                                              search endpoints, e.g. `jobTitle`,
                                              `company.industry` or
                                              `customFieldValues.<groupId>.<Field
                                              name>`.
                                            example: jobTitle
                                          operator:
                                            type: string
                                            enum:
                                              - eq
                                              - not_eq
                                              - like
                                              - not_like
                                              - gt
                                              - lt
                                              - in
                                              - all
                                              - not_in
                                              - empty
                                              - not_empty
                                            example: like
                                          value:
                                            anyOf:
                                              - type: string
                                              - type: array
                                                items:
                                                  type: string
                                              - type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    id:
                                                      type: string
                                                  required:
                                                    - id
                                            description: >-
                                              The value of the condition:

                                              - a single value for `eq`, `not_eq`,
                                              `like`, `not_like`, `gt` and `lt` on
                                              text, number and date fields;

                                              - a list for `in`, `all` and `not_in`,
                                              and for `eq` and `not_eq` on select,
                                              user and reference fields, where they
                                              mean "exactly these values";

                                              - absent for `empty` and `not_empty`.


                                              Select options are given by label,
                                              users, people, companies and groups by
                                              `{ id }`, dates as `YYYY-MM-DD` or
                                              relative dates (`today`, `yesterday`,
                                              `tomorrow`, `7-days-ago`,
                                              `in-3-months`).
                                            example: engineer
                                        required:
                                          - field
                                          - operator
                                        description: A condition of the filter.
                                      description: >-
                                        The conditions of the filter, in order.
                                        The same field can appear in several
                                        conditions.
                                  required:
                                    - combinator
                                    - conditions
                                  description: >-
                                    The filter of the chart, in the format of
                                    the filter of a view, `null` when the chart
                                    has no filter. The chart only covers the
                                    records that match it.
                                includeEmptyValues:
                                  type: boolean
                                  description: >-
                                    Whether the app shows the "No value" row of
                                    the chart. Set in the app only: it can not
                                    be changed through the API, and it does not
                                    change the rows returned here.
                                  example: true
                                createdAt:
                                  type: string
                                  format: date-time
                                  description: >-
                                    The date and time the chart was created, in
                                    ISO format.
                                  example: '2026-11-02T09:12:00.000Z'
                                updatedAt:
                                  type:
                                    - string
                                    - 'null'
                                  format: date-time
                                  description: >-
                                    The date and time the chart was last
                                    updated, in ISO format. Equals `createdAt`
                                    until the chart is first updated. Can be
                                    `null` on older charts.
                                  example: '2026-11-03T10:00:00.000Z'
                                status:
                                  type: string
                                  enum:
                                    - notConfigured
                                    - broken
                                    - error
                                  description: >-
                                    `notConfigured`: a field or choice was never
                                    chosen. `broken`: a field or choice was
                                    deleted, or a setting is not valid for the
                                    type. `error`: the chart could not be
                                    computed or described, for instance because
                                    it uses a field that is not available in the
                                    API.
                                problem:
                                  type: string
                                  description: Why the chart is not working.
                                  example: The field used to group by has been deleted.
                                data:
                                  type: 'null'
                                  description: >-
                                    `null`: a chart that is not working has no
                                    data.
                                type:
                                  type: string
                                  enum:
                                    - metric
                                    - bar
                                    - pie
                                    - stackedBar
                                    - groupedBar
                                measure:
                                  type: object
                                  properties:
                                    aggregation:
                                      type: string
                                      enum:
                                        - count
                                        - sum
                                        - average
                                        - ratio
                                    field:
                                      type:
                                        - string
                                        - 'null'
                                      description: >-
                                        The field, `null` when it was never
                                        chosen or has been deleted. Fields are
                                        named with the keys of the filter of a
                                        view:
                                        `customFieldValues.grp_<id>.<Name>` for
                                        a group field,
                                        `customFieldValues.<Name>` for an object
                                        field, `createdAt`, `addedToGroupAt` and
                                        `createdBy` for the native ones.
                                      example: >-
                                        customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                    choice:
                                      type:
                                        - string
                                        - 'null'
                                      description: >-
                                        The label of the choice of a ratio,
                                        `null` when it was never chosen or has
                                        been deleted.
                                      example: Closed-won
                                  required:
                                    - aggregation
                                  additionalProperties: false
                                  description: >-
                                    What the chart is set to compute. A field or
                                    choice that was never chosen or has been
                                    deleted is `null`.
                                groupBy:
                                  type:
                                    - object
                                    - 'null'
                                  properties:
                                    field:
                                      type:
                                        - string
                                        - 'null'
                                      description: >-
                                        The field, `null` when it was never
                                        chosen or has been deleted. Fields are
                                        named with the keys of the filter of a
                                        view:
                                        `customFieldValues.grp_<id>.<Name>` for
                                        a group field,
                                        `customFieldValues.<Name>` for an object
                                        field, `createdAt`, `addedToGroupAt` and
                                        `createdBy` for the native ones.
                                      example: >-
                                        customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                  required:
                                    - field
                                  additionalProperties: false
                                  description: >-
                                    One bar or slice per value of this field. It
                                    takes a `multipleSelect`, `userField`,
                                    `singleSelect`, `dateField` or
                                    `numericField` custom field of the
                                    dashboard, or a native field:
                                    `addedToGroupAt`, `createdAt` or `createdBy`
                                    on people and companies, `createdAt` or
                                    `createdBy` on objects. A date is split by
                                    month, and its rows are labelled `YYYY-MM`.
                                    `null` on a `metric` chart, which has no
                                    group-by.
                                breakdownBy:
                                  type:
                                    - object
                                    - 'null'
                                  properties:
                                    field:
                                      type:
                                        - string
                                        - 'null'
                                      description: >-
                                        The field, `null` when it was never
                                        chosen or has been deleted. Fields are
                                        named with the keys of the filter of a
                                        view:
                                        `customFieldValues.grp_<id>.<Name>` for
                                        a group field,
                                        `customFieldValues.<Name>` for an object
                                        field, `createdAt`, `addedToGroupAt` and
                                        `createdBy` for the native ones.
                                      example: >-
                                        customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                                  required:
                                    - field
                                  additionalProperties: false
                                  description: >-
                                    Each bar broken down per value of this
                                    second field. It takes a `multipleSelect`,
                                    `userField`, `singleSelect`, `dateField` or
                                    `numericField` custom field of the
                                    dashboard, or a native field:
                                    `addedToGroupAt`, `createdAt` or `createdBy`
                                    on people and companies, `createdAt` or
                                    `createdBy` on objects. A date is split by
                                    month, and its rows are labelled `YYYY-MM`.
                                    `null` on a `metric`, `bar` or `pie` chart,
                                    which has no breakdown-by.
                              required:
                                - id
                                - dashboardId
                                - name
                                - filter
                                - includeEmptyValues
                                - createdAt
                                - updatedAt
                                - status
                                - problem
                                - data
                                - type
                                - measure
                                - groupBy
                                - breakdownBy
                              additionalProperties: false
                              title: Chart not working
                              description: >-
                                A chart of any type that is not working: it has
                                a problem and no data.
                              example:
                                id: cht_1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a0b
                                dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                                name: Leads by source
                                type: bar
                                measure:
                                  aggregation: count
                                groupBy:
                                  field: null
                                breakdownBy: null
                                filter: null
                                includeEmptyValues: true
                                status: broken
                                problem: The field used to group by has been deleted.
                                data: null
                                createdAt: '2026-11-05T14:30:00.000Z'
                                updatedAt: '2026-11-12T10:05:19.000Z'
                          description: >-
                            A chart of a dashboard: what it computes, its
                            status, and its data when it is working.
                        description: >-
                          Every chart of the dashboard, in display order, each
                          as it is returned on its own: with its data when its
                          status is `working`, and the problem otherwise.
                    required:
                      - id
                      - name
                      - groupId
                      - entityType
                      - createdAt
                      - updatedAt
                      - charts
                    additionalProperties: false
                    description: >-
                      A dashboard of a group, with all its charts: what each
                      computes, its status, and its data when it is working.
                    example:
                      id: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                      name: Pipeline
                      groupId: grp_92ab3f1c-0386-434d-82d7-a91eb6badd71
                      entityType: person
                      createdAt: '2026-11-03T09:10:27.000Z'
                      updatedAt: '2026-11-12T10:05:19.000Z'
                      charts:
                        - id: cht_7a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d
                          dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                          name: Win rate
                          type: metric
                          measure:
                            aggregation: ratio
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                            choice: Closed-won
                          groupBy: null
                          breakdownBy: null
                          filter: null
                          includeEmptyValues: true
                          status: working
                          problem: null
                          data:
                            value: 0.2222
                            matching: 2
                            outOf: 9
                            recordCount: 10
                          createdAt: '2026-11-03T09:14:10.000Z'
                          updatedAt: null
                        - id: cht_5d6c1a8e-2b7f-4e3a-9c1d-8f0e7a6b5c4d
                          dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                          name: Leads by status
                          type: pie
                          measure:
                            aggregation: count
                          groupBy:
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                          breakdownBy: null
                          filter: null
                          includeEmptyValues: true
                          status: working
                          problem: null
                          data:
                            recordCount: 10
                            overallValue: 10
                            rowsOverlap: false
                            rows:
                              - group: Lead
                                value: 2
                                recordCount: 2
                              - group: Follow-up
                                value: 2
                                recordCount: 2
                              - group: Closed-won
                                value: 2
                                recordCount: 2
                              - group: Closed-lost
                                value: 2
                                recordCount: 2
                              - group: Qualified
                                value: 1
                                recordCount: 1
                              - group: null
                                value: 1
                                recordCount: 1
                          createdAt: '2026-11-03T09:12:44.000Z'
                          updatedAt: '2026-11-10T16:40:02.000Z'
                        - id: cht_9e8d7c6b-5a4f-4e3d-a2c1-b0a9f8e7d6c5
                          dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                          name: Deal amount by status and size
                          type: stackedBar
                          measure:
                            aggregation: sum
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Amount
                          groupBy:
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                          breakdownBy:
                            field: >-
                              customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Size
                          filter: null
                          includeEmptyValues: true
                          status: working
                          problem: null
                          data:
                            recordCount: 10
                            overallValue: 125000
                            rowsOverlap: false
                            rows:
                              - group: Lead
                                breakdown: Small
                                value: 10000
                                recordCount: 2
                              - group: Qualified
                                breakdown: Large
                                value: 40000
                                recordCount: 1
                              - group: Closed-won
                                breakdown: Small
                                value: 15000
                                recordCount: 3
                              - group: Closed-won
                                breakdown: Large
                                value: 60000
                                recordCount: 2
                              - group: null
                                breakdown: null
                                value: 0
                                recordCount: 2
                          createdAt: '2026-11-04T11:02:31.000Z'
                          updatedAt: '2026-11-09T08:21:47.000Z'
                        - id: cht_1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a0b
                          dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                          name: Leads by source
                          type: bar
                          measure:
                            aggregation: count
                          groupBy:
                            field: null
                          breakdownBy: null
                          filter: null
                          includeEmptyValues: true
                          status: broken
                          problem: The field used to group by has been deleted.
                          data: null
                          createdAt: '2026-11-05T14:30:00.000Z'
                          updatedAt: '2026-11-12T10:05:19.000Z'
                  deprecations:
                    type: array
                    items:
                      type: string
                    example:
                      - This field is deprecated
                required:
                  - data
              example:
                data:
                  id: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                  name: Pipeline
                  groupId: grp_92ab3f1c-0386-434d-82d7-a91eb6badd71
                  entityType: person
                  createdAt: '2026-11-03T09:10:27.000Z'
                  updatedAt: '2026-11-12T10:05:19.000Z'
                  charts:
                    - id: cht_7a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d
                      dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                      name: Win rate
                      type: metric
                      measure:
                        aggregation: ratio
                        field: >-
                          customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                        choice: Closed-won
                      groupBy: null
                      breakdownBy: null
                      filter: null
                      includeEmptyValues: true
                      status: working
                      problem: null
                      data:
                        value: 0.2222
                        matching: 2
                        outOf: 9
                        recordCount: 10
                      createdAt: '2026-11-03T09:14:10.000Z'
                      updatedAt: null
                    - id: cht_5d6c1a8e-2b7f-4e3a-9c1d-8f0e7a6b5c4d
                      dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                      name: Leads by status
                      type: pie
                      measure:
                        aggregation: count
                      groupBy:
                        field: >-
                          customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                      breakdownBy: null
                      filter: null
                      includeEmptyValues: true
                      status: working
                      problem: null
                      data:
                        recordCount: 10
                        overallValue: 10
                        rowsOverlap: false
                        rows:
                          - group: Lead
                            value: 2
                            recordCount: 2
                          - group: Follow-up
                            value: 2
                            recordCount: 2
                          - group: Closed-won
                            value: 2
                            recordCount: 2
                          - group: Closed-lost
                            value: 2
                            recordCount: 2
                          - group: Qualified
                            value: 1
                            recordCount: 1
                          - group: null
                            value: 1
                            recordCount: 1
                      createdAt: '2026-11-03T09:12:44.000Z'
                      updatedAt: '2026-11-10T16:40:02.000Z'
                    - id: cht_9e8d7c6b-5a4f-4e3d-a2c1-b0a9f8e7d6c5
                      dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                      name: Deal amount by status and size
                      type: stackedBar
                      measure:
                        aggregation: sum
                        field: >-
                          customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Amount
                      groupBy:
                        field: >-
                          customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status
                      breakdownBy:
                        field: >-
                          customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Size
                      filter: null
                      includeEmptyValues: true
                      status: working
                      problem: null
                      data:
                        recordCount: 10
                        overallValue: 125000
                        rowsOverlap: false
                        rows:
                          - group: Lead
                            breakdown: Small
                            value: 10000
                            recordCount: 2
                          - group: Qualified
                            breakdown: Large
                            value: 40000
                            recordCount: 1
                          - group: Closed-won
                            breakdown: Small
                            value: 15000
                            recordCount: 3
                          - group: Closed-won
                            breakdown: Large
                            value: 60000
                            recordCount: 2
                          - group: null
                            breakdown: null
                            value: 0
                            recordCount: 2
                      createdAt: '2026-11-04T11:02:31.000Z'
                      updatedAt: '2026-11-09T08:21:47.000Z'
                    - id: cht_1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a0b
                      dashboardId: dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e
                      name: Leads by source
                      type: bar
                      measure:
                        aggregation: count
                      groupBy:
                        field: null
                      breakdownBy: null
                      filter: null
                      includeEmptyValues: true
                      status: broken
                      problem: The field used to group by has been deleted.
                      data: null
                      createdAt: '2026-11-05T14:30:00.000Z'
                      updatedAt: '2026-11-12T10:05:19.000Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - bearerApiKeyAuth: []
components:
  headers:
    X-RateLimit-Limit:
      schema:
        type: integer
        example: 1000
      description: >-
        The maximum number of requests that you can make in the current rate
        limit window.
    X-RateLimit-Remaining:
      schema:
        type: integer
        example: 998
      description: The number of requests remaining in the current rate limit window.
    X-RateLimit-Reset:
      schema:
        type: integer
        example: 1747322958
      description: >-
        The time at which the current rate limit window resets, in UTC epoch
        seconds.
    X-RateLimit-Limit-Burst:
      schema:
        type: integer
        example: 20
      description: >-
        The maximum number of requests that you can make in the current burst
        rate limit window.
    X-RateLimit-Remaining-Burst:
      schema:
        type: integer
        example: 18
      description: The number of requests remaining in the current burst rate limit window.
    X-RateLimit-Reset-Burst:
      schema:
        type: integer
        example: 1747322902
      description: >-
        The time at which the current burst rate limit window resets, in UTC
        epoch seconds.
    RateLimit-Policy:
      schema:
        type: string
        example: '"default";q=600;w=60, "burst";q=20;w=2'
      description: >-
        The rate limit policies applied to the request, as defined by the IETF
        RateLimit header fields draft. `q` is the number of requests allowed per
        window and `w` the window length in seconds.
    RateLimit:
      schema:
        type: string
        example: '"default";r=598;t=42, "burst";r=18;t=1'
      description: >-
        The current usage of each rate limit policy, as defined by the IETF
        RateLimit header fields draft. `r` is the number of requests remaining
        and `t` the number of seconds until the window resets.
    Retry-After:
      schema:
        type: integer
        example: 60
      description: >-
        The number of seconds to wait before making a new request after hitting
        the rate limit.
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
        fullName:
          type: string
        email:
          type: string
      required:
        - id
        - fullName
        - email
      description: A user in the workspace.
      example:
        id: usr_bc984b3f-0386-434d-82d7-a91eb6badd71
        fullName: John Doe
        email: john.doe@example.com
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: TOO_MANY_REQUESTS
            message:
              type: string
              example: You have exceeded your rate limit.
            documentationUrl:
              type: string
              format: uri
              example: https://developer.folk.app/api-reference/errors#rate-limiting
            requestId:
              type: string
              format: uuid
              example: 123e4567-e89b-12d3-a456-426614174000
            timestamp:
              type: string
              format: date-time
              example: '2025-10-01T12:00:00Z'
            details:
              type: object
              additionalProperties: true
              example:
                policy: burst
                limit: 20
                remaining: 0
                windowSeconds: 2
                retryAfter: '2025-10-01T12:00:02.000Z'
          required:
            - code
            - message
            - documentationUrl
            - requestId
            - timestamp
      required:
        - error
      description: Error response containing error details.
    RateLimitError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: TOO_MANY_REQUESTS
            message:
              type: string
              example: You have exceeded your rate limit.
            documentationUrl:
              type: string
              format: uri
              example: https://developer.folk.app/api-reference/errors#rate-limiting
            requestId:
              type: string
              format: uuid
              example: 123e4567-e89b-12d3-a456-426614174000
            timestamp:
              type: string
              format: date-time
              example: '2025-10-01T12:00:00Z'
            details:
              type: object
              properties:
                policy:
                  type: string
                  enum:
                    - default
                    - burst
                  description: The name of the rate limit policy.
                limit:
                  type: integer
                  description: The maximum number of requests allowed per window.
                remaining:
                  type: integer
                  description: The number of requests remaining in the current window.
                windowSeconds:
                  type: integer
                  description: The length of the window, in seconds.
                retryAfter:
                  type: string
                  format: date-time
                  description: When the current window resets.
                policies:
                  type: array
                  items:
                    type: object
                    properties:
                      policy:
                        type: string
                        enum:
                          - default
                          - burst
                        description: The name of the rate limit policy.
                      limit:
                        type: integer
                        description: The maximum number of requests allowed per window.
                      remaining:
                        type: integer
                        description: >-
                          The number of requests remaining in the current
                          window.
                      windowSeconds:
                        type: integer
                        description: The length of the window, in seconds.
                      retryAfter:
                        type: string
                        format: date-time
                        description: When the current window resets.
                    required:
                      - policy
                      - limit
                      - remaining
                      - windowSeconds
                      - retryAfter
                  description: >-
                    The status of every rate limit policy applied to the
                    request.
              required:
                - policy
                - limit
                - remaining
                - windowSeconds
                - retryAfter
                - policies
              description: >-
                The exceeded rate limit policy. When several are exceeded, the
                one resetting last.
          required:
            - code
            - message
            - documentationUrl
            - requestId
            - timestamp
            - details
      required:
        - error
      description: Error response returned when a rate limit is exceeded.
  responses:
    BadRequest:
      description: The request was unacceptable, often due to missing an invalid parameter.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Burst:
          $ref: '#/components/headers/X-RateLimit-Limit-Burst'
        X-RateLimit-Remaining-Burst:
          $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
        X-RateLimit-Reset-Burst:
          $ref: '#/components/headers/X-RateLimit-Reset-Burst'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_REQUEST
              message: The request was invalid.
              documentationUrl: https://developer.folk.app/api-reference/errors#bad-request
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
    Unauthorized:
      description: No valid API key provided.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Burst:
          $ref: '#/components/headers/X-RateLimit-Limit-Burst'
        X-RateLimit-Remaining-Burst:
          $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
        X-RateLimit-Reset-Burst:
          $ref: '#/components/headers/X-RateLimit-Reset-Burst'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHORIZED
              message: No valid API key provided.
              documentationUrl: https://developer.folk.app/api-reference/errors#unauthorized
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
    PaymentRequired:
      description: The workspace doesn’t have enough credits to perform the request.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Burst:
          $ref: '#/components/headers/X-RateLimit-Limit-Burst'
        X-RateLimit-Remaining-Burst:
          $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
        X-RateLimit-Reset-Burst:
          $ref: '#/components/headers/X-RateLimit-Reset-Burst'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INSUFFICIENT_CREDITS
              message: 'Not enough enrichment credits: 12 needed, 5 left.'
              documentationUrl: https://developer.folk.app/api-reference/errors#payment-required
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
    Forbidden:
      description: The API key doesn’t have permissions to perform the request.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Burst:
          $ref: '#/components/headers/X-RateLimit-Limit-Burst'
        X-RateLimit-Remaining-Burst:
          $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
        X-RateLimit-Reset-Burst:
          $ref: '#/components/headers/X-RateLimit-Reset-Burst'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: FORBIDDEN
              message: The API key doesn’t have permissions to perform the request.
              documentationUrl: https://developer.folk.app/api-reference/errors#forbidden
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
    NotFound:
      description: The requested resource doesn’t exist.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Burst:
          $ref: '#/components/headers/X-RateLimit-Limit-Burst'
        X-RateLimit-Remaining-Burst:
          $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
        X-RateLimit-Reset-Burst:
          $ref: '#/components/headers/X-RateLimit-Reset-Burst'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RESOURCE_NOT_FOUND
              message: The requested resource was not found.
              documentationUrl: https://developer.folk.app/api-reference/errors#not-found
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
    Conflict:
      description: >-
        A request with the same `Idempotency-Key` is still being processed, or
        the resource is in a state that does not allow the operation.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Burst:
          $ref: '#/components/headers/X-RateLimit-Limit-Burst'
        X-RateLimit-Remaining-Burst:
          $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
        X-RateLimit-Reset-Burst:
          $ref: '#/components/headers/X-RateLimit-Reset-Burst'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        Retry-After:
          schema:
            type: integer
            example: 5
          description: >-
            When the conflict resolves on its own, the number of seconds to wait
            before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: IDEMPOTENCY_REQUEST_IN_PROGRESS
              message: >-
                A request with the same Idempotency-Key is still being
                processed. Retry once it has completed.
              documentationUrl: https://developer.folk.app/api-reference/idempotency#errors
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
    UnprocessableEntity:
      description: >-
        The request was unacceptable, often due to missing or invalid
        parameters.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Burst:
          $ref: '#/components/headers/X-RateLimit-Limit-Burst'
        X-RateLimit-Remaining-Burst:
          $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
        X-RateLimit-Reset-Burst:
          $ref: '#/components/headers/X-RateLimit-Reset-Burst'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNPROCESSABLE_ENTITY
              message: Invalid query parameters
              documentationUrl: >-
                https://developer.folk.app/api-reference/errors#unprocessable-entity
              details:
                issues:
                  - code: too_small
                    minimum: 1
                    type: number
                    inclusive: true
                    exact: false
                    message: Number must be greater than or equal to 1
                    path:
                      - limit
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
    TooManyRequests:
      description: >-
        Too many requests hit the API too quickly. We recommend an exponential
        backoff of your requests.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Limit-Burst:
          $ref: '#/components/headers/X-RateLimit-Limit-Burst'
        X-RateLimit-Remaining-Burst:
          $ref: '#/components/headers/X-RateLimit-Remaining-Burst'
        X-RateLimit-Reset-Burst:
          $ref: '#/components/headers/X-RateLimit-Reset-Burst'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimit-Policy'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          example:
            error:
              code: TOO_MANY_REQUESTS
              message: You have exceeded your rate limit.
              documentationUrl: https://developer.folk.app/api-reference/errors#rate-limiting
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
              details:
                policy: burst
                limit: 20
                remaining: 0
                windowSeconds: 2
                retryAfter: '2025-10-01T12:00:02.000Z'
                policies:
                  - policy: default
                    limit: 600
                    remaining: 412
                    windowSeconds: 60
                    retryAfter: '2025-10-01T12:01:00.000Z'
                  - policy: burst
                    limit: 20
                    remaining: 0
                    windowSeconds: 2
                    retryAfter: '2025-10-01T12:00:02.000Z'
    InternalServerError:
      description: Something went wrong on our end.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INTERNAL_SERVER_ERROR
              message: An internal server error occurred.
              documentationUrl: >-
                https://developer.folk.app/api-reference/errors#internal-server-error
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
    ServiceUnavailable:
      description: The server is overloaded or down for maintenance.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: SERVICE_UNAVAILABLE
              message: The service is currently unavailable.
              documentationUrl: >-
                https://developer.folk.app/api-reference/errors#service-unavailable
              requestId: 123e4567-e89b-12d3-a456-426614174000
              timestamp: '2025-10-01T12:00:00Z'
  securitySchemes:
    bearerApiKeyAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.