Skip to content

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.

MethodPathPurposeAdditional requirement
GET/chainiesList accessible projectsWorkspace and visibility checks
POST/chainiesCreate a projectproductivity.chainy.create and an eligible workspace role
PATCH/chainies/:idUpdate a projectPermission to edit it
PATCH/chainies/:id/statusChange project statusPermission to edit it
POST/chainies/:id/archiveArchive a projectPermission to edit it
POST/chainies/:id/restoreRestore an archived projectPermission to edit it
GET/chainies/:id/shareRead visibility and share informationOwner
GET/c/:urlShortResolve a shared projectPublic 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:

json
{
  "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 ​

FieldTypeRequirement
titlestringRequired; maximum 150 characters.
idUUIDOptional caller-generated identity. Retrying creation with the same owned ID returns the existing project; it is not an update.
descriptionstringOptional; maximum 500 characters.
categorystringwork, learning, health, finance, projects, research, personal, or custom.
statusstringOptional project status. Usually omit it when creating a project; see status.
visibilitystringprivate, team, or public. Select this explicitly when privacy matters.
isPublicbooleanOlder public-discovery field. Use visibility deliberately; do not infer share access from this flag alone.
targetDateISO 8601 dateOptional target completion date.
colorHexstringOptional color in #RRGGBB format.
instructionstringOptional project guidance for AI; maximum 2,000 characters.
teamIdUUIDOptional 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 .

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 ​

VisibilityIntended audience
privateAuthorized private readers
teamAuthorized workspace readers
publicPublic 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.

Built with purpose. chainabit.com