Create an Email Subscription
Create an email subscription to configure email notifications for your organization.
Body
-
Additional properties are allowed.
POST
/email_subscriptions
curl \
-X POST https://api.arta.io/email_subscriptions \
-H "Content-Type: application/json" \
-H "Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y" \
-d '{"email_subscription":{"email_address":"hello@shiparta.com","email_notification_ids":["booking","scheduling"],"name":"Arta"}}'
Request examples
# Headers
Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y
# Payload
{
"email_subscription": {
"email_address": "hello@shiparta.com",
"email_notification_ids": [
"booking",
"scheduling"
],
"name": "Arta"
}
}
Response examples (201)
{
"id": 6,
"name": "Arta Notifications",
"created_at": "2020-10-14T15:25:48.298369",
"updated_at": "2020-10-14T15:25:48.298369",
"email_address": "notifications@shiparta.com",
"email_notification_ids": [
"booking",
"complete",
"scheduling"
]
}
Response examples (400)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx
# Payload
{
"errors": {
"detail": "string"
}
}