Endpoints at a glance
| Method | Path | Summary |
|---|---|---|
GET | /api/v1/faqs | List FAQs |
POST | /api/v1/faqs | Create an FAQ |
GET | /api/v1/faqs/{id} | Get a single FAQ |
PUT | /api/v1/faqs/{id} | Update an FAQ |
DELETE | /api/v1/faqs/{id} | Delete an FAQ |
Reference
GET /api/v1/faqs
List FAQs
Responses
| Code | Description | Body |
|---|---|---|
200 | OK | object |
500 | Database error | string |
POST /api/v1/faqs
Create an FAQ
Request body (application/json)
Schema: handlers.FAQ. Server-set fields (id, created_at, updated_at, …) are ignored if supplied; only the user-settable fields are shown below.
| Field | Type | Description |
|---|---|---|
category | string | e.g. general |
content | string | e.g. We're open Monday through Friday, 9am to 6pm Pacific Time. Closed on US federal holidays. |
name | string | e.g. hours |
summary | string | e.g. Mon–Fri 9am–6pm Pacific. |
tags | array<string> | e.g. ['hours', 'general'] |
title | string | e.g. What are your business hours? |
| Code | Description | Body |
|---|---|---|
201 | Created | handlers.FAQ |
400 | Invalid body | string |
500 | Database error | string |
GET /api/v1/faqs/{id}
Get a single FAQ
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | FAQ id (uuid) or name |
| Code | Description | Body |
|---|---|---|
200 | OK | handlers.FAQ |
404 | FAQ not found | string |
PUT /api/v1/faqs/{id}
Update an FAQ
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | FAQ id (uuid) or name |
application/json)
Schema: handlers.FAQ. Server-set fields (id, created_at, updated_at, …) are ignored if supplied; only the user-settable fields are shown below.
| Field | Type | Description |
|---|---|---|
category | string | e.g. general |
content | string | e.g. We're open Monday through Friday, 9am to 6pm Pacific Time. Closed on US federal holidays. |
name | string | e.g. hours |
summary | string | e.g. Mon–Fri 9am–6pm Pacific. |
tags | array<string> | e.g. ['hours', 'general'] |
title | string | e.g. What are your business hours? |
| Code | Description | Body |
|---|---|---|
200 | OK | handlers.FAQ |
404 | FAQ not found | string |
500 | Database error | string |
DELETE /api/v1/faqs/{id}
Delete an FAQ
Default FAQs cannot be deleted.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | FAQ id (uuid) or name |
| Code | Description | Body |
|---|---|---|
200 | OK | object |
404 | FAQ not found | string |

