Download OpenAPI specification:
Email sending service.
Git Commit ID: 006adfb87dcb9e9045b039be0321535180ebb9b1
Software Version: 0.0.1
Build: 2026-08-18 20:24:34
Internal endpoint used by other services to initialize their local defaults.json during startup. Only service-to-service calls (service JWT) are accepted.
{- "defaults": {
- "accounts_verifyemail_subject": "Please verify your O.Z.O.R.A. Pass account email",
- "general_emailfrom_oz": "O.Z.O.R.A. Pass <[email protected]>"
}, - "revision": 1786190488163
}Updates the value of one or more defaults records, writes a log entry for each
changed record, then distributes the new defaults to the consuming services (accounts, tickets, items, vehicles).
Requires the Priv emails_defaults_edit permission.
required | Array of objects non-empty One entry per defaults record to update. Each |
{- "changes": [
- {
- "id": 12,
- "value": "Please verify your O.Z.O.R.A. Pass account email"
}, - {
- "id": 15,
- "value": null
}
]
}{- "message": "Defaults updated.",
- "updated": [
- {
- "id": 12,
- "field_type": "textinput",
- "keyword": "accounts_verifyemail_subject",
- "value": "Please verify your O.Z.O.R.A. Pass account email"
}
], - "distribution": {
- "validity": true,
- "results": [
- {
- "service": "accounts",
- "validity": true
}, - {
- "service": "tickets",
- "validity": true
}, - {
- "service": "items",
- "validity": true
}, - {
- "service": "vehicles",
- "validity": true
}
]
}
}Returns every log entry that has a value in the id_default column.
Requires the Priv emails_defaults_edit permission.
{- "logs": [
- {
- "id": 987,
- "id_default": 12,
- "id_creator": 42,
- "created_at": "2026-08-12 14:03:51",
- "flag": "info",
- "ip_address": "10.0.0.4",
- "message": "changed: accounts_verifyemail_subject",
- "message_meta": {
- "keyword": "accounts_verifyemail_subject",
- "from": "Verify your email",
- "to": "Please verify your O.Z.O.R.A. Pass account email",
- "creator_file": "src/routes/(api)/defaults/edit/+server.js"
}
}
]
}Returns every row from the defaults table, ordered by keyword.
Requires the Priv emails_defaults_edit permission.
{- "defaults": [
- {
- "id": 12,
- "field_type": "textinput",
- "keyword": "accounts_verifyemail_subject",
- "value": "Please verify your O.Z.O.R.A. Pass account email"
}, - {
- "id": 5,
- "field_type": "textinput",
- "keyword": "general_emailfrom_oz",
- "value": "O.Z.O.R.A. Pass <[email protected]>"
}
]
}Receives a frontend error report, logs it to the database, and sends a notification email to the configured LOG_EMAIL_TO addresses. Only processes reports in production environment.
required | object |
required | object |
required | object |
{- "error_info": {
- "error_id": "string",
- "timestamp": "string",
- "software": {
- "name": "string",
- "version": "string",
}
}, - "error": {
- "message": "string",
- "stack": "string",
- "status": 0
}, - "browser": {
- "user_agent": "string",
- "viewport": {
- "width": 0,
- "height": 0
}, - "screen": {
- "width": 0,
- "height": 0
}
}
}{- "message": "Error reported"
}Queues an email for sending via the emails microservice. The email is saved to the database and will be sent by the scheduled child process.
string or object Sender address. Falls back to backup SMTP auth user if not provided. | |
| to required | string <email> Recipient email address |
| subject required | string Email subject line |
| html required | string HTML email body |
| cc | string CC email address(es) |
| flagPriority | boolean If true, email is prioritized |
Array of objects Array of file attachments |
{- "from": "string",
- "subject": "Welcome to the platform",
- "html": "<h1>Hello</h1><p>Welcome!</p>",
- "cc": "string",
- "flagPriority": true,
- "attachments": [
- {
- "filename": "ticket.pdf",
- "content": "string",
- "contentType": "application/pdf"
}
]
}{- "message": "Email queued for sending.",
- "id": 42
}