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

# Create an organization style preset



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/dev/styles
openapi: 3.0.0
info:
  title: Autype Developer API
  description: >-
    Autype Developer API for programmatic document generation.


    ## Authentication

    Use an API key in `X-API-Key`. Autype's trusted MCP service may instead use
    a short-lived, Developer-API-audience OAuth token obtained through
    server-side token exchange. Raw MCP resource tokens, login JWTs, and
    third-party tokens are not accepted.


    ## Rate Limiting

    API requests are rate-limited to 100 requests per minute per API key.


    ## Automation Credits

    Developer API rendering and bulk operations consume automation credits from
    your organization. AI documents, assistant tasks, translations, and AI
    images use separate plan allowances.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.autype.com
    description: Production
security: []
tags:
  - name: Temporary Images
    description: Upload and manage temporary images for document rendering
  - name: Render
    description: Render documents to PDF, DOCX, ODT, or page images
  - name: Bulk Render
    description: Bulk document generation with variable substitution
  - name: Documents
    description: Document variable inspection
  - name: Projects
    description: List organization projects
paths:
  /api/v1/dev/styles:
    post:
      tags:
        - developer-api
      summary: Create an organization style preset
      operationId: StylesController_create_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateStyleDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StyleResponseDto'
      security:
        - mcp-oauth: []
        - api-key: []
components:
  schemas:
    CreateStyleDto:
      type: object
      properties:
        orgId:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
          description: >-
            Organization that owns the style preset. May be omitted only when
            the current user belongs to exactly one organization.
        name:
          type: string
          example: Corporate Blue
          description: Style preset name
        description:
          type: string
          example: Company branding style
        definition:
          type: object
          description: >-
            Reusable style definition. Supports all Defaults fields and may
            include an optional `document` object for page defaults such as
            size, margins, and orientation.
        isDefault:
          type: boolean
          example: false
          description: >-
            Whether this is the default style preset for the organization.
            Organization management permission is required.
      required:
        - name
        - definition
    StyleResponseDto:
      type: object
      properties:
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        orgId:
          type: string
          nullable: true
          example: 550e8400-e29b-41d4-a716-446655440000
        userId:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        name:
          type: string
          example: Corporate Blue
        description:
          type: string
          nullable: true
          example: Company branding style
        definition:
          type: object
          description: >-
            Reusable style definition. Supports all Defaults fields and may
            include an optional `document` object for page defaults such as
            size, margins, and orientation.
        isDefault:
          type: boolean
          example: false
        version:
          type: number
          example: 1
        createdAt:
          format: date-time
          type: string
          example: '2024-01-01T00:00:00.000Z'
        updatedAt:
          format: date-time
          type: string
          example: '2024-01-01T00:00:00.000Z'
      required:
        - id
        - userId
        - name
        - definition
        - isDefault
        - version
        - createdAt
        - updatedAt
  securitySchemes:
    mcp-oauth:
      scheme: bearer
      bearerFormat: Autype Developer API OAuth token
      type: http
      description: >-
        Short-lived, Developer-API-audience token obtained by the trusted MCP
        service through token exchange (mcp_at_...). Raw MCP resource tokens are
        rejected.
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key (starts with ak_...)

````