---
title: "Messenger Push Surface Post"
method: POST
path: "/api/social/messenger/push-surface"
tags: ["AgentSocial"]
---

# Messenger Push Surface Post

`POST /api/social/messenger/push-surface`

## Request

- Base URL: `https://api.agentstack.tech` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agentstack.tech/api/social/messenger/push-surface`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Lightweight beacon: which chat is open and whether the UI is visible (for Web Push policy).

## Headers

- `Idempotency-Key` string

## Request body

- MessengerPushSurfaceBody: Client-reported foreground channel + document visibility for OS push gating.
  - `home_project_id` integer, required
  - `channel_id` string
  - `doc_visible` boolean: False when the tab/PWA is backgrounded, screen locked, or hidden.

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation Error
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/agentstack/apis/agentstack-core-api.md) · [All operations](https://skmtc.dev/agentstack/apis/agentstack-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentstack/apis/agentstack-core-api/revisions/8ecf3406e74a?raw)
