# Create a new library Creates a new library within an account. Libraries can be bound to workspaces to provide access to external resources via their root URL. Endpoint: POST /accounts/{accountId}/libraries Version: 1.0.0 Security: bearerAuth ## Path parameters: - `accountId` (string, required) Short account ID with scd- prefix Example: "scd-k2j8n4m1" ## Request fields (application/json): - `name` (string, required) Name of the library Example: "Research Library" - `rootUrl` (string, required) Root URL of the library Example: "https://library.example.com" - `urlFilter` (string) Regular expression to filter URLs when building the library. If not provided, uses rootUrl as prefix Example: "https://library\\.example\\.com/docs/.*" ## Response 201 fields (application/json): - `id` (string, required) Example: "123e4567-e89b-12d3-a456-426614174001" - `name` (string, required) Example: "Research Library" - `rootUrl` (string, required) Example: "https://library.example.com" - `urlFilter` (string,null) Regular expression to filter URLs when building the library. If not provided, uses rootUrl as prefix Example: "https://library\\.example\\.com/docs/.*" - `accountId` (string, required) Example: "scd-k2j8n4m1" - `createdAt` (string, required) Example: "2024-01-15T10:30:00Z" - `updatedAt` (string,null, required) Example: "2024-01-15T14:30:00Z" ## Response 400 fields ## Response 401 fields