Get on-call settings
const url = 'https://api.perstat.io/organizations/example/on-call/settings';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://api.perstat.io/organizations/example/on-call/settings \ --header 'Authorization: Bearer <token>'Returns the organization’s on-call configuration: enabled state, timezone, rotation mode, escalation stage timings, the currently resolved duty user, and whether the plan includes on-call. Any member may read; a default configuration is returned when nothing has been set up yet. Accepts API keys with the on-call:read scope, subject to current role and resource grants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Request succeeded. The response body contains the result.
object
Wer hat JETZT Dienst (aufgelöst); null bei Coverage-Gap.
Ist On-Call im Tarif enthalten (monitor.on_call)? Steuert die UI-Sperre.
Interner User-UUID des manuellen Diensthabenden (oder null).
“manual” | “weekly”
Examplegenerated
{ "channel_step_minutes": 1, "current_duty_user_id": "example", "enabled": true, "entitled": true, "escalation_stage1_minutes": 1, "escalation_stage2_minutes": 1, "manual_duty_user_id": "example", "rotation_mode": "example", "timezone": "example"}Authentication is missing or invalid.
The authenticated caller does not have permission to perform this operation.
No accessible resource matches the supplied identifier.