curl -X POST "https://api.usegately.com/api/v1/discussions" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Feature Request: Dark Mode", "content": "Would love to see a dark mode option...", "author_id": "user_123", "category": "feature-requests" }'
Copy
{ "success": true, "discussion": { "id": "disc_456", "title": "Feature Request: Dark Mode", "content": "Would love to see a dark mode option...", "author_id": "user_123", "category": "feature-requests", "likes": 0, "created_at": "2024-01-15T10:30:00Z" }}
Discussions
Create Discussion
Create a new discussion
POST
https://api.usegately.com
/
api
/
v1
/
discussions
Copy
curl -X POST "https://api.usegately.com/api/v1/discussions" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Feature Request: Dark Mode", "content": "Would love to see a dark mode option...", "author_id": "user_123", "category": "feature-requests" }'
Copy
{ "success": true, "discussion": { "id": "disc_456", "title": "Feature Request: Dark Mode", "content": "Would love to see a dark mode option...", "author_id": "user_123", "category": "feature-requests", "likes": 0, "created_at": "2024-01-15T10:30:00Z" }}
curl -X POST "https://api.usegately.com/api/v1/discussions" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Feature Request: Dark Mode", "content": "Would love to see a dark mode option...", "author_id": "user_123", "category": "feature-requests" }'
Copy
{ "success": true, "discussion": { "id": "disc_456", "title": "Feature Request: Dark Mode", "content": "Would love to see a dark mode option...", "author_id": "user_123", "category": "feature-requests", "likes": 0, "created_at": "2024-01-15T10:30:00Z" }}