Hub REST API
Proactive
The Proactive operations of the Hub REST API (1 operation).
For BuildersOpen-source podSynap CloudGenerated from Synap-core/backend@c31e261ab (main)
POST
bearerAuthheader
AuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
userId*stringworkspaceId*stringcontent*stringPlaintext or markdown body. Max 10000 chars.
Length
length <= 10000proactiveType*ProactiveTypeValue in
"insight""suggestion""alert""nudge""morning_briefing""weekly_digest""health_check"reasoning?stringmetadata?Delivery result (may be posted=false when rate-limited)
application/json- response
posted*booleandelivered?booleanchannelId?stringmessageId?stringreason?stringdetail?string[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/proactive/post' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string", "workspaceId": "string", "content": "string", "proactiveType": "insight"}'Example Response
{ "posted": true, "delivered": true, "channelId": "string", "messageId": "string", "reason": "string", "detail": "string", "property1": null, "property2": null}