Send a test message
POST
/api/platform/mail/test
const url = 'https://forge.example.com/api/platform/mail/test';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"to":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/platform/mail/test \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "to": "example" }'To an address you give. It goes the way every other message does, through the queue and the provider, and the answer is its row in the queue’s record: ask for it again to see how it ended.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
to
required
string
Example generated
{ "to": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
required
string format: uuid
kind
required
string
recipient
required
string
subject
required
string
status
required
string
attempts
required
integer | string format: int32
lastError
required
null | string
createdAt
required
string format: date-time
finishedAt
required
null | string format: date-time
organizationId
required
null | string format: uuid
organizationName
required
null | string
providerMessageId
required
null | string
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "kind": "example", "recipient": "example", "subject": "example", "status": "example", "attempts": 1, "lastError": "example", "createdAt": "2026-04-15T12:00:00Z", "finishedAt": "2026-04-15T12:00:00Z", "organizationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "organizationName": "example", "providerMessageId": "example"}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}