Maxim Logo
Log Repositories

Create a new log repository

Create a new log repository

POST
/v1/log-repositories

Authorization

x-maxim-api-key<token>

API key for authentication

In: header

Request Body

application/jsonOptional
nameRequiredstring

Name of the log repository

descriptionstring

Optional description for the log repository

workspaceIdRequiredstring

Unique identifier for the workspace

folderIdstring

Optional ID of the folder to create the repository in

customPricingStructureIdstring

Optional custom pricing structure ID

curl -X POST "https://api.getmaxim.ai/v1/log-repositories" \
  -H "x-maxim-api-key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": "string",
    "workspaceId": "string",
    "folderId": "string",
    "customPricingStructureId": "string"
  }'

Log repository created successfully

{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "workspaceId": "string",
    "folderId": "string",
    "config": {},
    "customPricingStructureId": "string",
    "createdAt": "string",
    "updatedAt": "string"
  }
}