Create a status page viewer account
const url = 'https://api.perstat.io/status-pages/example/viewers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"example","username":"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/status-pages/example/viewers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "username": "example" }'Creates a login for a private status page. The password is generated server-side and returned exactly once in the response; only a hash is stored at rest. Returns 409 when the username is already taken on this page. Requires project management rights. Accepts API keys with the status-pages:write scope, subject to current role and resource grants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "email": "example", "username": "example"}Responses
Section titled “Responses”Resource created. The response body contains the created resource.
object
Generiertes Klartext-Passwort — wird NUR HIER, EINMALIG zurückgegeben. At rest liegt ausschließlich der Argon2-Hash.
object
Public_id (spv_…).
Letzter erfolgreicher Login (Unix-Sekunden), null falls noch nie.
Examplegenerated
{ "password": "example", "viewer": { "created_at_unix": 1, "email": "example", "id": "example", "last_login_at_unix": 1, "username": "example" }}The request is invalid. Check the supplied fields and values.
Authentication is missing or invalid.
The authenticated caller does not have permission to perform this operation.
No accessible resource matches the supplied identifier.
Username bereits vergeben