Skip to main content
POST
/
api
/
flags
/
inquiries
curl -X POST "https://api.hitler.app/api/flags/inquiries" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "Question about remote work policy"
  }'
{
  "id": "inquiry-uuid-123",
  "topic": "Question about remote work policy",
  "status": "open",
  "flagId": null,
  "userId": "user-uuid",
  "organizationId": "org-uuid",
  "createdAt": "2024-01-15T10:00:00.000Z"
}
This endpoint requires authentication.

Request

topic
string
required
Inquiry topic/subject (1-255 characters)
flagId
string
Optional flag UUID to link this inquiry to

Response

id
string
Inquiry thread UUID
topic
string
Inquiry topic
status
string
Thread status: open or closed
flagId
string
Linked flag ID (if any)
createdAt
string
Creation timestamp
curl -X POST "https://api.hitler.app/api/flags/inquiries" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "Question about remote work policy"
  }'
{
  "id": "inquiry-uuid-123",
  "topic": "Question about remote work policy",
  "status": "open",
  "flagId": null,
  "userId": "user-uuid",
  "organizationId": "org-uuid",
  "createdAt": "2024-01-15T10:00:00.000Z"
}

Add Message

Add a message to an inquiry thread.

Request

content
string
required
Message content (1-2000 characters)

Response

{
  "id": "message-uuid",
  "content": "Your message here",
  "senderId": "user-uuid",
  "senderType": "user",
  "createdAt": "2024-01-15T10:05:00.000Z"
}

Close Inquiry

Close an inquiry thread.

Response

{
  "id": "inquiry-uuid-123",
  "status": "closed",
  "closedAt": "2024-01-15T12:00:00.000Z"
}