# Your upcoming shifts and the open pages that notified you

GET /api/agent/oncall/me. Required scopes: oncall:read.

HTML: https://notify.belweave.ai/docs/api/getOncallMe

Required scopes: `oncall:read`

```http
GET /api/agent/oncall/me
Authorization: Bearer ntf_your_token
```

## Operation schema

```json
{
  "summary": "Your upcoming shifts and the open pages that notified you",
  "operationId": "getOncallMe",
  "security": [
    {
      "bearer": [
        "oncall:read"
      ]
    }
  ],
  "x-notify-scopes": [
    "oncall:read"
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "shifts": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/OncallShift"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "groupId": {
                          "type": "string"
                        },
                        "groupName": {
                          "type": "string"
                        },
                        "teamId": {
                          "type": "string"
                        },
                        "teamName": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "groupId",
                        "groupName",
                        "teamId",
                        "teamName"
                      ]
                    }
                  ]
                }
              },
              "pages": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OncallPage"
                }
              }
            },
            "required": [
              "shifts",
              "pages"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid request",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "401": {
      "description": "Missing, unknown, revoked, or expired token",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The token lacks a required scope or the account lacks permission",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Not found for this account",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}
```

Resolve schema references against [OpenAPI](https://notify.belweave.ai/openapi.json).
