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

Name
Type
Required
Description

X-APIKEY

String

βœ… Yes

Your Pagerly-issued API key. Generate API Key here


πŸ“‚ GET /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

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:

Name
Type
Required
Description

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?