API 文档

Orvenixa REST API 参考。所有接口基于 Cookie 会话认证(orvenixa_session)。

最后更新:2026 年 7 月 13 日

快速开始

基础 URL:https://你的域名.com

认证方式:登录后自动设置 HttpOnly Cookie,后续请求携带即可。

数据格式:请求与响应均为 JSON,Content-Type: application/json

前往网页版体验 →

认证

POST/api/auth/register注册(需验证码)
POST/api/auth/login登录
POST/api/auth/logout退出
GET/api/auth/me当前用户
PATCH/api/auth/profile更新资料
PATCH/api/auth/password修改密码
POST/api/auth/send-code发送注册验证码

帖子

GET/api/posts?scope=global|following动态流
POST/api/posts/发帖
DELETE/api/posts/[id]删帖
POST/api/posts/[id]/interact?type=like|repost|bookmark互动
GET/api/posts/[id]/comments评论列表
POST/api/posts/[id]/comments发表评论

用户与关注

GET/api/users用户列表
GET/api/users/[username]用户主页
GET/api/follows?userId=&list=关注数据/列表
POST/api/follows关注/取消

探索与社区

GET/api/explore热门话题
GET/api/explore?q=搜索
GET/api/communities社区列表
POST/api/communities创建社区
GET/api/communities/[id]社区详情

消息与通知

GET/api/messages会话列表
POST/api/messages创建私聊/群聊
GET/api/messages/[id]消息记录
GET/api/notifications通知列表

其他

GET/api/creator创作者统计
POST/api/ai/chatAI 对话

SDK

官方 SDK 正在开发中,详见 SDK 页面