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

# Get open cards per day

> Running open-card count per UTC day over the last 30 days.
Accepts an API key (`x-token`), a delegate token with the board read scope, or an internal
partner token with `board-admin` (partner requests must send `x-company-id`). Where a user is identified (the delegate's own user, or `x-user-id`
with a key or partner token) that user must be an active company member with read access to the
board, otherwise 403. A partner token with no user is allowed. Archived boards are 404.




## OpenAPI

````yaml /openapi.yaml get /api/board/{boardId}/diagnostics/card-burndown
openapi: 3.0.3
info:
  title: Aptly API
  version: '1.1'
  description: |
    The Aptly API lets external systems work with boards, contacts, inboxes,
    tasks, files, and other Aptly resources.

    Most endpoints accept an API key in the `x-token` header. Some endpoints
    also accept a delegate token or partner bearer token, as shown in each
    operation's security requirements, and explicitly public endpoints require
    no credential. API keys are scoped to a company and may be restricted to
    specific boards and read, insert, or update permissions; requests outside
    those restrictions receive a 403 `FORBIDDEN` response.
servers:
  - url: https://core-api.getaptly.com
    description: Production
security:
  - ApiKeyHeader: []
paths:
  /api/board/{boardId}/diagnostics/card-burndown:
    get:
      tags:
        - Board
      summary: Get open cards per day
      description: >
        Running open-card count per UTC day over the last 30 days.

        Accepts an API key (`x-token`), a delegate token with the board read
        scope, or an internal

        partner token with `board-admin` (partner requests must send
        `x-company-id`). Where a user is identified (the delegate's own user, or
        `x-user-id`

        with a key or partner token) that user must be an active company member
        with read access to the

        board, otherwise 403. A partner token with no user is allowed. Archived
        boards are 404.
      operationId: getBoardDiagnosticsCardBurndown
      parameters:
        - name: boardId
          in: path
          required: true
          schema:
            type: string
          description: The board's UUID.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      startDate:
                        type: string
                        format: date-time
                      endDate:
                        type: string
                        format: date-time
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            createdAt:
                              type: string
                              format: date-time
                            createdCount:
                              type: integer
                            archivedCount:
                              type: integer
                            openCount:
                              type: integer
        '400':
          description: Invalid query.
        '401':
          description: Invalid or missing credential.
        '403':
          description: The credential or user cannot read this board.
        '404':
          description: Board not found.
      security:
        - ApiKeyHeader: []
        - DelegateToken: []
        - PartnerBearer: []
components:
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-token
    DelegateToken:
      type: apiKey
      in: header
      name: Authorization
      description: 'Delegate token issued by the platform. Format: `DelegateToken <token>`'
    PartnerBearer:
      type: http
      scheme: bearer
      description: 'Partner token. Format: `Authorization: Bearer <token>`'

````

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