Rotations Endpoint
Base URL: https://api.pagerly.io/pagerly
All endpoints require authentication using the X-APIKEY
header.
π Authentication
All endpoints require a valid API key to be passed in the request headers.Generate API Key here
Headers
π GET /o/zapier/allteams
/o/zapier/allteams
Description
Returns a list of all teams associated with the organization identified by the provided API key. Useful for populating dropdowns in Zapier or other integrations.
Request
Method:
GET
URL:
https://api.pagerly.io/pagerly/o/zapier/allteams
Headers: See authentication section.
Body: None
Response
β
Success 200 OK
jsonCopyEdit[
{
"id": "team-abc123",
"name": "Engineering"
},
{
"id": "team-def456",
"name": "Support"
}
]
If no teams exist:
jsonCopyEdit[]
β Error 400 Bad Request
jsonCopyEdit[
{
"Error": "API Key is not valid"
}
]
Example cURL
bashCopyEditcurl -X GET "https://api.pagerly.io/pagerly/o/zapier/allteams" \
-H "X-APIKEY: your_api_key_here"
π₯ GET /o/currentusers
/o/currentusers
Description
Returns the current on-call (rotated) users for a specific team in your organization.
Request
Method:
GET
URL:
https://api.pagerly.io/pagerly/o/currentusers
Headers: See authentication section.
Query Parameters:
teamname
String
β Yes
The name of the team to query.
Response
β
Success 200 OK
jsonCopyEdit[
{
"id": "user-abc123",
"name": "Alice Johnson",
"email": "[email protected]"
},
{
"id": "user-def456",
"name": "Bob Smith",
"email": "[email protected]"
}
]
If no users are currently on-call:
[]
Example cURL
curl -X GET "https://api.pagerly.io/pagerly/o/currentusers?teamname=Engineering" \
-H "X-APIKEY: your_api_key_here"
Last updated
Was this helpful?