Read, set beside Xovris and import your PagerDuty on-call set-up - with the read-only access PagerDuty's approval grants, or a read-only key
What you can call today
Every example here runs against api.xovris.ai with a key from your account’s settings. GET /v1/health and GET /v1/public/status answer without one.
const url = 'https://api.xovris.ai/v1/oncall/import/pagerduty';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"mode":"string","bundle":null,"opsgenie":{"apiKey":"string","region":"string"},"pagerduty":{"apiKey":"string","region":"string","grant":"string"},"splunk":{"apiId":"string","apiKey":"string"},"days":1,"undo":true,"acceptDifferences":true}'};
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.xovris.ai/v1/oncall/import/pagerduty \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "mode": "string", "bundle": null, "opsgenie": { "apiKey": "string", "region": "string" }, "pagerduty": { "apiKey": "string", "region": "string", "grant": "string" }, "splunk": { "apiId": "string", "apiKey": "string" }, "days": 1, "undo": true, "acceptDifferences": true }'Needs a token that can read and change. A token without change access is refused with token_read_only and the step to take.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
object
object
object
Example
{ "mode": "string", "bundle": null, "opsgenie": { "apiKey": "string", "region": "string" }, "pagerduty": { "apiKey": "string", "region": "string", "grant": "string" }, "splunk": { "apiId": "string", "apiKey": "string" }, "days": 1, "undo": true, "acceptDifferences": true}Responses
Section titled “Responses”Done.
object
Example generated
{}Done: something new was made, and the answer is it.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "routes": [ "string" ], "windows": [ "string" ], "teams": [ { "name": "string", "members": 1, "notYetMembers": [ "string" ] } ], "pingers": { "moved": [ null ], "said": "string" }, "phones": [ { "name": "string", "phone": "string", "kinds": [ "string" ], "texted": true, "why": "string" } ], "heartbeats": [ { "name": "string", "id": "string", "slug": "string", "pingUrl": "string", "everyMinutes": 1, "paused": true } ], "integrations": [ { "id": "string", "tool": "string", "toolName": "string", "webhookUrl": "string", "emailAddress": "string", "secret": "string", "paused": true, "name": "string", "opsgenieType": "string", "opsgenieId": "string" } ], "counts": { "heartbeat": { "found": 1, "carried": 1 }, "user": { "found": 1, "carried": 1 }, "maintenance": { "found": 1, "carried": 1 }, "integration": { "found": 1, "carried": 1 }, "escalation": { "found": 1, "carried": 1 }, "schedule": { "found": 1, "carried": 1 }, "override": { "found": 1, "carried": 1 }, "team": { "found": 1, "carried": 1 }, "rotation": { "found": 1, "carried": 1 }, "routing": { "found": 1, "carried": 1 }, "notification": { "found": 1, "carried": 1 } }, "gaps": [ { "kind": "heartbeat", "id": "string", "name": "string", "what": "string", "next": "string" } ], "notApplied": { "routes": [ { "name": "string", "why": "string", "next": "string" } ], "heartbeats": [ { "name": "string", "why": "string", "next": "string" } ], "integrations": [ { "name": "string", "why": "string", "next": "string" } ], "windows": [ { "name": "string", "next": "string" } ] }, "undo": { "method": "string", "path": "string" }, "next": "string", "importId": "string", "schedules": 1, "policies": 1, "overrides": 1, "membersMatched": 1, "membersByEmail": [ "string" ], "readBack": [ { "scheduleId": "string", "opsgenieId": "string", "name": "string", "layers": 1, "overrides": 1, "xovrisNow": "string", "why": "string", "opsgenieNow": [ "string" ], "agrees": true, "uncoveredMinutesNext7Days": 1 } ], "policiesReadBack": [ { "policyId": "string", "opsgenieId": "string", "name": "string", "steps": 1, "repeats": 1, "matches": true } ], "mode": "string", "source": "api", "region": "us"}Not signed in: the token is missing, expired or revoked. The answer says how to get a new one.
object
object
A stable code a program can branch on.
What happened, in plain words.
What to do next.
The recorded authorisation decision, when a role refused it.
Example generated
{ "error": { "code": "example", "message": "example", "nextStep": "example", "decisionId": "example" }}Signed in, but this token or role may not do this. The answer names the permission it needs.
object
object
A stable code a program can branch on.
What happened, in plain words.
What to do next.
The recorded authorisation decision, when a role refused it.
Example generated
{ "error": { "code": "example", "message": "example", "nextStep": "example", "decisionId": "example" }}Nothing with that id here, or it belongs to another workspace. Nothing was changed.
object
object
A stable code a program can branch on.
What happened, in plain words.
What to do next.
The recorded authorisation decision, when a role refused it.
Example generated
{ "error": { "code": "example", "message": "example", "nextStep": "example", "decisionId": "example" }}default
Section titled “default”Any other refusal or failure. The answer says what happened and what to do next.
object
object
A stable code a program can branch on.
What happened, in plain words.
What to do next.
The recorded authorisation decision, when a role refused it.
Example generated
{ "error": { "code": "example", "message": "example", "nextStep": "example", "decisionId": "example" }}Your data is never used to train our AI. How your data is kept
A problem is called fixed only once it works again. How each fix is checked
XOVRIS LTD, registered in England and Wales, company number 17499910. Registered office: 66 Paul Street, London EC2A 4NA.