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

# Get card details

> Returns the card with tags, users, linked cards, design-object references,
team placements, the newest 50 comments, and up to 50 newest history events.
Use the paginated comment/history routes to continue older timelines.




## OpenAPI

````yaml /openapi/davinci-public.v2.yaml get /api/v2/projects/{projectId}/cards/{cardId}/details
openapi: 3.1.0
info:
  title: Davinci Public API
  version: 2.0.0
  description: >
    Public Routing Server API contract for Davinci integrations and official
    SDKs.


    Most operations live on the canonical `/api/v2/projects` mount and accept a

    personal access token (`dav_ak_live_…` / `dav_ak_test_…`) or browser access

    token. Evaluation-run creation is the deliberate exception: it accepts only
    a

    `purpose=automation` grant issued to a running Code execution.

    Project membership and role are checked on every user call, and an API key
    is

    additionally bounded by the permission ceiling derived from its scopes — a
    key

    can never exceed what its owner can do, and usually does less.


    Collaboration operations (invitations, membership changes, ownership
    transfer)

    are deliberately absent: they require a browser session and are not part of
    the

    programmatic surface.


    ## Two planes


    Most operations are **control plane**: they run on the Routing Server, take

    small requests, and answer quickly. A few are **data plane**, marked

    `x-plane: data`, and go straight to the machine holding your project — the
    only

    practical way to move multi-gigabyte files or hold a connection open for
    half

    an hour.


    Data-plane operations use a different host and a different credential.
    Create a

    session on a project and it returns both: a `dataPlane.url` to send to and a

    short-lived `dataPlane.token` (`dav_gr_…`, a *grant*) to send with. A grant

    reaches exactly one project, carries no more permission than the key that

    minted it, expires in minutes, and dies when its session closes. It is not

    interchangeable with an API key in either direction.


    The data-plane host never names a specific machine, so a project that moves

    between machines mid-session stays reachable at the same URL.
servers:
  - url: https://davinci-app.com
    description: Production (control plane)
  - url: https://davinci-app.com/data
    description: >-
      Production (data plane). Serves the operations marked `x-plane: data`,
      using a session's grant rather than an API key.
security:
  - ApiKeyBearer: []
tags:
  - name: Projects
    description: >-
      Create, inspect, open, close, and delete projects, and manage their
      attached files.
  - name: Content
    description: >
      Read and write the objects a project is made of. These reach the running

      project rather than storage, so they see uncommitted work — and so they
      open

      the project if it is not already open.
  - name: Branches
    description: >
      Branches, commits, and the history of a single object. A commit captures
      the

      running project's state, so these operations need the branch loaded, which
      they

      arrange for the caller.
  - name: Sessions
    description: >
      A session opens a project, holds it open, and issues the grant that
      reaches the

      data plane. It is the programmatic equivalent of having a project open in
      a

      browser tab: while it lives, the project stays loaded.


      It is also where the agent lives. Send it a prompt, read its status from
      the

      session, read the transcript back, and stop a run that is going the wrong
      way.
  - name: AgentModels
    description: >
      Chat models available to your account. The returned keys are the values
      accepted

      by the session message API; availability follows your subscription,
      tenant, and

      any profile assigned to your account.
  - name: Tools
    description: >
      Invoke one of the agent's tools yourself, without the agent. Useful when
      you

      already know the operation you want and do not need a model to choose it —
      and

      when you want a deterministic result rather than an interpreted one.


      A tool is still held to the permissions of the credential invoking it, so
      a

      key cannot reach through a tool to something its scopes exclude.
  - name: Files
    description: >
      Data-plane file transfer. These reach your project's machine directly
      using a

      session's grant, which is what allows request bodies far larger than the

      control plane accepts.
  - name: Usage
    description: >
      What your models cost, broken down by model, project, session, or day.
      These

      read the usage ledger, which records one event per completed provider call
      —

      not your credit balance, which is `/api/v2/billing`.


      Usage is reported on an interval rather than per call, so a run that is
      still

      going may not be fully counted yet. Every response carries `asOf`, the
      moment

      the newest counted event was recorded, so you can see how current a total
      is

      instead of guessing.


      This is separate from `projects:read` on purpose: a key that reads your

      project data is not thereby allowed to see what you spend.
  - name: Evaluations
    description: |
      Lifecycle for the ephemeral target sandbox an evaluation runs against.
      Creation is available only to a `purpose=automation` grant issued to a
      running Code execution, so a sandbox always belongs to code rather than to
      a person's key. It returns a second, `purpose=evaluation` grant bound to
      the new sandbox; it never upgrades or replaces the source credential.
  - name: Tests
    description: >
      Asynchronously run an authored Test. The Test executes its linked Code

      object and applies its native evaluation criteria to derive the verdict.

      This is one way to start Code, not a prerequisite for anything the Code
      can

      do: the same function called directly holds the same authority.
  - name: Organizations
    description: Discover organizations available as containers for team planning.
  - name: Cards
    description: >
      Project-scoped agile cards, their index hierarchy, comments, tags,
      assignees,

      card dependencies, and design-object references. Project access is checked

      on every call; an inaccessible project is reported as not found.
  - name: Teams
    description: >
      Organization-scoped team boards, linked projects, workflow columns,
      sprints,

      analytics, and card placements. Team visibility is privacy preserving:

      inaccessible organizations, private teams, and cross-organization ids are

      reported as not found rather than revealing that they exist.
paths:
  /api/v2/projects/{projectId}/cards/{cardId}/details:
    parameters:
      - $ref: '#/components/parameters/ProjectId'
      - $ref: '#/components/parameters/CardId'
    get:
      tags:
        - Cards
      summary: Get card details
      description: >
        Returns the card with tags, users, linked cards, design-object
        references,

        team placements, the newest 50 comments, and up to 50 newest history
        events.

        Use the paginated comment/history routes to continue older timelines.
      operationId: getCardDetails
      responses:
        '200':
          description: Composite card details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardDetails'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - ApiKeyBearer: []
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        minLength: 1
      description: Project id. May be compound in the form `{projectId}--{branchName}`.
    CardId:
      name: cardId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Agile card id.
  schemas:
    CardDetails:
      type: object
      required:
        - card
        - tags
        - userLinks
        - linkedCards
        - objectLinks
        - teams
        - teamPlacementCount
        - comments
        - history
        - historyHeadId
        - historyHeadSequence
        - historyContext
        - teamOptions
      properties:
        card:
          $ref: '#/components/schemas/AgileCard'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/AgileCardTag'
        userLinks:
          type: array
          items:
            $ref: '#/components/schemas/CardUserDetailsLink'
        linkedCards:
          type: array
          items:
            $ref: '#/components/schemas/CardLinkedCard'
        objectLinks:
          type: array
          items:
            $ref: '#/components/schemas/AgileCardObjectLink'
        teams:
          type: array
          items:
            $ref: '#/components/schemas/CardTeamPlacement'
        teamPlacementCount:
          type: integer
          minimum: 0
          description: >-
            Number of team placements; closing State remains global and does not
            move any placement.
        comments:
          type: array
          items:
            $ref: '#/components/schemas/CardCommentDetails'
        history:
          type: array
          maxItems: 50
          items:
            $ref: '#/components/schemas/AgileHistoryEvent'
        historyHeadId:
          $ref: '#/components/schemas/NullableHistoryHeadId'
        historyHeadSequence:
          $ref: '#/components/schemas/NullableHistoryHeadSequence'
        historyContext:
          $ref: '#/components/schemas/CardHistoryContext'
        teamOptions:
          type: array
          items:
            $ref: '#/components/schemas/CardTeamOption'
      additionalProperties: false
    AgileCard:
      type: object
      required:
        - id
        - name
        - description
        - resolution
        - created_by_user
        - created_at
        - updated_at
        - deadline
        - is_open
        - project_id
        - effort
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        resolution:
          type:
            - string
            - 'null'
          maxLength: 10000
          description: >-
            Optional Markdown resolution; closing or reopening the card does not
            clear it.
        created_by_user:
          type:
            - string
            - 'null'
          format: uuid
        author_display_name:
          type:
            - string
            - 'null'
          description: Display name of the user who created the card, when available.
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        closed_at:
          type:
            - string
            - 'null'
          format: date-time
          readOnly: true
          description: >-
            Timestamp of the latest transition to the closed state; null while
            open.
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
        deadline:
          type:
            - string
            - 'null'
          format: date-time
        is_open:
          type: boolean
        project_id:
          type: string
          format: uuid
        effort:
          type:
            - integer
            - 'null'
          minimum: 0
          description: >-
            Unit-agnostic estimate, commonly interpreted as story points or
            hours.
      additionalProperties: true
    AgileCardTag:
      type: object
      required:
        - id
        - name
        - description
        - color
        - status
        - project_id
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        color:
          type: string
        status:
          type: string
        project_id:
          type: string
          format: uuid
      additionalProperties: true
    CardUserDetailsLink:
      type: object
      required:
        - link_id
        - id
        - display_name
        - relation_type
        - created_at
      properties:
        link_id:
          type: string
          format: uuid
        id:
          type: string
          format: uuid
        display_name:
          type:
            - string
            - 'null'
        relation_type:
          type: string
        created_at:
          type:
            - string
            - 'null'
          format: date-time
      additionalProperties: false
    CardLinkedCard:
      type: object
      required:
        - id
        - name
        - description
        - resolution
        - created_by_user
        - created_at
        - updated_at
        - deadline
        - is_open
        - project_id
        - effort
        - link_id
        - link_type
        - direction
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        resolution:
          type:
            - string
            - 'null'
          maxLength: 10000
          description: >-
            Optional Markdown resolution; closing or reopening the card does not
            clear it.
        created_by_user:
          type:
            - string
            - 'null'
          format: uuid
        author_display_name:
          type:
            - string
            - 'null'
          description: Display name of the user who created the card, when available.
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        closed_at:
          type:
            - string
            - 'null'
          format: date-time
          readOnly: true
          description: >-
            Timestamp of the latest transition to the closed state; null while
            open.
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
        deadline:
          type:
            - string
            - 'null'
          format: date-time
        is_open:
          type: boolean
        project_id:
          type: string
          format: uuid
        effort:
          type:
            - integer
            - 'null'
          minimum: 0
          description: >-
            Unit-agnostic estimate, commonly interpreted as story points or
            hours.
        link_id:
          type: string
          format: uuid
        link_type:
          type: string
          enum:
            - relates_to
            - depends_on
        direction:
          type: string
          enum:
            - outgoing
            - incoming
      additionalProperties: true
    AgileCardObjectLink:
      type: object
      required:
        - id
        - card_id
        - object_id
        - object_name
        - object_type
        - link_type
        - project_id
        - branch_name
        - created_at
      properties:
        id:
          type: string
          format: uuid
        card_id:
          type: string
          format: uuid
        object_id:
          type: string
          format: uuid
        object_name:
          type: string
        object_type:
          type: string
        link_type:
          type: string
        project_id:
          type: string
          format: uuid
        branch_name:
          type: string
        created_at:
          type:
            - string
            - 'null'
          format: date-time
      additionalProperties: false
    CardTeamPlacement:
      type: object
      required:
        - id
        - name
        - sprint_id
        - status_id
        - sprint_name
        - status_name
        - placementAccess
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        status:
          type: string
          description: Team lifecycle status; `active` is the database default.
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
        organization_id:
          type: string
          format: uuid
        visibility:
          $ref: '#/components/schemas/TeamVisibility'
        sprint_id:
          type:
            - string
            - 'null'
          format: uuid
        status_id:
          type:
            - string
            - 'null'
          format: uuid
        sprint_name:
          type:
            - string
            - 'null'
        status_name:
          type:
            - string
            - 'null'
        status_color:
          type:
            - string
            - 'null'
        status_close_mode:
          oneOf:
            - $ref: '#/components/schemas/TeamStatusCloseMode'
            - type: 'null'
        org_handle:
          type:
            - string
            - 'null'
        org_slug:
          type:
            - string
            - 'null'
        placementAccess:
          type: string
          enum:
            - full
            - summary
          description: >
            `summary` exposes only bounded Team, status, and sprint identifiers

            and labels when the Project Card reader cannot otherwise read the
            Team.
      additionalProperties: true
    CardCommentDetails:
      type: object
      required:
        - id
        - card_id
        - user_id
        - body
        - created_at
        - updated_at
        - author_display_name
      properties:
        id:
          type: string
          format: uuid
        card_id:
          type: string
          format: uuid
        user_id:
          type:
            - string
            - 'null'
          format: uuid
        body:
          type: string
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
        author_display_name:
          type:
            - string
            - 'null'
      additionalProperties: true
    AgileHistoryEvent:
      type: object
      required:
        - id
        - project_id
        - org_id
        - team_id
        - timestamp
        - sequence
        - entity_id
        - entity_type
        - user_id
        - event_type
        - event_data
        - author_display_name
      properties:
        id:
          type: string
          format: uuid
        project_id:
          type:
            - string
            - 'null'
          format: uuid
        org_id:
          type:
            - string
            - 'null'
          format: uuid
        team_id:
          type:
            - string
            - 'null'
          format: uuid
        timestamp:
          type:
            - string
            - 'null'
          format: date-time
        sequence:
          $ref: '#/components/schemas/HistoryHeadSequence'
        entity_id:
          type: string
          format: uuid
        entity_type:
          type: string
          enum:
            - card
            - sprint
            - team
            - status
        user_id:
          type:
            - string
            - 'null'
          format: uuid
        event_type:
          type: string
          enum:
            - created
            - deleted
            - opened
            - closed
            - ownership_transfer_requested
            - ownership_transfer_declined
            - ownership_transferred
            - field_updated
            - status_changed
            - sprint_added
            - sprint_removed
            - team_added
            - team_removed
            - card_added
            - card_removed
            - tag_added
            - tag_removed
            - user_link_added
            - user_link_removed
            - reference_added
            - reference_removed
            - card_link_added
            - card_link_removed
            - card_mentioned
            - comment_added
            - comment_updated
            - comment_deleted
        event_data:
          type: object
          description: >-
            For `field_updated`, `field` may be `resolution` and `old`/`new`
            carry the Markdown values.
          additionalProperties: true
        author_display_name:
          type:
            - string
            - 'null'
      additionalProperties: false
    NullableHistoryHeadId:
      type:
        - string
        - 'null'
      format: uuid
      description: >-
        Latest committed card-history row ID; null only before a card has
        history.
    NullableHistoryHeadSequence:
      type:
        - string
        - 'null'
      pattern: ^\d+$
      description: Globally monotonic card-history sequence.
    CardHistoryContext:
      type: object
      required:
        - users
        - tags
        - cards
        - references
      properties:
        users:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/CardHistoryUser'
        tags:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/AgileCardTag'
        cards:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/AgileCard'
        references:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/AgileCardObjectLink'
      additionalProperties: false
    CardTeamOption:
      type: object
      required:
        - id
        - name
        - organizationId
        - organizationName
        - statuses
        - sprints
        - isPlaced
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        organizationId:
          type: string
          format: uuid
        organizationName:
          type:
            - string
            - 'null'
        statuses:
          type: array
          items:
            $ref: '#/components/schemas/CardTeamOptionStatus'
        sprints:
          type: array
          items:
            $ref: '#/components/schemas/CardTeamOptionSprint'
        isPlaced:
          type: boolean
      additionalProperties: false
    ErrorEnvelope:
      description: >
        The error shape for every failure on this API, whether it was refused by
        the

        credential layer before reaching a domain or by the domain itself.


        Branch on `code`, which is stable. `message` is for a person reading a
        log or

        a dialog and may be reworded. `details` carries fields specific to one

        failure — a project-limit refusal reports its numbers there — and is
        absent

        when there are none.
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              additionalProperties: true
          additionalProperties: true
      additionalProperties: true
    TeamVisibility:
      type: string
      enum:
        - private
        - internal
    TeamStatusCloseMode:
      type: string
      enum:
        - 'off'
        - manual
        - automatic
    HistoryHeadSequence:
      type: string
      pattern: ^\d+$
      description: Globally monotonic card-history sequence.
    CardHistoryUser:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
      additionalProperties: false
    CardTeamOptionStatus:
      type: object
      required:
        - id
        - name
        - color
        - transitionState
        - closeMode
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        color:
          type: string
        transitionState:
          $ref: '#/components/schemas/TeamTransitionState'
        closeMode:
          $ref: '#/components/schemas/TeamStatusCloseMode'
      additionalProperties: false
    CardTeamOptionSprint:
      type: object
      required:
        - id
        - name
        - status
        - startDate
        - endDate
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        status:
          $ref: '#/components/schemas/TeamSprintStatus'
        startDate:
          type:
            - string
            - 'null'
          format: date-time
        endDate:
          type:
            - string
            - 'null'
          format: date-time
      additionalProperties: false
    TeamTransitionState:
      type: string
      enum:
        - not_started
        - started
        - closed
    TeamSprintStatus:
      type: string
      enum:
        - planned
        - active
        - completed
  responses:
    Unauthorized:
      description: >
        No credential was supplied, or the supplied credential is malformed,
        expired,

        or revoked. A credential that is present but unusable is never
        downgraded to

        an anonymous request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: >
        Authenticated but not authorized. Either the acting user lacks the
        required

        resource permission, the key's scope ceiling excludes it, or the
        endpoint

        rejects this credential type (`CREDENTIAL_NOT_PERMITTED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: >
        The resource does not exist in the parent named by the path, or is
        hidden

        from the caller. Absence and privacy denial are deliberately

        indistinguishable so project, organization, and private-team existence

        cannot be probed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: Request rate exceeded, either globally or for this key.
      headers:
        Retry-After:
          schema:
            type: integer
            minimum: 1
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: dav_ak_live_... or dav_ak_test_...
      x-default: dav_ak_live_your_token
      description: >
        Personal access token. The scopes granted at issuance determine both
        which

        operations the key may call and the ceiling on the resource permissions
        it

        can exercise. Each scope family is a ladder: `projects:manage` implies

        `projects:write` and `projects:read`; `cards:manage` implies
        `cards:write`

        and `cards:read`; and `teams:manage` implies `teams:write` and
        `teams:read`.

        These are named API capability bundles, not blanket domain roles:

        `manage` exposes only the permissions enumerated for that scope and
        never

        bypasses the acting user's current role-based access.

````