Reference
REST API
59 routes under https://prubex.com/api/v1, each running the MCP tool of the same name with the same keys, scopes and approvals. Send an API key as a bearer token.
curl -s https://prubex.com/api/v1/accounts \
-H "Authorization: Bearer pbx_live_YOUR_KEY"The full description, with every request and response schema: openapi.json or openapi.yaml. Errors use the same codes as MCP: see Errors.
- POST/
mail/ searchSearch mail across accounts - GET/
mail/ messagesList messages in a folder - GET/
mail/ messages/ {message_id}Read a message - GET/
mail/ threads/ {thread_id}Read a conversation - GET/
mail/ changesWhat's new since I last looked - GET/
mail/ foldersList folders and labels - GET/
mail/ attachments/ {attachment_id}Get an attachment - POST/
mail/ sendSend an email - POST/
mail/ messages/ {message_id}/ replyReply to an email - POST/
mail/ messages/ {message_id}/ forwardForward an email - POST/
mail/ draftsCreate a draft - POST/
mail/ drafts/ {draft_id}/ sendSend a draft - POST/
mail/ validate-sendCheck whether a send is allowed - POST/
mail/ messages/ {message_id}/ moveMove a message to a folder - POST/
mail/ messages/ {message_id}/ archiveArchive a message - POST/
mail/ messages/ {message_id}/ trashMove a message to Trash - POST/
mail/ messages/ {message_id}/ readMark read or unread - POST/
mail/ messages/ {message_id}/ flagFlag or star a message - GET/
mail/ draftsList drafts - PATCH/
mail/ drafts/ {draft_id}Edit a draft - DELETE/
mail/ drafts/ {draft_id}Discard a draft - GET/
mail/ labelsList labels and categories - POST/
mail/ messages/ {message_id}/ labelsAdd or remove labels - POST/
mail/ foldersCreate a folder - PATCH/
mail/ folders/ {folder_id}Rename a folder - GET/
mail/ messages/ {message_id}/ rawGet the raw source of a message
Calendar
- GET/
calendar/ calendarsList calendars - GET/
calendar/ eventsList events across calendars - GET/
calendar/ events/ {event_id}Get an event - POST/
calendar/ eventsCreate an event - PATCH/
calendar/ events/ {event_id}Change an event - DELETE/
calendar/ events/ {event_id}Delete or cancel an event - POST/
calendar/ events/ {event_id}/ respondAccept or decline an invitation - POST/
calendar/ free-busyGet free/busy times - POST/
calendar/ meeting-timesFind meeting times - GET/
calendar/ agendaDay or week agenda - GET/
calendar/ events/ {event_id}/ instancesOccurrences of a recurring event
Accounts and profiles
- GET/
accountsList connected accounts - GET/
accounts/ {account_id}Get one account - GET/
accounts/ healthHealth of every account - GET/
accounts/ {account_id}/ healthHealth of one account - POST/
accounts/ connect-linksLink to connect a new account - POST/
accounts/ {account_id}/ moveMove an account to a profile - POST/
accounts/ {account_id}/ pausePause an account - POST/
accounts/ {account_id}/ resumeResume a paused account - GET/
profilesList profiles - GET/
profiles/ {profile_id}Get one profile - POST/
profilesCreate a profile - PATCH/
profiles/ {profile_id}Rename or recolour a profile - DELETE/
profiles/ {profile_id}Delete a profile - GET/
accounts/ {account_id}/ policyRead an account's sending policy
Approvals, uploads and help
- GET/
overviewOverview of your Prubex access - GET/
docs/ searchSearch the Prubex docs - GET/
approvalsList approval requests - GET/
approvals/ {approval_id}Check an approval request - POST/
approvals/ {approval_id}/ cancelWithdraw an approval request - POST/
attachments/ upload-linksLink for the user to upload files - GET/
attachments/ uploads/ {upload_id}Check an upload - GET/
usageUsage and estimated cost