Get the paid settings
GET
/api/v1/newsletter/paid/settings
const url = 'https://digize.com/api/v1/newsletter/paid/settings';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/newsletter/paid/settings \ --header 'x-api-key: <x-api-key>'Newsletter › Settings › Paid: where readers land after paying or signing in, the extra hosts sign-in links may go back to, and what the upgrade page calls the free tier.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
returnUrl
required
string
signInHosts
required
Array<string>
freeName
required
string
freeDescription
required
string
hosts
required
Every host a sign-in link may go back to: these, the return address’s and the post URL pattern’s.
Array<string>
Example generated
{ "returnUrl": "example", "signInHosts": [ "example" ], "freeName": "example", "freeDescription": "example", "hosts": [ "example" ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
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
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
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
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
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}