> ## 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.

# List authors

> Get a paginated list of authors who have published posts



## OpenAPI

````yaml https://api.marblecms.com/openapi.json get /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:
    get:
      tags:
        - Authors
      summary: List authors
      description: Get a paginated list of authors who have published posts
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
            example: '10'
            description: Number of items per page (1-100)
          required: false
          description: Number of items per page (1-100)
          name: limit
          in: query
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            default: 1
            example: '1'
            description: Page number
          required: false
          description: Page number
          name: page
          in: query
      responses:
        '200':
          description: Paginated list of authors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthorsListResponse'
        '400':
          description: Invalid query parameters or page number
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/Error'
                  - $ref: '#/components/schemas/PageNotFound'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
components:
  schemas:
    AuthorsListResponse:
      type: object
      properties:
        authors:
          type: array
          items:
            $ref: '#/components/schemas/Author'
        pagination:
          $ref: '#/components/schemas/Pagination'
      required:
        - authors
        - pagination
    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
    PageNotFound:
      type: object
      properties:
        error:
          type: string
          enum:
            - Invalid page number
        details:
          type: object
          properties:
            message:
              type: string
              example: Page 10 does not exist.
            totalPages:
              type: integer
              example: 5
            requestedPage:
              type: integer
              example: 10
          required:
            - message
            - totalPages
            - requestedPage
      required:
        - error
        - details
    ServerError:
      type: object
      properties:
        error:
          type: string
          example: Internal server error
        message:
          type: string
          example: Failed to fetch resource
      required:
        - error
    Author:
      type: object
      properties:
        id:
          type: string
          example: cryitfjp3456lm06xfpzcgl0
        name:
          type: string
          example: John Doe
        image:
          type: string
          nullable: true
          example: https://media.marblecms.com/avatar.jpg
        slug:
          type: string
          example: john-doe
        bio:
          type: string
          nullable: true
          example: Technical writer and developer
        role:
          type: string
          nullable: true
          example: Editor
        socials:
          type: array
          items:
            $ref: '#/components/schemas/Social'
        count:
          type: object
          properties:
            posts:
              type: integer
              example: 12
          required:
            - posts
          description: Number of published posts by this author
      required:
        - id
        - name
        - image
        - slug
        - bio
        - role
        - socials
    Pagination:
      type: object
      properties:
        limit:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          example: 10
        currentPage:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          example: 1
        nextPage:
          type: integer
          nullable: true
          example: 2
        previousPage:
          type: integer
          nullable: true
          example: null
        totalPages:
          type: integer
          example: 5
        totalItems:
          type: integer
          example: 42
      required:
        - limit
        - currentPage
        - nextPage
        - previousPage
        - totalPages
        - totalItems
    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

````