Parcourir la référence
Toutes les ressources
Objectifs
4 endpoints · Les descriptions des points de terminaison sont en anglais.
Get the goal attached to a category
GET
/households/{householdId}/categories/{categoryId}/goalread:goals
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| categoryId | path | Requis |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/categories/{categoryId}/goalRéponse200 · Success
Create or replace the goal on a category (one goal per category)
PUT
/households/{householdId}/categories/{categoryId}/goalwrite:goals
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| categoryId | path | Requis |
Corps de la requête
json
{ "kind": "target_by_date", "targetCents": 600000, "byDate": "2026-12-31"}Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -X PUT https://api.vokse.ai/households/current/categories/{categoryId}/goal \ -d '{"kind":"target_by_date","targetCents":600000,"byDate":"2026-12-31"}'Réponse200 · Success
Remove the goal from a category
DELETE
/households/{householdId}/categories/{categoryId}/goalwrite:goals
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| categoryId | path | Requis |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X DELETE https://api.vokse.ai/households/current/categories/{categoryId}/goalRéponse204 · No content
List every goal in the household
GET
/households/{householdId}/goalsread:goals
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/goalsRéponse200 · Success