# POST /get_notification_preferences

Source: https://heyeveryone.ai/docs/api/get_notification_preferences

> https://heyeveryone.ai/api/v1/get_notification_preferences

## Operation

```json
{
  "post": {
    "description": "Read your notification settings: whether notifications are emailed (batched: one email for a burst), which kinds are muted from email, the opt-in digest (daily, or weekly on Mondays) with its UTC hour, and whether you get the getting-started emails (lifecycleEmails). Also lists every notification kind.",
    "operationId": "get_notification_preferences",
    "requestBody": {
      "content": {
        "application/json": {
          "schema": {
            "properties": {},
            "type": "object"
          }
        }
      },
      "required": true
    },
    "responses": {
      "200": {
        "content": {
          "application/json": {
            "schema": {
              "additionalProperties": false,
              "properties": {
                "preferences": {
                  "additionalProperties": false,
                  "properties": {
                    "emailEnabled": {
                      "type": "boolean"
                    },
                    "mutedKinds": {
                      "items": {
                        "enum": [
                          "post.failed",
                          "post.needs_attention",
                          "post.manual",
                          "post.late",
                          "post.published_with_notice",
                          "post.removal_failed",
                          "channel.reconnect_required",
                          "publishing.paused",
                          "channel.expiring",
                          "channel.connected_through_link",
                          "feedback.received",
                          "agent.request",
                          "review.requested",
                          "webhook.failing",
                          "comment.mention",
                          "comment.reply",
                          "comment.on_your_content",
                          "approval.requested",
                          "approval.given",
                          "changes.requested"
                        ],
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "dailyDigest": {
                      "type": "boolean"
                    },
                    "digestHourUtc": {
                      "maximum": 23,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digestFrequency": {
                      "enum": [
                        "daily",
                        "weekly"
                      ],
                      "type": "string"
                    },
                    "lifecycleEmails": {
                      "type": "boolean"
                    },
                    "kinds": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "kind": {
                            "enum": [
                              "post.failed",
                              "post.needs_attention",
                              "post.manual",
                              "post.late",
                              "post.published_with_notice",
                              "post.removal_failed",
                              "channel.reconnect_required",
                              "publishing.paused",
                              "channel.expiring",
                              "channel.connected_through_link",
                              "feedback.received",
                              "agent.request",
                              "review.requested",
                              "webhook.failing",
                              "comment.mention",
                              "comment.reply",
                              "comment.on_your_content",
                              "approval.requested",
                              "approval.given",
                              "changes.requested"
                            ],
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "label"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "emailEnabled",
                    "mutedKinds",
                    "dailyDigest",
                    "digestHourUtc",
                    "digestFrequency",
                    "lifecycleEmails",
                    "kinds"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "preferences"
              ],
              "type": "object"
            }
          }
        },
        "description": "Success"
      },
      "400": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "invalid_input: the body does not match the schema"
      },
      "401": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "unauthenticated: missing, invalid, expired or revoked token"
      },
      "403": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "forbidden: the agent may not do this (for example, another workspace)"
      },
      "404": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "not_found"
      },
      "409": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "conflict"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      },
      "500": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "internal_error"
      }
    },
    "summary": "Get notification preferences",
    "tags": [
      "account"
    ],
    "x-heyeveryone-kind": "query"
  }
}
```

## Referenced definitions

```json
{
  "schemas": {
    "Error": {
      "properties": {
        "error": {
          "description": "A stable error code, for example forbidden.",
          "type": "string"
        },
        "message": {
          "description": "What went wrong, in plain words.",
          "type": "string"
        }
      },
      "required": [
        "error",
        "message"
      ],
      "type": "object"
    }
  },
  "responses": {
    "RateLimited": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "description": "rate_limited: too many requests from this agent, account or address (docs/setup/agents.md, Rate limits); wait the Retry-After seconds, then retry",
      "headers": {
        "Retry-After": {
          "description": "Seconds to wait before retrying.",
          "schema": {
            "minimum": 1,
            "type": "integer"
          }
        }
      }
    }
  }
}
```

## Authentication

```json
{
  "bearer": {
    "description": "Personal access token (hey_pat_...)",
    "scheme": "bearer",
    "type": "http"
  },
  "oauth": {
    "flows": {
      "authorizationCode": {
        "authorizationUrl": "https://heyeveryone.ai/oauth/authorize",
        "refreshUrl": "https://heyeveryone.ai/oauth/token",
        "scopes": {
          "agent": "Act as your agent in the workspaces you choose"
        },
        "tokenUrl": "https://heyeveryone.ai/oauth/token"
      }
    },
    "type": "oauth2"
  }
}
```

## Security requirements

```json
[
  {
    "bearer": []
  },
  {
    "oauth": [
      "agent"
    ]
  }
]
```
