/api/v1/auth/tokenAvailableObtain API access token via client credentials
Auth: None (client credentials)
Public REST API for integrating with EmbassyOS. Access citizen services, appointments, documents, and analytics programmatically.
All API requests require a Bearer token in the Authorization header. Obtain tokens via the OAuth2 client credentials flow: send your client_id and client_secret to POST /api/v1/auth/token to receive an access_token. Use POST /api/v1/auth/refresh to renew before expiry. Tokens are short-lived; implement token caching in your client.
Base URL: https://api.embassyos.com
Obtain, refresh, and revoke API access tokens.
/api/v1/auth/tokenAvailableObtain API access token via client credentials
Auth: None (client credentials)
/api/v1/auth/refreshAvailableRefresh an expiring access token
Auth: None (client credentials)
/api/v1/auth/revokeAvailableRevoke an active access token
Auth: Bearer token
Manage registered citizen profiles and consular registration. Backlog: C12, C13.
/api/v1/citizensComing SoonList registered citizens for a mission (paginated, filterable)
Auth: Bearer token (admin scope)
/api/v1/citizens/:idComing SoonGet full citizen profile including registration details
Auth: Bearer token
/api/v1/citizensComing SoonRegister a new citizen via API (programmatic registration)
Auth: Bearer token (admin scope)
/api/v1/citizens/:idComing SoonUpdate citizen profile fields
Auth: Bearer token
Submit, list, and manage consular service requests with stage tracking.
/api/v1/requestsBetaList service requests with status, type, and date filters
Auth: Bearer token
/api/v1/requests/:idBetaGet request details including timeline and stage history
Auth: Bearer token
/api/v1/requestsBetaSubmit a new service request
Auth: Bearer token
/api/v1/requests/:id/statusComing SoonUpdate request status or transition to next stage
Auth: Bearer token (staff/admin scope)
/api/v1/requests/:id/documentsComing SoonList documents attached to a service request
Auth: Bearer token
/api/v1/requests/:id/notesComing SoonAdd an internal note to a service request (staff/admin)
Auth: Bearer token (staff/admin scope)
Upload, download, verify, and manage citizen documents. Backlog: C12, C13, S9, A12.
/api/v1/documents/uploadComing SoonUpload a document to citizen storage
Auth: Bearer token
/api/v1/documents/:idComing SoonDownload a document (signed URL)
Auth: Bearer token
/api/v1/documents/:idComing SoonDelete a document from storage
Auth: Bearer token
/api/v1/documents/:id/verifyComing SoonMark a document as verified (staff review)
Auth: Bearer token (staff/admin scope)
Book, reschedule, and cancel consular appointments. Backlog: C14, C15, A10.
/api/v1/appointments/slotsBetaList available appointment slots for a mission
Auth: Bearer token
/api/v1/appointmentsBetaBook an appointment for a specific service
Auth: Bearer token
/api/v1/appointments/:idComing SoonReschedule an existing appointment
Auth: Bearer token
/api/v1/appointments/:idComing SoonCancel an appointment
Auth: Bearer token
/api/v1/appointments/slotsComing SoonCreate or update availability slots (admin)
Auth: Bearer token (admin scope)
Manage staff profiles, assignments, and workload. Backlog: S7, S8, S11.
/api/v1/staffComing SoonList staff members for a mission
Auth: Bearer token (admin scope)
/api/v1/staff/:idComing SoonGet staff profile and service assignments
Auth: Bearer token
/api/v1/staff/:id/queueComing SoonGet staff queue (requests assigned by service type)
Auth: Bearer token (staff scope)
/api/v1/staff/:id/assignmentsComing SoonUpdate staff service assignments
Auth: Bearer token (admin scope)
Manage the service catalog and workflow stages. Backlog: A9.
/api/v1/servicesComing SoonList service types in the catalog
Auth: Bearer token
/api/v1/servicesComing SoonAdd a new service type to the catalog
Auth: Bearer token (admin scope)
/api/v1/services/:idComing SoonUpdate service type details or toggle active status
Auth: Bearer token (admin scope)
Service volume, performance metrics, and staff workload. Backlog: A11, S11, P9.
/api/v1/analytics/overviewComing SoonService volume, completion rates, and SLA metrics
Auth: Bearer token (admin scope)
/api/v1/analytics/servicesComing SoonPer-service-type metrics and trends
Auth: Bearer token (admin scope)
/api/v1/analytics/staffComing SoonStaff workload distribution and performance
Auth: Bearer token (admin scope)
In-platform messaging between citizens and staff on service requests. Backlog: C17, S10.
/api/v1/requests/:id/messagesComing SoonList messages on a service request thread
Auth: Bearer token
/api/v1/requests/:id/messagesComing SoonSend a message on a service request thread
Auth: Bearer token
Email and in-app notification delivery. Backlog: X1, C16.
/api/v1/notificationsComing SoonList notifications for the authenticated user
Auth: Bearer token
/api/v1/notifications/:id/readComing SoonMark a notification as read
Auth: Bearer token