Skip to content

Get the publishable key

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

The workspace’s publishable newsletter key, which a web page uses with the public newsletter operations (subscribing, a subscriber’s referrals, published posts) and the signup form embed. Null until one is made: making a signup form makes one.

Needs the newsletter:read permission.

Done

Media typeapplication/json
Any of:
object
key
required

The publishable key, dgz_pk_…: safe in a page.

string
createdBy
required
string
createdAt
required
string format: date-time

Example generated

{
"key": "example",
"createdBy": "example",
"createdAt": "2026-04-15T12:00:00Z"
}

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"
}
}