Create a project

Create a new project. Returns the created project on success.

On this page

HTTP request

POST https://api.parsewise.ai/api/v1/projects/

Request Header

Name Required Type Description
X-API-Key Yes string API key with the pw_live_ prefix. See Authentication.

Request Body

Supported content types: application/json, application/x-www-form-urlencoded, multipart/form-data.

Name Required Type Description
name Yes string Human-readable name shown in the UI and in lists.
description No string Short description of what the project covers.
reference_date No string (date) (nullable) Reference date used by agents that need a “today” anchor (e.g. relative date extractions). Defaults to the date the project was created.
auto_attach_document_dimension No boolean When true, the project is created with the system-managed Document dimension set to attach automatically to every new agent, so each agent produces one result per document.
folder_id No string (uuid) (nullable) Folder that contains the new project. Null or omitted places it at the root of the organisation folder tree.

Responses

Status Type Description
201 V1Project

Security

  • ApiKeyAuth — apiKey — in X-API-Key header. API key with pw_live_ prefix.

Python example

import os
import requests

API_KEY = os.environ["PARSEWISE_API_KEY"]
BASE_URL = "https://api.parsewise.ai/api/v1"

body = {
    "name": "...",
    "description": "...",  # optional
    "reference_date": "YYYY-MM-DD",  # optional
    "auto_attach_document_dimension": False,  # optional
    "folder_id": "<uuid>",  # optional
}

resp = requests.post(
    f"{BASE_URL}/projects/",
    headers={"X-API-Key": API_KEY},
    json=body,
)
resp.raise_for_status()
print(resp.json() if resp.content else None)

Definitions

V1Project

A project: the top-level container that groups documents, agents, and extraction results.

Returned by GET /projects/ and GET /projects/{project_id}/; also accepted as the request body for PATCH /projects/{project_id}/, where only the fields you supply are updated. Server-managed fields such as id, created_at, last_visited_at, document_count, and agent_count are read-only.

Name Required Type Description
id Yes string (uuid) Stable identifier for the project (UUID).
name Yes string Human-readable name shown in the UI and in lists.
description No string Short description of what the project covers.
last_visited_at Yes string (date-time) (nullable) Timestamp of the most recent visit to this project.
reference_date No string (date) (nullable) Reference date used by agents that need a “today” anchor (e.g. relative date extractions). Defaults to the date the project was created.
auto_archive_after_days No integer (nullable) Opt-in auto-archival for document-oriented projects: documents uploaded more than this many days ago are automatically moved into an archived project by a daily sweep. Null disables auto-archival.
document_count Yes integer Number of documents currently in the project.
agent_count Yes integer Number of non-draft agents configured on the project.
is_pinned No boolean Whether the project is pinned to the top of the project list.
folder_id No string (uuid) (nullable) Folder that contains this project. Null means the project sits at the root of the organisation folder tree.
project_modules Yes any Per-project overrides for which application modules are enabled, keyed by module name with boolean values. A missing key falls back to the organisation’s default for that module.
target_output_schema Yes any (nullable)  
output_mapping_status Yes string  

V1ProjectCreateRequestRequest

The fields you can set when creating a new project via POST /projects/.

name is required; everything else is optional and falls back to a server-side default. The full project representation (including server-assigned fields such as id and created_at) is returned in the response.

Name Required Type Description
name Yes string Human-readable name shown in the UI and in lists.
description No string Short description of what the project covers.
reference_date No string (date) (nullable) Reference date used by agents that need a “today” anchor (e.g. relative date extractions). Defaults to the date the project was created.
auto_attach_document_dimension No boolean When true, the project is created with the system-managed Document dimension set to attach automatically to every new agent, so each agent produces one result per document.
folder_id No string (uuid) (nullable) Folder that contains the new project. Null or omitted places it at the root of the organisation folder tree.