Zenduty Escalation Policies API

This object represents the escalation policy of a team. You can checkout the escalation policy docs here https://docs.zenduty.com/docs/escalationpolicies

Operations 5

POST /api/account/teams/{}/escalation_policies/ Create the Escalation Policy object
GET /api/account/teams/{}/escalation_policies/ List all Escalation Policy objects
GET /api/account/teams/{team_id}/escalation_policies/{escalation_policy_id}/ Retrieve the Escalation Policy object
PUT /api/account/teams/{team_id}/escalation_policies/{escalation_policy_id}/ Update the Escalation Policy object
DELETE /api/account/teams/{team_id}/escalation_policies/{escalation_policy_id}/ Delete the Escalation Policy object

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zenduty-escalation-policies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zenduty-escalation-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.1.0
  title: Zenduty Account Custom Role Escalation Policies API
  termsOfService: https://zenduty.com
  contact:
    email: vishwa@zenduty.com
  license:
    name: Apache 2.0
  x-logo:
    url: data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4wLjAsIFNWRyBF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DE5My42bC04LjcsMjAuNmwtNSwxMS44aC01LjdsNS4xLTExLjhsLTguNC0yMC42aDZsNS40LDE0LjdsNS41LTE0LjdIMTA3LjR6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNLTY2LjksMTg5LjJjLTEuOSwwLTQuNy0yLjEtNC43LTQuOHYtMy42YzAtMi43LDAuOC00LjgsNC43LTQuOGMzLjksMCw0LjcsMi4xLDQuNyw0Ljh2My42DQoJQy02Mi4yLDE4Ny4xLTY1LDE4OS4yLTY2LjksMTg5LjJ6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNLTM3LjcsMjIzaC0yMS41bDMuOC0xMS40bDAuNy0xLjhjNC4yLDEuNywxMy4xLDcuMiwxNy43LDExLjZDLTM2LjQsMjIyLjEtMzYuOCwyMjMtMzcuNywyMjN6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNLTU3LjMsMTkyLjlsLTE1LjksMTAuNGMtNC4yLTIuNS05LjItNS45LTEyLjItOC44Yy0wLjYtMC42LTAuMi0xLjUsMC43LTEuNUgtNTcuM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0tNDguNiwxOTQuM2wtNiwxNS42bC0wLjcsMS44bC0zLjgsMTEuNEgtOTZjLTAuOCwwLTEuMy0wLjktMC44LTEuNWMwLjktMS4yLDEuOC0yLjMsMi43LTMuMw0KCWMyLjEtMi4yLDQuNC00LjEsNi45LTUuOGwwLjEtMC4xYzAuOC0wLjYsMS42LTEuMSwyLjQtMS42bDExLjQtNy40bDE1LjktMTAuNGg3LjdDLTQ4LjgsMTkyLjktNDguNCwxOTMuNi00OC42LDE5NC4zeiIvPg0KPC9zdmc+DQo=
  description: "# Introduction\n\nZenduty is a cutting edge platform for incident management. With high level automation, Zenduty enables faster and better incident resolution keeping developers first.\n\n\n  Javascript Libraries: https://github.com/Zenduty/zenduty-js\n\n  Ruby Libraries: https://github.com/Zenduty/zenduty-ruby\n\n  Python Libraries: https://github.com/Zenduty/zenduty-python-sdk\n\n  Postman Collection for Zenduty API: https://github.com/Zenduty/zenduty-api-postman.git\n\n  Account-level roles and permissions: https://docs.zenduty.com/docs/users#account-level-roles-and-permissions\n\n  Team-level roles and permissions: https://docs.zenduty.com/docs/users#team-level-roles-and-permissions\n"
servers:
- url: https://www.zenduty.com
security:
- bearerAuth: []
tags:
- name: Escalation Policies
  description: This object represents the escalation policy of a team. You can checkout the escalation policy docs here https://docs.zenduty.com/docs/escalationpolicies
paths:
  /api/account/teams/{}/escalation_policies/:
    parameters:
    - name: team_id
      in: path
      description: unique_id of the Team object
      schema:
        type: string
      required: true
    post:
      tags:
      - Escalation Policies
      summary: Create the Escalation Policy object
      description: Create the Escalation Policy object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Escalation Policy object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EPPayload'
            example:
              name: Production Escalation Policy
              rules:
              - delay: 2
                targets:
                - target_type: 2
                  target_id: 85b563c8-18d0-4668-9462-9
                position: 1
          application/xml:
            schema:
              $ref: '#/components/schemas/EPPayload'
            example:
              name: Production Escalation Policy
              rules:
              - delay: 2
                targets:
                - target_type: 2
                  target_id: 85b563c8-18d0-4668-9462-9
                position: 1
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 2
                  targets:
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
            application/xml:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 2
                  targets:
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
            application/xml:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
    get:
      tags:
      - Escalation Policies
      summary: List all Escalation Policy objects
      description: Returns a list of Escalation Policy objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EP'
              example:
              - name: Default Escalation Policy
                summary: This is the default escalation policy for this team
                description: ''
                rules:
                - delay: 0
                  targets:
                  - target_type: 2
                    target_id: 216bba3d-7268-4a8e-89e9-6
                  position: 1
                  unique_id: a857eb8b-28bf-4503-a1d5-a1d737c48fdc
                unique_id: 19fdd4c3-0d4a-4a6e-9885-8c8d33ef1488
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
              - name: Infra Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 0
                  targets:
                  - target_type: 1
                    target_id: 4a3025f3-836f-4d18-8923-7adfe5690d17
                  - target_type: 2
                    target_id: 507dfda0-a1fd-40e5-943a-e
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: 23077ffc-8529-4848-89d0-1a37bdf63d4e
                - delay: 4
                  targets:
                  - target_type: 2
                    target_id: 216bba3d-7268-4a8e-89e9-6
                  position: 2
                  unique_id: 5298ba34-f23d-49a6-a4a2-814a7beb4b54
                unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 2
                move_to_next: true
                global_ep: false
              - name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 2
                  targets:
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
            application/xml:
              schema:
                $ref: '#/components/schemas/EP'
              example:
              - name: Default Escalation Policy
                summary: This is the default escalation policy for this team
                description: ''
                rules:
                - delay: 0
                  targets:
                  - target_type: 2
                    target_id: 216bba3d-7268-4a8e-89e9-6
                  position: 1
                  unique_id: a857eb8b-28bf-4503-a1d5-a1d737c48fdc
                unique_id: 19fdd4c3-0d4a-4a6e-9885-8c8d33ef1488
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
              - name: Infra Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 0
                  targets:
                  - target_type: 1
                    target_id: 4a3025f3-836f-4d18-8923-7adfe5690d17
                  - target_type: 2
                    target_id: 507dfda0-a1fd-40e5-943a-e
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: 23077ffc-8529-4848-89d0-1a37bdf63d4e
                - delay: 4
                  targets:
                  - target_type: 2
                    target_id: 216bba3d-7268-4a8e-89e9-6
                  position: 2
                  unique_id: 5298ba34-f23d-49a6-a4a2-814a7beb4b54
                unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 2
                move_to_next: true
                global_ep: false
              - name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 2
                  targets:
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
            application/xml:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
  /api/account/teams/{team_id}/escalation_policies/{escalation_policy_id}/:
    parameters:
    - name: team_id
      in: path
      description: unique_id of the Team object
      schema:
        type: string
      required: true
    - name: escalation_policy_id
      in: path
      description: unique_id of the Escalation Policy object
      schema:
        type: string
      required: true
    get:
      tags:
      - Escalation Policies
      summary: Retrieve the Escalation Policy object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 2
                  targets:
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
            application/xml:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 2
                  targets:
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
            application/xml:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
    put:
      tags:
      - Escalation Policies
      summary: Update the Escalation Policy object
      description: Updates the specified Escalation Policy object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
      requestBody:
        description: Request body parameters to update the Escalation Policy object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EPPayload'
            example:
              name: Modified Production Escalation Policy
              rules:
              - delay: 2
                targets:
                - target_type: 2
                  target_id: 85b563c8-18d0-4668-9462-9
                position: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Modified Production Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 2
                  targets:
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: f15f0044-25a1-4c60-888a-c7f1a6b7d4ce
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
            application/xml:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Modified Production Escalation Policy
                summary: ''
                description: ''
                rules:
                - delay: 2
                  targets:
                  - target_type: 2
                    target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
                  unique_id: f15f0044-25a1-4c60-888a-c7f1a6b7d4ce
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
            application/xml:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
    delete:
      tags:
      - Escalation Policies
      summary: Delete the Escalation Policy object
      description: Delete the specified Escalation Policy object permanently.
      responses:
        '204':
          description: Success
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
            application/xml:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
components:
  schemas:
    EP_Rule:
      type: object
      description: Escalation Policy Rule object schema
      required:
      - delay
      properties:
        delay:
          type: integer
          default: 0
          description: An integer that represents the amount of time before the escalation of the Escalation Policy object after the incident object is created. For example, t=0 is When an incident is created, if delay=5, then this Escalation Policy Rule object will be escalated at t=5.
        target:
          type: object
          description: Escalation Policy Rule Target object schema
          properties:
            target_type:
              type: integer
              description: An integer that represents the Escalation Policy Rule Target object's target_type. 1 for Schedule and 2 for User
            target_id:
              type: string
              description: A system-generated string that represents Escalation Policy Rule Target object's target_id. If target_type is 1 then target_id is Schedule object's unique_id and if target_type is 2 then target_id is User object's username
        position:
          type: integer
          description: An integer that represents the Escalation Policy Rule object's position
        unique_id:
          type: string
          description: A system-generated string that represents Escalation Policy Rule object's unique_id.
    EP:
      type: object
      description: Escalation Policy object schema
      properties:
        name:
          type: string
          description: A string that represents the Escalation Policy object's name
        summary:
          type: string
          description: A string that represents the Escalation Policy object's summary
        description:
          type: string
          description: A string that represents the Escalation Policy object's description
        rules:
          $ref: '#/components/schemas/EP_Rule'
        unique_id:
          type: string
          description: A string that represents the Escalation Policy object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        repeat_policy:
          type: integer
          description: An integer that represents the Escalation Policy object's repeat_policy
        move_to_next:
          type: boolean
          description: A boolean flag that represents whether to move to the next Escalation Rule if no user is found on the current Escalation Rule
        global_ep:
          type: boolean
          description: A boolean flag that represents whether the Escalation Policy is global or not.
    EP_RulePayload:
      type: object
      description: Escalation Policy Rule Payload object schema
      required:
      - delay
      properties:
        delay:
          type: integer
          default: 0
          description: An integer that represents the amount of time before the escalation of the Escalation Policy object after the incident object is created. For example, t=0 is When an incident is created, if delay=5, then this Escalation Policy Rule object will be escalated at t=5.
        target:
          type: object
          description: Escalation Policy Rule Target object schema
          properties:
            target_type:
              type: integer
              description: An integer that represents the Escalation Policy Rule Target object's target_type. 1 for Schedule and 2 for User
            target_id:
              type: string
              description: A system-generated string that represents Escalation Policy Rule Target object's target_id. If target_type is 1 then target_id is Schedule object's unique_id and if target_type is 2 then target_id is User object's username
        position:
          type: integer
          description: An integer that represents the Escalation Policy Rule object's position
    EPPayload:
      type: object
      description: Payload schema for the Escalation Policy object
      required:
      - name
      - rules
      properties:
        name:
          type: string
          description: A string that represents the Escalation Policy object's name
        summary:
          type: string
          description: A string that represents the Escalation Policy object's summary
        description:
          type: string
          description: A string that represents the Escalation Policy object's description
        rules:
          $ref: '#/components/schemas/EP_RulePayload'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Token <api_key>