Skip to main content
GET
/
v1
/
emails
List messages
curl --request GET \
  --url https://api.drin.run/v1/emails \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "from": "<string>",
      "to": [
        "<string>"
      ],
      "subject": "<string>",
      "status": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "nextCursor": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.drin.run/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Drin API key, sent as Authorization: Bearer <key>.

Headers

X-Drin-Product
string

Names the sending project for account-wide keys (alias: X-Drin-Sender). Project-scoped keys may omit it.

Query Parameters

cursor
string

Pagination cursor from a previous response's nextCursor.

limit
integer

Page size.

Required range: 1 <= x <= 100
status
string

Filter by message status (e.g. delivered, bounced).

direction
enum<string>
Available options:
inbound,
outbound
q
string

Search recipient, sender, or subject.

Response

200 - application/json

A page of messages.

data
object[]
nextCursor
string | null