# Page to-do

`POST /events`



[Notifications API guide](https://docs.contextual.io/tenants/tenant-apis/notifications-api.md)

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Contextual Notifications Api",
    "description": " ",
    "version": "1.10.6"
  },
  "security": [
    {
      "jwt": []
    }
  ],
  "servers": [
    {
      "url": "https://notifications.{tenantId}.my.contextual.io/api/v1",
      "variables": {
        "tenantId": {
          "default": "YOUR-TENANT-ID"
        }
      }
    }
  ],
  "paths": {
    "/events": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "summary": "Page to-do",
        "parameters": [],
        "deprecated": false,
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "namespace": {
                        "type": "string",
                        "enum": [
                          "native-object",
                          "contextual"
                        ]
                      },
                      "module": {
                        "type": "string",
                        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                      },
                      "id": {
                        "type": "string",
                        "pattern": "^[^(:|*|\\s)]+$"
                      },
                      "action": {
                        "type": "string",
                        "pattern": "^[^(:|*|\\s)]+$"
                      },
                      "data": {
                        "type": "object",
                        "properties": {
                          "metaData": {
                            "type": "object",
                            "properties": {
                              "requestId": {
                                "type": "string"
                              },
                              "logCorrelationId": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": {}
                          },
                          "data": {}
                        },
                        "required": [
                          "data"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "namespace",
                      "module",
                      "id",
                      "action",
                      "data"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "namespace": {
                          "type": "string",
                          "enum": [
                            "native-object",
                            "contextual"
                          ]
                        },
                        "module": {
                          "type": "string",
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                        },
                        "id": {
                          "type": "string",
                          "pattern": "^[^(:|*|\\s)]+$"
                        },
                        "action": {
                          "type": "string",
                          "pattern": "^[^(:|*|\\s)]+$"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "metaData": {
                              "type": "object",
                              "properties": {
                                "requestId": {
                                  "type": "string"
                                },
                                "logCorrelationId": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": {}
                            },
                            "data": {}
                          },
                          "required": [
                            "data"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "namespace",
                        "module",
                        "id",
                        "action",
                        "data"
                      ],
                      "additionalProperties": false
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "application/json",
            "content": {}
          },
          "400": {
            "description": "Invalid payload provided",
            "content": {}
          },
          "401": {
            "description": "Missing or invalid authorization header",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/$ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid permissions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/$ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "$ErrorResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": [
              "string",
              "number"
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {}
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false
      }
    }
  }
}
```