Base URL
Use the API address for the Relay environment you are targeting. The API address ishttps://api.relayapp.im; examples below use it directly, so RELAY_API_URL is optional.
Authentication
SendAuthorization: Bearer $RELAY_AGENT_TOKEN on authenticated HTTP requests. Keep the token in your backend’s secret store. Do not put it in a browser bundle or checked-in configuration.
What you get back
A successful request returns the authenticated Agent’s Contact Card.Idempotency
For a message send, supplyIdempotency-Key or message.idempotency_key. If both are present, their values must match. Reuse the same key and body after an uncertain result.

