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

# Create a new log repository

> Create a new log repository



## OpenAPI

````yaml /public-apis/openapi/log-repositories.json post /v1/log-repositories
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - log-repositories
  description: API documentation for Maxim SDK log-repositories endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/log-repositories:
    post:
      tags:
        - Log repository
      summary: Create a new log repository
      description: Create a new log repository
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Name of the log repository
                description:
                  type: string
                  description: Optional description for the log repository
                workspaceId:
                  type: string
                  description: Unique identifier for the workspace
                folderId:
                  type: string
                  description: Optional ID of the folder to create the repository in
                customPricingStructureId:
                  type: string
                  description: Optional custom pricing structure ID
              required:
                - name
                - workspaceId
      responses:
        '201':
          description: Log repository created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/LogRepository'
                required:
                  - data
        '400':
          description: Invalid request parameters
        '404':
          description: Workspace not found
      security:
        - ApiKeyAuth: []
components:
  schemas:
    LogRepository:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        workspaceId:
          type: string
        folderId:
          type: string
        config:
          type: object
          properties: {}
        customPricingStructureId:
          type: string
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - workspaceId
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````