Skip to main content
Your workspace can have phone numbers and Agent Mail addresses. The API reads them and the messages they receive. It is read-only: it cannot send SMS or email, buy numbers, or change them. Ids that do not exist or belong to another workspace return 404, without saying which.

Phone numbers

Numbers are shared across the workspace. They are not tied to a particular agent, phone or app.

SMS messages

Each message has id, sender, body and receivedAt. body is the raw text, including any codes. Lusor does not pick out one-time codes for you. sender is the sender as stored, or null. It is not a verified identity. The API key must belong to the workspace in the path. Query parameters:

Agent Mail

GET /v1/emails/addresses lists the workspace’s Agent Mail addresses. Each has id, address, and included: true when the address comes free with your Lusor Phones, false when it is a paid address, null if that could not be read. An empty list is normal if your workspace has no addresses yet. GET /v1/emails/messages?addressId=… lists mail received by one address:
Each message has id, addressId, senderName, senderAddress, subject, body and receivedAt. body is the plain-text body. The sender fields are as stored and are not a verified identity. limit and cursor work as for SMS. With an API key, workspaceId is optional on both mail endpoints, because the key already belongs to one workspace.

Paging

Both message lists are newest first. Pass nextCursor back unchanged as cursor to get older messages. nextCursor is null when there are no older messages.
  • A list is not a snapshot. To see newly received messages, load the first page again.
  • Older messages are removed when their retention period ends.
  • Start paging again from the first page when you change the number, address or sender.
  • Unknown query parameters, and a repeated limit or cursor, return 400.