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

# Create Deck

> Generates presentation decks based on conversations, deals, or other content. This endpoint creates structured presentations with key insights and data visualizations.



## OpenAPI

````yaml /api-reference/openapi.json post /create_deck
openapi: 3.0.1
info:
  title: Attention Service V2
  description: Attention Service API V2
  termsOfService: https://www.attention.com/terms-of-use
  contact:
    name: Attention Team
    url: https://docs.attention.com/welcome
    email: support@attention.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.8.0
servers:
  - url: https://api.attention.tech/v2
security:
  - APIKeyHeader: []
paths:
  /create_deck:
    post:
      tags:
        - Tool
        - CreateDeck
      summary: Create Deck
      description: >-
        Generates presentation decks based on conversations, deals, or other
        content. This endpoint creates structured presentations with key
        insights and data visualizations.
      operationId: createDeck
      requestBody:
        description: Request containing the content and parameters for deck generation
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDeckRequest'
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/CreateDeckRequest'
        required: true
      responses:
        '200':
          description: Deck successfully generated and ready for use
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateDeckResponse'
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/CreateDeckResponse'
        '401':
          description: Authentication failed - valid API key required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Unexpected error occurred during deck generation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateDeckRequest:
      required:
        - context_id
        - users_to_share
      type: object
      properties:
        users_to_share:
          type: array
          items:
            type: string
        context_id:
          type: string
        deck_type:
          type: string
        slides:
          type: integer
        structure:
          type: array
          items:
            $ref: '#/components/schemas/OutlineItem'
        additional_instructions:
          type: string
      example:
        context_id: deal_123
        users_to_share:
          - user1@example.com
          - user2@example.com
        deck_type: sales_presentation
        slides: 10
        structure:
          - layout_instruction: Use a two-column layout
            content_instruction: Include key metrics and competitor analysis
        additional_instructions: Focus on enterprise features and ROI
    CreateDeckResponse:
      required:
        - emails_shared_with
        - error
        - link
        - success
      type: object
      properties:
        success:
          type: boolean
        link:
          type: string
        error:
          type: string
        emails_shared_with:
          type: array
          items:
            type: string
      example:
        success: true
        link: https://example.com/deck/123
        error: ''
        emails_shared_with:
          - user1@example.com
          - user2@example.com
    Error:
      type: object
      properties:
        id:
          type: string
          description: A unique identifier for the error.
        status:
          type: string
          description: >-
            The HTTP status code applicable to this problem, expressed as a
            string value.
        code:
          type: string
          description: An application-specific error code, expressed as a string value.
        title:
          type: string
          description: A short, human-readable summary of the problem.
        detail:
          type: string
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
        source:
          type: object
          properties:
            pointer:
              type: string
            parameter:
              type: string
        meta:
          type: object
          properties: {}
      example:
        id: not_found_error
        status: '404'
        code: '404'
        title: Not Found Error
        detail: The requested resource was not found
        source:
          pointer: /data/attributes/id
    OutlineItem:
      type: object
      properties:
        layout_instruction:
          type: string
        content_instruction:
          type: string
      example:
        layout_instruction: Use a two-column layout
        content_instruction: Include key metrics and competitor analysis
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      name: Authorization
      in: header

````