> ## Documentation Index
> Fetch the complete documentation index at: https://usegately.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Discussion

> Create a new discussion

Create a new discussion post in your community.

## Request Body

<ParamField body="title" type="string" required>
  Title of the discussion
</ParamField>

<ParamField body="content" type="string" required>
  Content/body of the discussion
</ParamField>

<ParamField body="author_id" type="string" required>
  ID of the user creating the discussion
</ParamField>

<ParamField body="category" type="string">
  Category for the discussion
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the discussion was created
</ResponseField>

<ResponseField name="discussion" type="object">
  The created discussion object
</ResponseField>

<RequestExample>
  ```bash theme={null}
  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"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "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"
    }
  }
  ```
</ResponseExample>
