Skip to content

Get newsletter settings

GET
/api/v1/newsletter/settings
curl --request GET \
--url https://digize.com/api/v1/newsletter/settings \
--header 'x-api-key: <x-api-key>'

The Newsletter module’s settings: the service posts go through when more than one is connected, the address they go from, double opt-in, open and click tracking, the postal address for the footer, and the post URL pattern.

Needs the newsletter:read permission.

Done

Media typeapplication/json
object
provider
required
Any of:
string
Allowed values: resend sendgrid mailjet
fromAddressId
required
Any of:
string
>= 1 characters <= 64 characters
doubleOptIn
required

Whether people who sign up on a form, at checkout or through the API confirm by email first.

boolean
address
required

The business’s postal address, in every post’s footer as anti-spam laws ask. A post can’t be sent without it.

string
<= 300 characters
postUrl
required

Where a post is on the workspace’s own site, with {slug} for its slug, such as https://example.com/blog/{slug}; empty for none. The view online and web links use it.

string
<= 500 characters
tracking
required

Whether the workspace’s email says when it’s opened and clicked.

object
opens
required

The open pixel in posts, conversation emails and automations’ emails.

boolean
clicks
required

Posts’ links go through Digize first.

boolean

Example

{
"provider": "resend"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}