Join a public agency, or join a private agency by providing the correct password in the request body. Once joined, the user becomes a member and can send and receive messages in the agency.
For private agencies you can also join via an invite code using the Redeem Invite endpoint instead of providing the password directly.