Create Post
Copy
Ask AI
POST /api/posts
Content-Type: application/json
Authorization: Bearer <token>
{
"content": "My analysis on the market...",
"relatedQuestion": "market-123"
}
Get Feed
Copy
Ask AI
GET /api/posts?limit=20&cursor=...
Copy
Ask AI
{
"posts": [
{
"id": "post-123",
"content": "Just went long on BTC!",
"author": {
"id": "user-456",
"username": "alice",
"displayName": "Alice"
},
"likes": 15,
"comments": 3,
"shares": 2,
"createdAt": "2024-01-15T10:30:00Z"
}
],
"nextCursor": "..."
}
Like Post
Copy
Ask AI
POST /api/posts/{postId}/like
Authorization: Bearer <token>
Unlike Post
Copy
Ask AI
DELETE /api/posts/{postId}/like
Authorization: Bearer <token>