codeAPI Reference

REST API Reference

Build custom workflows and integrate RokMail into your existing tools.

Base URL
https://api.rokmail.com/api
Authentication
Authorization: Bearer <token>
lock
All endpoints except /auth/login and /auth/signup require a Bearer token obtained from the login endpoint. Pass it as an Authorization header on every request.

Authentication

POST/auth/signupCreate a new accountexpand_more
POST/auth/loginSign in to existing accountexpand_more

Aliases

GET/aliasesList all aliases for the organisationexpand_more
POST/aliasesCreate a new aliasexpand_more
PUT/aliases/:idUpdate an aliasexpand_more
DELETE/aliases/:idDelete an aliasexpand_more

Emails

GET/emailsList emails (paginated)expand_more
GET/emails/:idGet full email contentexpand_more
POST/emails/sendSend an outbound email via SMTPexpand_more

Team

GET/teamList all team membersexpand_more
POST/team/inviteInvite a new team memberexpand_more
DELETE/team/:idRemove a team memberexpand_more

Routing Rules

GET/rulesList all routing rulesexpand_more
POST/rulesCreate a routing ruleexpand_more
PUT/rules/:idUpdate a rule or toggle active stateexpand_more
DELETE/rules/:idDelete a routing ruleexpand_more