Tools

cURL generator

Pick an endpoint, edit the body if needed, and copy a working cURL. Your token and company slug come from the credentials popover in the header — fill them once, every snippet on the docs site picks them up.

Build a request#

Choose an endpoint from the catalog. Path parameters become inline inputs; the body is editable JSON. Output updates as you type.

Request URL
https://sentroy.com/api/mail/companies/my-company/send
Transactional or bulk send
Parameters
{domainId}
Request body (JSON)
Generated cURL
Using placeholder token — set yours in Credentials.
curl -X POST "https://sentroy.com/api/mail/companies/my-company/send" \
  -H "Authorization: Bearer stk_..." \
  -H "Content-Type: application/json" \
  -d '{
  "to": "user@example.com",
  "from": "info@example.com",
  "domainId": "{domainId}",
  "subject": "Hello from Sentroy",
  "html": "<h1>It works.</h1>"
}'