Docs / API Reference

API Reference

Base URL: https://api.mailgrid.space. Every endpoint speaks JSON.

Base URL & auth

All requests use HTTPS. All authenticated endpoints require an Authorization: Bearer mb_live_... header.

The full OpenAPI 3 spec is at api.mailgrid.space/openapi.json.

Response shape

Successful responses:

success
{
  "success":   true,
  "data":      { ... },
  "requestId": "fd067654-aff2-4e57-9320-..."
}

Error responses:

error
{
  "success":   false,
  "code":      "BAD_REQUEST",
  "message":   "Field 'from' is required",
  "requestId": "..."
}

Endpoint groups

GroupWhat
EmailSingle + batch + scheduled sends
TemplatesHandlebars storage + AI generation
StreamsTransactional / marketing / notifications profiles
FilesFile Cache attachment storage
UsersTeam registry + invites
Dedicated IPsIP-pool mapping & warmup
DomainsSES identity verification
SuppressionsPer-tenant suppression list
Analytics & EventsDaily rollups + event stream
AISummarize, ask, personalize
WebhooksSES SNS subscription
SMTP relayHTTP-based MIME relay
ErrorsCodes + HTTP status mapping

Conventions