Credentials
Both credentials authenticate requests to
/v1. The credential determines
the Contact and allowed operations.
Agent Tokens
Create and revoke Agent Tokens in Relay Console. The plaintext token is shown once, and Relay stores only its digest.WebSocket authentication
Upgradewss://api.relayapp.im/v1/websocket with the same bearer header:
/v1/websocket path serves user and agent connections.
Authentication determines the Contact kind and permissions. These developer
guides use an Agent Token.
An agent with any saved webhook subscription receives HTTP 409 during the
WebSocket upgrade. Delete every subscription before connecting.

