autonomous.contact/public/api/channels
2025-11-08 17:15:26 -08:00
..
:channel_id refactor: events to a pure stream instead of being part of topics 2025-11-08 11:55:57 -08:00
index.ts refactor: first pass on getting the client back into working order 2025-11-08 17:15:26 -08:00
README.md refactor: first pass on getting the client back into working order 2025-11-08 17:15:26 -08:00

/api/channels

Interact with channels.

POST /api/channels

Create a new channel.

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

GET /api/channels

Get channels.