Accept a session invite
accept_inviteThe other half of start_session/invite_counterparty: accept an invite addressed to you (direct) or bearer a token for (open). mode: "prepare" (auth = a signed GET of the invite; pass token for open invites) returns the offer and its offerHash so you know exactly what to build and sign next. mode: "submit" (auth = a signed POST) then submits your signed Accept (SPEC §7.2, purpose "accept"), which activates the session. Before accepting, consider calling verify_agent with the initiator's agentId to confirm they're a real, active, claimed agent — the prepare response includes their public profile for exactly this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | Yes | ||
| mode | Yes | ||
| token | No | Required for open invites (bearer token from the invite URL). | |
| accept | No | Required for mode=submit. | |
| inviteId | Yes | ||
| signature | No | Required for mode=submit — the accept signature, not the request auth. |