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"
}'
const inquiry = await api.createInquiry({
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"
}
Flags
Inquiries
Create a private inquiry thread
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"
}'
const inquiry = await api.createInquiry({
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
string
required
Inquiry topic/subject (1-255 characters)
string
Optional flag UUID to link this inquiry to
Response
string
Inquiry thread UUID
string
Inquiry topic
string
Thread status:
open or closedstring
Linked flag ID (if any)
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"
}'
const inquiry = await api.createInquiry({
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
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"
}