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

# Create author

> Create a new author. Requires a private API key. Plan limits apply.



## OpenAPI

````yaml https://api.marblecms.com/openapi.json post /v1/authors
openapi: 3.1.0
info:
  title: Marble API
  version: 1.0.0
  description: A headless CMS API for managing and delivering content programmatically.
servers:
  - url: https://api.marblecms.com
    description: Production
security:
  - apiKey: []
paths:
  /v1/authors:
    post:
      tags:
        - Authors
      summary: Create author
      description: Create a new author. Requires a private API key. Plan limits apply.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAuthorBody'
      responses:
        '201':
          description: Author created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAuthorResponse'
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Public API key used for write operation or plan limit reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '409':
          description: Author with this slug already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conflict'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
components:
  schemas:
    CreateAuthorBody:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          example: John Doe
        slug:
          type: string
          minLength: 1
          example: john-doe
        bio:
          type: string
          nullable: true
          example: Technical writer and developer
        role:
          type: string
          nullable: true
          example: Editor
        email:
          type: string
          nullable: true
          format: email
          example: john@example.com
        image:
          type: string
          nullable: true
          format: uri
          example: https://media.marblecms.com/avatar.jpg
        socials:
          type: array
          items:
            $ref: '#/components/schemas/SocialInput'
          description: Social media links for this author
      required:
        - name
        - slug
    CreateAuthorResponse:
      type: object
      properties:
        author:
          type: object
          properties:
            id:
              type: string
              example: cryitfjp3456lm06xfpzcgl0
            name:
              type: string
              example: John Doe
            slug:
              type: string
              example: john-doe
            bio:
              type: string
              nullable: true
              example: Technical writer and developer
            role:
              type: string
              nullable: true
              example: Editor
            image:
              type: string
              nullable: true
              example: https://media.marblecms.com/avatar.jpg
            socials:
              type: array
              items:
                $ref: '#/components/schemas/Social'
          required:
            - id
            - name
            - slug
            - bio
            - role
            - image
            - socials
      required:
        - author
    Error:
      type: object
      properties:
        error:
          type: string
          example: Invalid query parameters
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: limit
              message:
                type: string
                example: Expected number, received string
            required:
              - field
              - message
        message:
          type: string
          example: Validation failed
      required:
        - error
    Forbidden:
      type: object
      properties:
        error:
          type: string
          example: Forbidden
        message:
          type: string
          example: >-
            Write operations require a private API key (msk_...). Public keys
            are read-only.
      required:
        - error
        - message
    Conflict:
      type: object
      properties:
        error:
          type: string
          example: Slug already in use
        message:
          type: string
          example: A resource with this slug already exists in this workspace
      required:
        - error
    ServerError:
      type: object
      properties:
        error:
          type: string
          example: Internal server error
        message:
          type: string
          example: Failed to fetch resource
      required:
        - error
    SocialInput:
      type: object
      properties:
        platform:
          type: string
          enum:
            - x
            - twitter
            - github
            - facebook
            - instagram
            - youtube
            - tiktok
            - linkedin
            - website
            - onlyfans
            - discord
            - bluesky
          example: x
        url:
          type: string
          format: uri
          example: https://x.com/johndoe
      required:
        - platform
        - url
    Social:
      type: object
      properties:
        url:
          type: string
          format: uri
          example: https://twitter.com/johndoe
        platform:
          type: string
          example: twitter
      required:
        - url
        - platform
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: Your Marble API key

````