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

# Create Contact Folder

> Create a new folder to organize contacts.



## OpenAPI

````yaml /api-reference/openapi.json post /contacts/folders
openapi: 3.1.0
info:
  title: Truedy API
  description: >-
    Truedy Public API - Build voice AI agents and make automated phone calls.


    ## Authentication

    All requests require **Authorization: Bearer <your_api_key>**.

    Get your API key from the [Truedy Dashboard](https://app.truedy.ai).


    ## Response Format

    All successful responses follow this format:

    ```json

    {
      "data": { /* resource or list of resources */ },
      "meta": {
        "request_id": "req_xxx",
        "ts": "2026-03-03T20:30:21.310278Z"
      },
      "pagination": { /* optional, for list endpoints */ }
    }

    ```


    ## Error Handling

    Errors return appropriate HTTP status codes with structured error messages.
    Always check the `error` field in the response body for details.
  version: 1.0.0
servers:
  - url: https://api.truedy.ai/api/public/v1
    description: Truedy Public API
security:
  - BearerAuth: []
paths:
  /contacts/folders:
    post:
      tags:
        - Contacts
      summary: Create Contact Folder
      description: Create a new folder to organize contacts.
      operationId: create_contact_folder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Folder display name
                  example: VIP Leads
                description:
                  description: Optional description
                  example: High-priority leads for Q2 campaign
                  type:
                    - string
                    - 'null'
            example:
              name: VIP Leads
              description: High-priority leads for Q2 campaign
      responses:
        '201':
          description: Folder created
          content:
            application/json:
              example:
                data:
                  id: folder_abc123
                  name: VIP Leads
                  description: High-priority leads for Q2 campaign
                  contact_count: 0
                  created_at: '2026-04-05T10:22:00Z'
                meta:
                  request_id: req_32e7531c
                  ts: '2026-04-05T10:22:00Z'
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                error:
                  code: bad_request
                  message: Invalid request parameters
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  message: Invalid or missing API key
                  details:
                    reason: 'Include Authorization: Bearer <your_api_key>'
        '404':
          description: Not Found
          content:
            application/json:
              example:
                error:
                  code: not_found
                  message: Folder not found
        '422':
          description: Validation Error
          content:
            application/json:
              example:
                detail:
                  - loc:
                      - body
                      - name
                    msg: field required
                    type: value_error.missing
        '429':
          description: Rate Limit Exceeded
          content:
            application/json:
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests
                  details:
                    reset_at: '2026-04-01T21:00:00Z'
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                error:
                  code: internal_error
                  message: An unexpected error occurred
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication. Include your API key in the Authorization
        header: Bearer <your_api_key>

````