POST
https://www.app.ocoya.com/api/_public/v1/email/{emailId}/test
Send a test email
curl --request POST \
  --url https://www.app.ocoya.com/api/_public/v1/email/{emailId}/test \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "to": [
    "you@example.com"
  ]
}
'
{
  "sent": 123,
  "to": [
    "<string>"
  ]
}

Authorizations

X-API-Keystringheaderrequired

Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.

Path Parameters

emailIdstringrequired

Ocoya email ID, from GET /email.

Example:"cmwdkjtfh005gy0k4ggzzg1bs"

Body

application/json
tostring[]required

Addresses of people in the brand.

Example:
[
  "you@example.com"
]

Response

application/json

Sent

sentinteger
tostring[]