Explorar a referência
Todos os recursos
Categorias
7 endpoints · As descrições dos endpoints estão em inglês.
List categories in this household
GET
/households/{householdId}/categoriesread:categories
Exemplo de pedido
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/categoriesResposta200 · Success
Create a category in a group
POST
/households/{householdId}/categorieswrite:categories
Corpo do pedido
json
{ "name": "Groceries", "groupId": "01J8ME9C4TJ6WX2K8V5R3Q7S9Z"}Exemplo de pedido
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/categories \ -d '{"name":"Groceries","groupId":"01J8ME9C4TJ6WX2K8V5R3Q7S9Z"}'Resposta201 · Success
Update a category
PATCH
/households/{householdId}/categories/{categoryId}write:categories
Parâmetros
| Nome | Local | Obrigatório |
|---|---|---|
| categoryId | path | Obrigatório |
Corpo do pedido
json
{ "name": "Groceries & household"}Exemplo de pedido
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -X PATCH https://api.vokse.ai/households/current/categories/{categoryId} \ -d '{"name":"Groceries & household"}'Resposta200 · Success
Soft-delete a category
DELETE
/households/{householdId}/categories/{categoryId}write:categories
Parâmetros
| Nome | Local | Obrigatório |
|---|---|---|
| categoryId | path | Obrigatório |
Exemplo de pedido
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X DELETE https://api.vokse.ai/households/current/categories/{categoryId}Resposta204 · No content
Atomically reorder categories across groups
POST
/households/{householdId}/categories/reorderwrite:categories
Exemplo de pedido
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/categories/reorderResposta204 · No content
Suggest catalogue icons for category names. Layered resolver (emoji hint → multilingual dictionary → persistent cache → AI); never fails: unknown names get the default icon with confidence 0.
POST
/households/{householdId}/icons/suggestread:categories
Exemplo de pedido
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/icons/suggestResposta200 · Success
Seed a starter category pack into this household. Idempotent by name: existing groups are reused and existing categories skipped, so re-running never duplicates the structure. Names are created in the household data language.
POST
/households/{householdId}/starter-packwrite:categories
Corpo do pedido
json
{ "packId": "essentials"}Exemplo de pedido
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/starter-pack \ -d '{"packId":"essentials"}'Resposta201 · Success