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

# Get Cards

> Retrieves all cards within a specific workspace

Retrieves all cards within a specific workspace. This endpoint requires a workspace ID parameter to scope the card search to a particular workspace.

## Query Parameters

The workspace parameter is required and should contain the workspace ID obtained from the [Get Workspaces](/api-reference/integration/data/get-workspaces) endpoint.

## Response Details

Returns an array containing card choices formatted for integration platforms:

* **key**: Always "card" to identify the data type
* **choices**: Array of available cards with their details

Each card in the choices array includes:

* **id**: Unique card identifier (use this for sending cards)
* **title**: Card name/title as set in CardClan
* **name**: Same as title (for integration platform compatibility)
* **key**: Same as ID
* **label**: Description of the field type
* **value**: Card identifier for form display

## Use Cases

* **Card Selection**: Present available cards to users in integration platforms
* **Workflow Setup**: Allow users to choose which card to send in automations
* **Validation**: Verify a specific card exists and is accessible
* **Dynamic Content**: Build interfaces that adapt to available cards

## Example Response Structure

```json theme={null}
[
  {
    "key": "card",
    "choices": [
      {
        "key": "60f7b2b5b8f4a20015a4f5a5",
        "label": "Card Id",
        "value": "60f7b2b5b8f4a20015a4f5a5",
        "id": "60f7b2b5b8f4a20015a4f5a5",
        "title": "Welcome Card",
        "name": "Welcome Card"
      }
    ]
  }
]
```


## OpenAPI

````yaml POST /integration/cards
openapi: 3.1.0
info:
  title: CardClan Integration API
  description: >-
    The CardClan Integration API enables third-party applications and automation
    platforms to send personalized digital cards, manage workflows, and
    integrate CardClan's functionality into existing systems.
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://app.cardclan.io/api
security:
  - bearerAuth: []
paths:
  /integration/cards:
    post:
      tags:
        - Data Retrieval
      summary: Get User Cards
      description: Retrieves all cards within a specific workspace
      parameters:
        - name: workspace
          in: query
          required: true
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: Cards retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardsResponse'
        '400':
          description: Workspace parameter is required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CardsResponse:
      type: array
      items:
        type: object
        properties:
          key:
            type: string
            example: card
          choices:
            type: array
            items:
              $ref: '#/components/schemas/Card'
    Error:
      type: object
      properties:
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: Card ID is required
        statusCode:
          type: number
          example: 400
        timestamp:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00.000Z'
    Card:
      type: object
      properties:
        key:
          type: string
          example: 60f7b2b5b8f4a20015a4f5a5
        label:
          type: string
          example: Card Id
        value:
          type: string
          example: 60f7b2b5b8f4a20015a4f5a5
        id:
          type: string
          example: 60f7b2b5b8f4a20015a4f5a5
        title:
          type: string
          example: Welcome Card
        name:
          type: string
          example: Welcome Card
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Enter your CardClan integration key

````