accept Terms
Creates a Relay user record in the Relay service database.
This function was originally used to signal acceptance of terms and privacy notices, but now primarily serves to provision (create) the Relay user record if one does not exist.
Errors
RelayApi
: Returned for any non-successful (non-2xx) HTTP response. Provides the HTTPstatus
and responsebody
; downstream consumers can inspect these fields. If the response body is JSON witherror_code
ordetail
fields, these are parsed and included for more granular handling; otherwise, the raw response text is used as the error detail.Network
: Returned for transport-level failures, like loss of connectivity, with details inreason
.Other variants may be returned for unexpected deserialization, URL, or backend errors.