Skip to content

Projects

13 endpoints. Every path below is served by workspace-backend behind the gateway at https://api.trilocore.ai.

GET /api/v1/projects

List Projects

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream workspace-backend
curl -X GET https://api.trilocore.ai/api/v1/projects \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

DELETE /api/v1/projects/{uuid}

Archive Project

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 204
Upstream workspace-backend
curl -X DELETE https://api.trilocore.ai/api/v1/projects/{uuid} \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

GET /api/v1/projects/{uuid}

Get Project

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream workspace-backend
curl -X GET https://api.trilocore.ai/api/v1/projects/{uuid} \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

PATCH /api/v1/projects/{uuid}

Update Project

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream workspace-backend

Request body

Field Type Required Constraints
name one of no
status one of no
curl -X PATCH https://api.trilocore.ai/api/v1/projects/{uuid} \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "…", "status": "active"}'

GET /api/v1/projects/{uuid}/audit-logs

List Project Audit Logs

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream workspace-backend
curl -X GET https://api.trilocore.ai/api/v1/projects/{uuid}/audit-logs \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

POST /api/v1/projects/{uuid}/audit-logs

Append Project Audit Log

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 201
Upstream workspace-backend

Request body

Field Type Required Constraints
kind string no one of note, review, handoff
message string yes maxLength 2000, minLength 1
curl -X POST https://api.trilocore.ai/api/v1/projects/{uuid}/audit-logs \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message": "…"}'

GET /api/v1/projects/{uuid}/invitations

List Project Invitations

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream workspace-backend
curl -X GET https://api.trilocore.ai/api/v1/projects/{uuid}/invitations \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

POST /api/v1/projects/{uuid}/invitations

Create Project Invitation

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key required
Success 201
Upstream workspace-backend

Request body

Field Type Required Constraints
access_expires_in_days one of no
expires_in_days one of no
invited_email string yes maxLength 320, minLength 3
invited_user_id one of no
project_id one of no
role string yes maxLength 64, minLength 1
curl -X POST https://api.trilocore.ai/api/v1/projects/{uuid}/invitations \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"invited_email": "…", "role": "…"}'

DELETE /api/v1/projects/{uuid}/invitations/{uuid}

Revoke Project Invitation

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 204
Upstream workspace-backend
curl -X DELETE https://api.trilocore.ai/api/v1/projects/{uuid}/invitations/{uuid} \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

GET /api/v1/projects/{uuid}/members

List Project Members

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream workspace-backend
curl -X GET https://api.trilocore.ai/api/v1/projects/{uuid}/members \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

POST /api/v1/projects/{uuid}/members

Add Project Member

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 201
Upstream workspace-backend

Request body

Field Type Required Constraints
expires_at one of no
principal_id string yes maxLength 128, minLength 1
principal_label one of no
principal_type string yes maxLength 32, minLength 1
role string yes maxLength 64, minLength 1
starts_at one of no
curl -X POST https://api.trilocore.ai/api/v1/projects/{uuid}/members \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"principal_type": "…", "principal_id": "…", "role": "…"}'

DELETE /api/v1/projects/{uuid}/members/{uuid}

Revoke Project Member

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 204
Upstream workspace-backend
curl -X DELETE https://api.trilocore.ai/api/v1/projects/{uuid}/members/{uuid} \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

GET /api/v1/projects/{uuid}/overview

Project Overview

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream workspace-backend
curl -X GET https://api.trilocore.ai/api/v1/projects/{uuid}/overview \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"