Skip to main content
POST
Error

Authorizations

X-API-Key
string
header
required

Personal Access Token, sent verbatim as pat_<32 chars>. PATs are minted from the Chief settings UI.

Headers

X-Project-Id
string
required

Project identifier scoping the request. Required on every project-scoped public endpoint. Missing or malformed values respond with HTTP 400 and code publicapi.tenancy.project.missing.

Pattern: ^project_[a-z0-9]{20}$

Path Parameters

id
string
required

Chat identifier.

Pattern: ^chat_[a-z0-9]{20}$

Body

application/json
email
string<email>
required

Email of a current project member to add to the audience. Emails that don't resolve to a project member are rejected.

Response

Member added (or already present).

One user in a restricted chat's audience. Distinct from project members: audience membership only narrows who can read the chat and never grants project access.

user_id
string
required
Pattern: ^user_[a-z0-9]{20}$
email
string<email>
required
name
string

Display name. Omitted when the user hasn't set one.