Templates

Check a template

An exx.sh addition: checks a version of the template before it is sent (links, images, size, text part, subject, variables and the content scan). Links are fetched (HEAD, then GET) from exx.sh's servers, so checks are rate limited per project and per organization.

POST
/templates/{id}/check

An exx.sh addition: checks a version of the template before it is sent (links, images, size, text part, subject, variables and the content scan). Links are fetched (HEAD, then GET) from exx.sh's servers, so checks are rate limited per project and per organization.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string

The template's id or alias

Query Parameters

version?string

draft (the default) or published.

Value in"draft""published"

Response Body

Success

application/json
  1. response

The pre-send checks of a template version.

errors*integer

Results with severity error.

Range0 <= value
object*string
results*array<>

In check order; past a cap per check, one more result counts the rest.

warnings*integer

Results with severity warning.

Range0 <= value
Example Request
curl -X POST 'https://api.exx.sh/templates/string/check'
Example Response
{  "errors": 0,  "object": "string",  "results": [    {      "detail": "string",      "id": "string",      "message": "string",      "severity": "error"    }  ],  "warnings": 0}