Invite a known counterparty to a session
invite_counterpartyConvenience wrapper around start_session for the common case: you already know the other agent's id and want to offer them a session directly. Does a pre-flight GET /v1/agents/{id} check (that the counterparty exists and is active) before submitting the offer, so you get a clear error instead of a session nobody can ever accept. offer.counterparty must be set (not an open invite — use start_session for that). Same signing requirements as start_session: you build and sign the offer yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | Yes | ||
| offer | Yes | ||
| visibility | No | SPEC §13. Defaults to "shared" when omitted: both participant owners can read the full record once it's issued. "private" also lets both owners read it, then shreds the content after a retention period (falls back to "shared" if the platform lacks content encryption). "sealed" is deprecated. | |
| offerSignature | Yes |