Skip to main content

API Overview

All ISE Parliament API endpoints are prefixed with /api/v1. Most require JWT Bearer authentication.

Base URL

When running locally: http://localhost:3000/api/v1

Authentication

  1. Login: POST /api/v1/auth/login with email and password
  2. Use the accessToken in the response
  3. Send with each request: Authorization: Bearer <accessToken>
  4. Refresh when expired: POST /api/v1/auth/refresh with refreshToken

Key Endpoint Groups

GroupBase PathDescription
Auth/authLogin, logout, refresh, MFA
Users/usersUser management, profiles
Sittings/sittingsSittings, attendance, floor control
Motions/motionsMotions and amendments
Voting/votingVote sessions, cast, results
Bills/billsBills, amendments, participation
Committees/committeesCommittee management
Petitions/petitionsPublic petitions
Financial/financialBPS, estimates, supply resolutions
Broadcast/broadcastLive streams, redaction
Audit/auditAudit logs (Admin)
Roles/rolesRole management (Admin)
Permissions/permissionsSystem permissions reference
Admin/adminSettings, backup (Admin)

Live API Documentation

For interactive exploration, use the Swagger UI or visit /api/v1/docs when the backend is running.