Subscribe to status page updates
POST
/public/status-pages/{slug}/subscribe
const url = 'https://api.perstat.io/public/status-pages/example/subscribe';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.perstat.io/public/status-pages/example/subscribe \ --header 'Content-Type: application/json' \ --data '{ "email": "example" }'Requests an email subscription to a public status page using double opt-in; a confirmation email is sent only for new or still unconfirmed addresses. Always answers 202 for valid addresses and never reveals whether an address is already subscribed. Returns 404 when the page does not exist or does not offer subscriptions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string
Examplegenerated
{ "email": "example"}