Splunk On-Call (VictorOps) On Call API

The On-call API from Splunk On-Call (VictorOps) — 7 operation(s) for on-call.

GitHub OpenAPI

Operations 7

GET /api-public/v1/user/{user}/oncall/schedule Get a user's on-call schedule #
GET /api-public/v2/user/{user}/oncall/schedule Get a user's on-call schedule #
GET /api-public/v1/team/{team}/oncall/schedule Get a team's on-call schedule #
GET /api-public/v2/team/{team}/oncall/schedule Get a team's on-call schedule #
GET /api-public/v1/oncall/current Get an organization's on-call users #
PATCH /api-public/v1/team/{team}/oncall/user Create an on-call override (take on-call) #
PATCH /api-public/v1/policies/{policy}/oncall/user Create an on-call override (take on-call) #

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/victorops:victorops-on-call-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

victorops-on-call-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Victorops On Call API
  version: 0.0.3
  x-refined-note:
  - x-apievangelist differs across the merged source definitions and was not carried
  description: 'Operations tagged On-call across 2 of this provider''s published API definitions: victorops-api-v1.yaml, victorops-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.victorops.com/
- url: https://api.victorops.com
tags:
- name: On-call
paths:
  /api-public/v1/user/{user}/oncall/schedule:
    get:
      deprecated: true
      tags:
      - On-call
      summary: Get a user's on-call schedule
      description: '__NOTE: This call is deprecated. Please use `GET /api-public/v2/user/{user}/oncall/schedule`.__


        Get the on-call schedule for a user for all teams, including on-call overrides.


        This API may be called a maximum of 2 times per second.'
      parameters:
      - $ref: '#/components/parameters/apiId'
      - $ref: '#/components/parameters/apiKey'
      - name: user
        in: path
        description: The VictorOps user ID
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/daysFwd'
      - $ref: '#/components/parameters/daysSkip'
      - $ref: '#/components/parameters/step'
      responses:
        '200':
          description: The on-call schedule for the user
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OnCallAndOverrides'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/user-not-found'
        '500':
          $ref: '#/components/responses/500'
      operationId: getApiPublicV1UserByUserOncallSchedule
      x-operation-id-source: derived
    servers:
    - url: https://api.victorops.com/
  /api-public/v2/user/{user}/oncall/schedule:
    get:
      tags:
      - On-call
      summary: Get a user's on-call schedule
      description: 'Get the on-call schedule for a user for all teams the user is on, including on-call overrides.


        This API may be called a maximum of 2 times per second.'
      parameters:
      - $ref: '#/components/parameters/apiId'
      - $ref: '#/components/parameters/apiKey'
      - name: user
        in: path
        description: The VictorOps user ID
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/daysFwd'
      - $ref: '#/components/parameters/daysSkip'
      - $ref: '#/components/parameters/step'
      responses:
        '200':
          description: The on-call schedule for the user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserSchedule'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/user-not-found'
        '500':
          $ref: '#/components/responses/500'
      operationId: getApiPublicV2UserByUserOncallSchedule
      x-operation-id-source: derived
    servers:
    - url: https://api.victorops.com/
  /api-public/v1/team/{team}/oncall/schedule:
    get:
      deprecated: true
      tags:
      - On-call
      summary: Get a team's on-call schedule
      description: '__NOTE: This call is deprecated. Please use `GET /api-public/v2/team/{team}/oncall/schedule`.__


        Get the on-call schedule for a team, including on-call overrides.


        This API may be called a maximum of 2 times per second.'
      parameters:
      - $ref: '#/components/parameters/apiId'
      - $ref: '#/components/parameters/apiKey'
      - name: team
        in: path
        description: The VictorOps team 'slug'
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/daysFwd'
      - $ref: '#/components/parameters/daysSkip'
      - $ref: '#/components/parameters/step'
      responses:
        '200':
          description: The on-call schedule for the team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OnCallAndOverrides'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/team-not-found'
        '500':
          $ref: '#/components/responses/500'
      operationId: getApiPublicV1TeamByTeamOncallSchedule
      x-operation-id-source: derived
    servers:
    - url: https://api.victorops.com/
  /api-public/v2/team/{team}/oncall/schedule:
    get:
      tags:
      - On-call
      summary: Get a team's on-call schedule
      description: 'Get the on-call schedule for a team, including on-call overrides.


        This API may be called a maximum of 2 times per second.'
      parameters:
      - $ref: '#/components/parameters/apiId'
      - $ref: '#/components/parameters/apiKey'
      - name: team
        in: path
        description: The VictorOps team 'slug'
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/daysFwd'
      - $ref: '#/components/parameters/daysSkip'
      - $ref: '#/components/parameters/step'
      responses:
        '200':
          description: The on-call schedule for the team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamSchedule'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/team-not-found'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
      operationId: getApiPublicV2TeamByTeamOncallSchedule
      x-operation-id-source: derived
    servers:
    - url: https://api.victorops.com/
  /api-public/v1/oncall/current:
    get:
      tags:
      - On-call
      summary: Get an organization's on-call users
      description: 'Get all on-call users/teams for your organization.


        This API may be called a maximum of 2 times per second.'
      parameters:
      - $ref: '#/components/parameters/apiId'
      - $ref: '#/components/parameters/apiKey'
      responses:
        '200':
          description: All users and escalation policies currently on call
          content:
            application/json:
              schema:
                type: object
                properties:
                  teamsOnCall:
                    type: array
                    items:
                      $ref: '#/components/schemas/OnCallTeamsResource'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '500':
          $ref: '#/components/responses/500'
      operationId: getApiPublicV1OncallCurrent
      x-operation-id-source: derived
    servers:
    - url: https://api.victorops.com/
  /api-public/v1/team/{team}/oncall/user:
    patch:
      deprecated: true
      tags:
      - On-call
      summary: Create an on-call override (take on-call)
      description: '__NOTE: This API call is deprecated. Please use `PATCH /api-public/v2/policies/{policy}/oncall/user`__


        Replaces a currently on-call user on the team with another.


        This API may be called a maximum of 2 times per second.'
      parameters:
      - $ref: '#/components/parameters/apiId'
      - $ref: '#/components/parameters/apiKey'
      - $ref: '#/components/parameters/takeRequestPayload'
      - name: team
        in: path
        description: The VictorOps team 'slug'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The result of the take request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TakeResult'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          description: Team or user(s) not found
        '500':
          $ref: '#/components/responses/500'
      operationId: patchApiPublicV1TeamByTeamOncallUser
      x-operation-id-source: derived
    servers:
    - url: https://api.victorops.com/
  /api-public/v1/policies/{policy}/oncall/user:
    patch:
      tags:
      - On-call
      summary: Create an on-call override (take on-call)
      description: 'Replaces a currently on-call user in the escalation policy with another. In many cases, the policy slug

        will match the slug of the team that contains it.


        This API may be called a maximum of 2 times per second.'
      parameters:
      - $ref: '#/components/parameters/apiId'
      - $ref: '#/components/parameters/apiKey'
      - $ref: '#/components/parameters/takeRequestPayload'
      - name: policy
        in: path
        description: The VictorOps policy 'slug'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The result of the take request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TakeResult'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          description: Team or user(s) not found
        '500':
          $ref: '#/components/responses/500'
      operationId: patchApiPublicV1PoliciesByPolicyOncallUser
      x-operation-id-source: derived
    servers:
    - url: https://api.victorops.com/
components:
  schemas:
    OnCallType:
      type: string
      enum:
      - user
      - rotation_group
      - rotation_group_next
      - rotation_group_previous
      - team
      - team_routing
      - webhook
      - email
      - policy_routing
    UserSchedule:
      type: object
      properties:
        teamSchedules:
          type: array
          items:
            $ref: '#/components/schemas/TeamSchedule'
    User:
      type: object
      properties:
        username:
          type: string
    TakeRequest:
      type: object
      required:
      - fromUser
      - toUser
      properties:
        fromUser:
          type: string
        toUser:
          type: string
    TeamSchedule:
      type: object
      properties:
        team:
          $ref: '#/components/schemas/Team'
        schedules:
          type: array
          items:
            $ref: '#/components/schemas/PolicySchedule'
    OnCallUsersResource:
      type: object
      properties:
        onCallUser:
          type: object
          properties:
            username:
              type: string
    TeamScheduleRollResource:
      type: object
      properties:
        change:
          type: number
          description: The time the period is scheduled to start
        until:
          type: number
          description: The time the period is scheduled to end
        oncall:
          type: string
          description: The user scheduled on call (if any)
        isRoll:
          type: boolean
      required:
      - change
      - until
      - isRoll
    TeamScheduleOverlayResource:
      type: object
      properties:
        orig:
          type: string
          description: The user scheduled on call (if any)
        over:
          type: string
          description: The user overriding the scheduled on call user (if any)
        start:
          type: number
          description: The time the override is scheduled to start
        end:
          type: number
          description: The time the override is scheduled to end
    OnCallAndOverrides:
      type: object
      properties:
        team:
          type: string
        schedule:
          type: array
          items:
            $ref: '#/components/schemas/TeamScheduleResource'
        overrides:
          type: array
          items:
            $ref: '#/components/schemas/TeamScheduleOverlayResource'
    Team:
      type: object
      required:
      - name
      - slug
      properties:
        name:
          type: string
          description: The team name
        slug:
          type: string
          description: 'The unique identifier for this team.


            The slug is in the format `team-[\w\d]{16}`'
    TeamScheduleResource:
      type: object
      properties:
        oncall:
          type: string
          description: The user scheduled on call (if any)
        overrideoncall:
          type: string
          description: The user overriding the scheduled on call user (if any)
        policyType:
          type: string
        rotationName:
          type: string
        shiftName:
          type: string
        shiftRoll:
          type: number
        rolls:
          type: array
          items:
            $ref: '#/components/schemas/TeamScheduleRollResource'
      required:
      - policyType
      - rolls
    PolicySchedule:
      type: object
      properties:
        policy:
          $ref: '#/components/schemas/EscalationPolicySummary'
        schedule:
          type: array
          items:
            $ref: '#/components/schemas/OnCallEntry'
        overrides:
          type: array
          items:
            $ref: '#/components/schemas/OnCallOverride'
    OnCallEscalationPolicyResource:
      type: object
      properties:
        name:
          type: string
        slug:
          type: string
    OnCallNowResource:
      type: object
      properties:
        escalationPolicy:
          $ref: '#/components/schemas/OnCallEscalationPolicyResource'
        users:
          type: array
          items:
            $ref: '#/components/schemas/OnCallUsersResource'
    OnCallEntry:
      type: object
      properties:
        onCallUser:
          $ref: '#/components/schemas/User'
        overrideOnCallUser:
          $ref: '#/components/schemas/User'
        onCallType:
          $ref: '#/components/schemas/OnCallType'
        rotationName:
          type: string
        shiftName:
          type: string
        shiftRoll:
          type: string
          description: The shift roll time (ISO 8601)
        rolls:
          type: array
          items:
            $ref: '#/components/schemas/OnCallRoll'
      required:
      - onCallType
      - rolls
    OnCallRoll:
      type: object
      properties:
        start:
          type: string
          description: The on-call period start time (ISO 8601)
        end:
          type: string
          description: The on-call period end time (ISO 8601)
        onCallUser:
          $ref: '#/components/schemas/User'
        isRoll:
          type: boolean
      required:
      - start
      - end
      - isRoll
    OnCallOverride:
      type: object
      properties:
        origOnCallUser:
          $ref: '#/components/schemas/User'
        overrideOnCallUser:
          $ref: '#/components/schemas/User'
        start:
          type: string
          description: The override start time (ISO 8601)
        end:
          type: string
          description: The override end time (ISO 8601)
    TakeResult:
      type: object
      properties:
        result:
          type: string
    OnCallTeamResource:
      type: object
      properties:
        name:
          type: string
        slug:
          type: string
    EscalationPolicySummary:
      type: object
      description: A summary containing minimal, high-level information about an escalation policy.
      required:
      - name
      - slug
      - _selfUrl
      properties:
        name:
          type: string
          description: The name of this escalation policy
        slug:
          type: string
          description: 'A unique identifier for this escalation policy.


            The slug is in the format `pol-[\w\d]{16}`'
        _selfUrl:
          type: string
          description: This is a URI that is generated for this escalation policy. It points to the entire escalation policy resource. and can be used to get detailed information about this escalation policy instead of just the summary.
    OnCallTeamsResource:
      type: object
      properties:
        team:
          $ref: '#/components/schemas/OnCallTeamResource'
        onCallNow:
          type: array
          items:
            $ref: '#/components/schemas/OnCallNowResource'
  parameters:
    daysFwd:
      name: daysForward
      description: Days to include in returned schedule (123 max)
      required: false
      in: query
      schema:
        type: number
        default: 14
        maximum: 123
        minimum: 0
    apiKey:
      name: X-VO-Api-Key
      description: Your API Key
      required: true
      in: header
      schema:
        type: string
    apiId:
      name: X-VO-Api-Id
      description: Your API ID
      required: true
      in: header
      schema:
        type: string
    takeRequestPayload:
      name: body
      description: The take on-call payload
      in: body
      required: true
      schema:
        $ref: '#/components/schemas/TakeRequest'
    daysSkip:
      name: daysSkip
      description: Days to skip before computing schedule to return (90 max)
      required: false
      in: query
      schema:
        type: number
        default: 0
        maximum: 90
        minimum: 0
    step:
      name: step
      description: Step of escalation policy (3 max)
      required: false
      in: query
      schema:
        type: number
        default: 0
        maximum: 3
        minimum: 0
  responses:
    '500':
      description: Internal Server Error
    '400':
      description: Problem with the request arguments.  The response payload may include an error message.
    user-not-found:
      description: User not found
    '429':
      description: Rate-limit reached
    '401':
      description: Authentication parameters missing
    '403':
      description: Authentication failed or rate-limit reached
    team-not-found:
      description: Team not found
  requestBodies:
    TakeRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TakeRequest'
      description: The take on-call payload
      required: true
  securitySchemes:
    apiId:
      type: apiKey
      in: header
      name: X-VO-Api-Id
    apiKey:
      type: apiKey
      in: header
      name: X-VO-Api-Key
x-refined-from:
- victorops-api-v1.yaml
- victorops-openapi.yml