Skip to content
The API may change between versions while TTX-Zone is 0.x.

Send test email

POST
/api/v1/instance/email/test
curl --request POST \
--url https://example.com/api/v1/instance/email/test \
--header 'Content-Type: application/json' \
--header 'X-CSRF-Token: <X-CSRF-Token>' \
--cookie ttx_access_token=<ttx_access_token> \
--data '{ "to": "example" }'

Sends a test message now (in the administrator’s language) and says how the server answered. Recorded; a few per minute at most.

accept-language
Any of:
string
Media typeapplication/json
EmailTestRequest
object
to
Any of:
string
<= 320 characters

Example generated

{
"to": "example"
}

Successful Response

Media typeapplication/json
EmailTestRead
object
error
required
Any of:
string
ok
required
Ok
boolean
to
required
To
string

Example generated

{
"error": "example",
"ok": true,
"to": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}