Libraries

Create a library.

Changed on

Creates a new document library in the caller's active organization.

The name must be unique within the organization and contain only letters, numbers, hyphens, and underscores — it doubles as the URL segment used to address the library in subsequent requests.

Pass source to create a repository-sourced library instead of a plain hand-authored one. source.kind = Public requires source.repoUrl (a raw https://github.com/owner/repo clone URL); source.kind = Private requires source.repositoryId, an id from this organization's configured GitHub repositories. Returns 404 when source.repositoryId doesn't resolve to a configured repository. Creating a repository-sourced library does not queue its initial sync — call POST .../libraries/{name}/ingest-run immediately after.

post/api/v1/orgs/{orgId}/libraries

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

orgIdstring required

Request body

namestring required

Human-readable library name, unique in the active organization.

descriptionstring nullable

Optional library description.

Response

Created

idstring required

Stable library identifier.

namestring required

Human-readable library name.

descriptionstring nullable required

Optional library description.

createdAtstring date-time required

Timestamp when the library was created.

updatedAtstring date-time required

Timestamp when the library was last updated.

Changes

    • breaking

      the response property ///// became nullable for the status

    • info

      added the new optional request property /////

    • info

      added the new Notion enum value to the request property /////

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status