4 operations. Guide: Send as a person from a mailbox. Requests and responses are JSON with snake_case fields; authenticate with Authorization: Bearer <api key>. The examples assume a client built as in SDKs and the command line.

List connected mailboxes

GET /v1/mailboxes

Operation listMailboxes, SDK minket.mailboxes.list. Keys: full access. Test keys work on test-mode data.

Response

200 Success: object.

FieldTypeRequiredDescription
object"list"yes
dataarray of Mailboxyes
data[].idstringyesA UUID.
data[].object"mailbox"yes
data[].project_idstringyesA UUID.
data[].providerone of "gmail", "microsoft", "smtp"yes
data[].addressstringyes
data[].display_namestring or nullyes
data[].statusone of "connected", "needs_reconnect", "disabled"yes
data[].saves_sent_copybooleanyes
data[].last_used_atstring (date-time) or nullyesAn ISO 8601 timestamp with timezone, for example 2026-10-24T18:00:00.000Z.
data[].last_errorstring or nullyes
data[].created_atstring (date-time)yesAn ISO 8601 timestamp with timezone, for example 2026-10-24T18:00:00.000Z.
has_morebooleanyes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, with the error body.

Examples

curl
curl https://api.minket.com/v1/mailboxes \
  -H "Authorization: Bearer $MINKET_API_KEY"

Connect a mailbox

POST /v1/mailboxes

SMTP mailboxes are verified with a test login (and IMAP for Sent copies) and stored at once; Gmail and Microsoft return a consent URL, valid for 10 minutes, and the mailbox appears after the person consents. Connecting the same SMTP address or account again reconnects the mailbox in place. return_url must share its origin with the project's OAuth redirect URI or the console.

Operation createMailbox, SDK minket.mailboxes.create. Keys: full access. Live keys only: test keys get 403 test_mode_only.

Request body

object

Response

201 Created or consent URL: Mailbox or object.

Errors: 400, 401, 403, 404, 409, 422, 429, 500, with the error body.

Examples

curl
curl -X POST https://api.minket.com/v1/mailboxes \
  -H "Authorization: Bearer $MINKET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"smtp","address":"support@acme.example","display_name":"Support","smtp":{"host":"smtp.acme.example","port":587,"username":"support@acme.example","password":"app-password","secure":"starttls"}}'

Get a mailbox

GET /v1/mailboxes/{id}

Operation getMailbox, SDK minket.mailboxes.get. Keys: full access. Test keys work on test-mode data.

Parameters

NameInTypeRequiredDescription
idpathstringyesA UUID.

Response

200 Success: Mailbox.

FieldTypeRequiredDescription
idstringyesA UUID.
object"mailbox"yes
project_idstringyesA UUID.
providerone of "gmail", "microsoft", "smtp"yes
addressstringyes
display_namestring or nullyes
statusone of "connected", "needs_reconnect", "disabled"yes
saves_sent_copybooleanyes
last_used_atstring (date-time) or nullyesAn ISO 8601 timestamp with timezone, for example 2026-10-24T18:00:00.000Z.
last_errorstring or nullyes
created_atstring (date-time)yesAn ISO 8601 timestamp with timezone, for example 2026-10-24T18:00:00.000Z.

Errors: 400, 401, 403, 404, 409, 422, 429, 500, with the error body.

Examples

curl
curl https://api.minket.com/v1/mailboxes/019a2b3c-4d5e-7f60-8a9b-0c1d2e3f4a5b \
  -H "Authorization: Bearer $MINKET_API_KEY"

Disconnect a mailbox

DELETE /v1/mailboxes/{id}

Operation deleteMailbox, SDK minket.mailboxes.delete. Keys: full access. Live keys only: test keys get 403 test_mode_only.

Parameters

NameInTypeRequiredDescription
idpathstringyesA UUID.

Response

200 Success: object.

FieldTypeRequiredDescription
idstringyesA UUID.
object"mailbox"yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, with the error body.

Examples

curl
curl -X DELETE https://api.minket.com/v1/mailboxes/019a2b3c-4d5e-7f60-8a9b-0c1d2e3f4a5b \
  -H "Authorization: Bearer $MINKET_API_KEY"

Updated