DOCUMENTATION / AUTHENTICATION

One identity. Clear boundaries.

Developers use their Relay account. Bots use a separate application identity and revocable token.

Developer authentication

relaydev.pullup.at reuses Pullup’s existing HttpOnly session cookie on .pullup.at. The portal calls the backend with credentials included; trusted origins are explicitly allowlisted. No bot token is used to sign a developer in.

The sign-in bridge returns through a fixed backend path before redirecting to the developer console. The future developer.relaychat.now domain needs an authentication migration before cutover because the current cookie cannot span unrelated domains.

Bot authentication

Tokens have the form rlb_<application UUID>.<64 hex characters>. Each application supports up to five active tokens, with an expiry from 1 to 365 days. Only a SHA-256 hash and the last four characters are stored. Never put a token in a browser, an invite, a screenshot, or a message.

A token authorizes the application’s granted community operations. It cannot read private DMs or log in as a person. Team membership does not automatically grant permissions in a community.

Terminal
curl https://pullup.at/api/relay-bots/v1/me \
  -H "Authorization: Bot $RELAY_BOT_TOKEN"

Rotation and account changes

  1. Create a replacement token and update your bot’s environment.
  2. Restart the bot and confirm its presence and event processing.
  3. Revoke the old token in the console. Revocation is checked on every API operation.
  4. Removing a developer from a team prevents new console access. Rotate tokens that person may have retained.