This API allows you to create a custom email in Releva. You can then use this email, a custom campaign, and a segment run, to send emails via API.
Request Parameters #
You may perform requests to the API using the following curl equivalent:
curl -H 'content-type: application/json' -H 'authorization: Bearer <secretKey>' -XPOST 'https://releva.ai/api/v0/emails' -d'{"name": "custom email test"}'
Request URL Parameters #
Field | Type | Description |
---|---|---|
name | String | The name of the email. |
Response Format #
A successful response will return HTTP Status 200 and a JSON body with the following structure. You will need the emailId in order to send emails via API and obtain statistics for this email using the Email Stats API.
{
"emailId": <number>,
}
An error response will return a HTTP 4xx or 5xx status code and have the following structure:
{
"message": "A description of the error and how to fix it, if it's a client error."
}