Projects & Keys

A project is Relay's isolation boundary. Everything you create — rooms, keys, and usage — belongs to exactly one project.

Rooms are namespaced per project

Every room you create is automatically namespaced to your project. When you request a room called my-room, Relay scopes it internally to p_<projectId>__my-room. Two projects can both use a room named lobbywithout ever colliding, and one tenant can never join or even address another tenant's rooms.

Keys and metering are scoped per project

  • Each project has its own set of API keys. A key only ever authorizes requests for the project it belongs to.
  • Usage is metered per project, so participant-minutes and costs are attributed to the project whose key minted the token.