Skip to content
This page was generated and translated with the assistance of AI. If you spot any inaccuracies, feel free to help improve it. Edit on GitHub

API Endpoints Reference

This page provides a complete reference for all OpenPR REST API endpoints. All endpoints require authentication unless noted otherwise.

Authentication

MethodEndpointDescriptionAuth
POST/api/auth/registerCreate a new accountNo
POST/api/auth/loginLogin and receive tokensNo
POST/api/auth/refreshRefresh access tokenNo
GET/api/auth/meGet current user infoYes

Workspaces

MethodEndpointDescription
GET/api/workspacesList user's workspaces
POST/api/workspacesCreate a workspace
GET/api/workspaces/:idGet workspace details
PUT/api/workspaces/:idUpdate workspace
DELETE/api/workspaces/:idDelete workspace (owner only)

Workspace Members

MethodEndpointDescription
GET/api/workspaces/:id/membersList members
POST/api/workspaces/:id/membersAdd a member
PUT/api/workspaces/:id/members/:user_idUpdate member role
DELETE/api/workspaces/:id/members/:user_idRemove member

Bot Tokens

MethodEndpointDescription
GET/api/workspaces/:id/botsList bot tokens
POST/api/workspaces/:id/botsCreate bot token
DELETE/api/workspaces/:id/bots/:bot_idDelete bot token

Projects

MethodEndpointDescription
GET/api/workspaces/:ws_id/projectsList projects
POST/api/workspaces/:ws_id/projectsCreate project
GET/api/workspaces/:ws_id/projects/:idGet project with counts
PUT/api/workspaces/:ws_id/projects/:idUpdate project
DELETE/api/workspaces/:ws_id/projects/:idDelete project

Issues (Work Items)

MethodEndpointDescription
GET/api/projects/:id/issuesList issues (pagination, filters)
POST/api/projects/:id/issuesCreate issue
GET/api/issues/:idGet issue by UUID
PATCH/api/issues/:idUpdate issue fields
DELETE/api/issues/:idDelete issue

Issue Fields (Create/Update)

json
{
  "title": "string (required on create)",
  "description": "string (markdown)",
  "state": "backlog | todo | in_progress | done",
  "priority": "low | medium | high | urgent",
  "assignee_id": "uuid",
  "sprint_id": "uuid",
  "due_at": "ISO 8601 datetime"
}

Board

MethodEndpointDescription
GET/api/projects/:id/boardGet kanban board state

Comments

MethodEndpointDescription
GET/api/issues/:id/commentsList comments on an issue
POST/api/issues/:id/commentsCreate a comment
DELETE/api/comments/:idDelete a comment

Labels

MethodEndpointDescription
GET/api/labelsList all workspace labels
POST/api/labelsCreate a label
PUT/api/labels/:idUpdate label
DELETE/api/labels/:idDelete label
POST/api/issues/:id/labelsAdd label to issue
DELETE/api/issues/:id/labels/:label_idRemove label from issue

Sprints

MethodEndpointDescription
GET/api/projects/:id/sprintsList sprints
POST/api/projects/:id/sprintsCreate sprint
PUT/api/sprints/:idUpdate sprint
DELETE/api/sprints/:idDelete sprint

Proposals

MethodEndpointDescription
GET/api/proposalsList proposals
POST/api/proposalsCreate proposal
GET/api/proposals/:idGet proposal details
POST/api/proposals/:id/voteCast a vote
POST/api/proposals/:id/submitSubmit for voting
POST/api/proposals/:id/archiveArchive proposal

Governance

MethodEndpointDescription
GET/api/governance/configGet governance configuration
PUT/api/governance/configUpdate governance configuration
GET/api/governance/audit-logsList governance audit logs

Decisions

MethodEndpointDescription
GET/api/decisionsList decisions
GET/api/decisions/:idGet decision details

Trust Scores

MethodEndpointDescription
GET/api/trust-scoresList trust scores
GET/api/trust-scores/:user_idGet user trust score
GET/api/trust-scores/:user_id/historyGet score history
POST/api/trust-scores/:user_id/appealsFile an appeal

Veto

MethodEndpointDescription
GET/api/vetoList veto events
POST/api/vetoCreate veto
POST/api/veto/:id/escalateEscalate a veto

AI Agents

MethodEndpointDescription
GET/api/projects/:id/ai-agentsList AI agents
POST/api/projects/:id/ai-agentsRegister AI agent
GET/api/projects/:id/ai-agents/:agent_idGet agent details
PUT/api/projects/:id/ai-agents/:agent_idUpdate agent
DELETE/api/projects/:id/ai-agents/:agent_idRemove agent

AI Tasks

MethodEndpointDescription
GET/api/projects/:id/ai-tasksList AI tasks
POST/api/projects/:id/ai-tasksCreate AI task
PUT/api/projects/:id/ai-tasks/:task_idUpdate task status
POST/api/projects/:id/ai-tasks/:task_id/callbackTask callback

File Upload

MethodEndpointDescription
POST/api/v1/uploadUpload file (multipart/form-data)

Supported types: images (PNG, JPG, GIF, WebP), documents (PDF, TXT), data (JSON, CSV, XML), archives (ZIP, GZ), logs.

Webhooks

MethodEndpointDescription
GET/api/workspaces/:id/webhooksList webhooks
POST/api/workspaces/:id/webhooksCreate webhook
PUT/api/workspaces/:id/webhooks/:wh_idUpdate webhook
DELETE/api/workspaces/:id/webhooks/:wh_idDelete webhook
GET/api/workspaces/:id/webhooks/:wh_id/deliveriesDelivery log
MethodEndpointDescription
GET/api/search?q=<query>Full-text search across all entities

Admin

MethodEndpointDescription
GET/api/admin/usersList all users (admin only)
PUT/api/admin/users/:idUpdate user (admin only)

Health

MethodEndpointDescriptionAuth
GET/healthHealth checkNo

Next Steps

Released under the Apache-2.0 License.