autonomous.contact/public/api/rooms
2025-07-01 15:37:35 -07:00
..
:room_id feature: the beginnings of chat working 2025-07-01 15:37:35 -07:00
index.ts feature: the beginnings of chat working 2025-07-01 15:37:35 -07:00
README.md feature: rooms and events implemented on the backend 2025-06-27 17:54:04 -07:00

/api/rooms

Interact with rooms.

POST /api/rooms

Create a new room.

export type ROOM = {
	id: string; // unique id for this room
	name: string; // the name of the room (max 128 characters)
	icon_url?: string; // optional url for a room icon
	topic?: string; // optional room topic
	tags: string[]; // a list of tags for the room
	meta: Record<string, any>;
	limits: {
		users: number;
		user_messages_per_minute: number;
	};
	creator_id: string; // user_id of the room creator
	emojis: Record<string, string>; // either: string: emoji eg: { 'rofl: 🤣, ... } or { 'rofl': 🤣, 'blap': 'https://somewhere.someplace/image.jpg' }
};

GET /api/rooms

Get rooms.