Projects
A project organizes related work toward an outcome. Projects can hold tasks and associated Chain workflows, and can be shared with collaborators. The HTTP resource remains /chainies; fields such as chainyId and the existing documentation URL remain unchanged.
Endpoints
Paths are relative to https://api.chainabit.com/api/v1. These operations use a JWT Bearer access token, except a public share read. Resource visibility and selected workspace permissions still apply.
| Method | Path | Purpose | Additional requirement |
|---|---|---|---|
| GET | /chainies | List accessible projects | Workspace and visibility checks |
| POST | /chainies | Create a project | productivity.chainy.create and an eligible workspace role |
| PATCH | /chainies/:id | Update a project | Permission to edit it |
| PATCH | /chainies/:id/status | Change project status | Permission to edit it |
| POST | /chainies/:id/archive | Archive a project | Permission to edit it |
| POST | /chainies/:id/restore | Restore an archived project | Permission to edit it |
| GET | /chainies/:id/share | Read visibility and share information | Owner |
| GET | /c/:urlShort | Resolve a shared project | Public access or an authorized signed-in reader |
Developer token access
A developer token carrying projects:read can list Projects with GET /chainies and read a single Project, directly as a Bearer token. A token without that scope receives 403. Every other Project route, including all writes, refuses a developer token with 403.
Check rate-limit responses rather than assuming a fixed request allowance for every operation.
Create a project
Start with the shared environment. This example explicitly creates a private project:
PROJECT_RESPONSE="$(curl --fail-with-body -sS -X POST "https://api.chainabit.com/api/v1/chainies" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"Product launch","description":"Prepare and review the launch materials.","category":"work","visibility":"private"}')"
printf '%s\n' "$PROJECT_RESPONSE" | jq .
export CHAINY_ID="$(printf '%s\n' "$PROJECT_RESPONSE" | jq -er '.data.id')"Expect 201 Created. CHAINY_ID contains the real project UUID returned by the API. Selected response fields look like this:
{
"data": {
"id": "00000000-0000-4000-8000-000000000001",
"title": "Product launch",
"description": "Prepare and review the launch materials.",
"category": "work",
"status": "active",
"visibility": "private"
}
}Optional fields can be absent. For example, an unset share token is omitted rather than guaranteed to appear as urlShort: null.
Create fields
| Field | Type | Requirement |
|---|---|---|
title | string | Required; maximum 150 characters. |
id | UUID | Optional caller-generated identity. Retrying creation with the same owned ID returns the existing project; it is not an update. |
description | string | Optional; maximum 500 characters. |
category | string | work, learning, health, finance, projects, research, personal, or custom. |
status | string | Optional project status. Usually omit it when creating a project; see status. |
visibility | string | private, team, or public. Select this explicitly when privacy matters. |
isPublic | boolean | Older public-discovery field. Use visibility deliberately; do not infer share access from this flag alone. |
targetDate | ISO 8601 date | Optional target completion date. |
colorHex | string | Optional color in #RRGGBB format. |
instruction | string | Optional project guidance for AI; maximum 2,000 characters. |
teamId | UUID | Optional Team in the same workspace. Scopes visibility; it does not grant execution, approval, or spending authority. |
Business workspace access
Select the workspace with X-Account-Id and X-Workspace-Id. A role that can create content and the relevant entitlement are separate requirements. Workspace owner, admin, and member roles can create projects; viewer, analyst, and billing roles cannot.
An insufficient workspace role returns 403 with enterprise_insufficient_workspace_role. A caller without access to the requested account is refused independently. See workspace permissions and errors.
List projects
curl --fail-with-body -sS "https://api.chainabit.com/api/v1/chainies?limit=20&offset=0" \
-H "Authorization: Bearer $TOKEN" | jq .The response has a data array and pagination metadata including limit, offset, total, and hasNextPage. The default page size is 20. List results include activity and collaborator information when available; they do not include the project's AI instruction.
Supported filters include status, category, visibility, isPublic, targetDateFrom, targetDateTo, createdFrom, and createdTo. Date filters use ISO 8601 values. Use the project ID from a create or list response for later operations.
Update project status
curl --fail-with-body -sS -X PATCH "https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/status" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"status":"completed"}' | jq .The project status enum includes active, paused, completed, abandoned, archived, and trashed. Use archive and restore operations for those lifecycle transitions rather than treating every status as freely interchangeable. A status change does not complete the project's individual tasks or execute a Chain.
Archive and restore
curl --fail-with-body -sS -X POST "https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/archive" \
-H "Authorization: Bearer $TOKEN" | jq .curl --fail-with-body -sS -X POST "https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/restore" \
-H "Authorization: Bearer $TOKEN" | jq .Both operations return 201 Created with the resulting project under data. Archiving is different from deleting work or revoking a collaborator's access.
Sharing a project
| Visibility | Intended audience |
|---|---|
private | Authorized private readers |
team | Authorized workspace readers |
public | Public shared representation, without authentication |
Publishing is an explicit action. Set visibility to public only when you intend the project to be visible publicly. Use the owner-only share operation to inspect the current result:
curl --fail-with-body -sS "https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/share" \
-H "Authorization: Bearer $TOKEN" | jq .The result includes visibility and, when available, urlShort and shareUrl. Public reads return a limited representation; they do not expose private instructions or tenant identifiers. Do not assume that sharing a project makes its source files or generated content universally accessible.
For collaboration within a workspace, use project collaborators. For individual work items, continue with the task tutorial.