Use this tool to quickly generate a correct request shape, copy a cURL, and sanity-check the headers you should be sending. The response is simulated, but the request format matches the docs.
When to use this
- You are wiring up your first
POST /v1/transmissionscall. - You are not sure which scope a key needs.
- You want a reference cURL to compare against your SDK or HTTP client.
What to look for
- Authorization:
Authorization: Bearer ...should be set server-side only. - Idempotency: for create actions, set
Idempotency-Keyso retries do not duplicate work. - Content-Type:
application/jsonfor JSON bodies.
Relevant docs:
Interactive API Playground
Build a request, copy the cURL, and see a simulated response.
POSTscope: send:transmissions/v1/transmissions
curl -sS -X POST https://api.sendlib.com/v1/transmissions \
-H "Authorization: Bearer $SENDLIB_API_KEY" \
-H "Accept: application/json" \
-H "Idempotency-Key: 0d6c2a6f-3f3c-4d4a-9c1a-2f7f9c1a1f0b" \
-H "Content-Type: application/json" \
-d '{
"recipients": [
{
"email": "user@example.com"
}
],
"content": {
"subject": "Receipt #1042",
"html": "<p>Thanks. Your receipt is attached.</p>"
},
"options": {
"mail_type": "transactional",
"tags": [
"receipt"
],
"metadata": {
"order_id": "1042"
}
}
}'{
"transmission_id": "f7e8d9c0-b1a2-4c3d-8e9f-0a1b2c3d4e5f",
"items": []
}