---
title: "Add Notion pages"
method: POST
path: "/v2/add/notion"
tags: ["Add Library"]
---

# Add Notion pages

`POST /v2/add/notion`

Submit selected Notion pages for documentation processing. Requires a connected Notion account and a team project.

## Request body

- object
  - `workspaceId` string, required — The Notion workspace ID
  - `workspaceName` string, required — The Notion workspace name
  - `pageIds` string[], required — List of Notion page IDs to index.
  - `title` string, required — Title for the library
  - `description` string, required — Description of the library
  - `projectId` string — The team project ID to associate these Notion pages with

## Response `200`

Library submitted successfully for processing

- AddLibraryResponse — Response after successfully submitting a library
  - `libraryName` string, required — The library identifier assigned — the URL path of the library on context7.com. `/owner/repo` for GitHub repositories, or `/<source>/<id>` for other sources (e.g., `/vercel/next.js`, `/websites/uploadcare_com`). See [Library ID format](/api-guide#library-id-format).
  - `message` string, required — Human-readable success message

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - Insufficient permissions or plan restrictions
- `409` — Conflict - Resource already exists
- `429` — Too Many Requests - Rate limit exceeded
- `500` — Internal Server Error
- `504` — Gateway Timeout - Processing timed out waiting for logs

---

[API](https://skmtc.net/context7/apis/context7-public-api.md) · [All operations](https://skmtc.net/context7/apis/context7-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/context7/context7-public-api/versions/5e85fc74bff0/schema)
