Send an email to an affiliate

POST https://api.tamio.com/v2/affiliates/send-email/{uuid}

Sends an email to an affiliate partner using a pre-configured email template from your account.

Path Parameters

uuid string*

UUID of the affiliate to send the email to.

Body Parameters

email_template_id string*

UUID of the email template to use.

Responses

200 Email sent successfully.

Email sent successfully.

status integer
400 Validation or business logic error. Possible causes:
401 Missing or invalid Bearer token.
/affiliates/send-email/{uuid}
1const response = await fetch("https://api.tamio.com/v2/affiliates/send-email/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200
}