{"ok":true,"resource":"docs","data":{"name":"MyHero API","summary":"JSON API for every MyHero data store. Read this first; it is generated from the code so it is always current.","endpoint":"{origin}/api?resource=<name>","authentication":{"public":["docs","version"],"methods":[{"type":"bearer","header":"Authorization: Bearer <API_KEY>"},{"type":"api_key","header":"X-API-Key: <API_KEY>"},{"type":"http_basic","notes":"App username and password"},{"type":"session","notes":"Browser login cookie"}]},"response_envelope":"{\"ok\": true, \"resource\": \"...\", \"data\": ...} on success; {\"ok\": false, \"error\": \"...\"} on failure.","conventions":{"ids":"Every record has a string \"id\" with a resource prefix. Auto-generated unless you pass your own.","methods":"GET list or ?id=; POST create; PATCH/PUT update with ?id= or \"id\" in the body; DELETE with id. POST with \"action\" runs a resource action.","update_semantics":"PATCH deep-merges objects; arrays are replaced wholesale.","body":"JSON body, flat or wrapped as {\"data\": {...}}. Query params are merged into the input.","dates":"YYYY-MM-DD, local to Dubai."},"extra_endpoints":{"dashboard":"GET: balances, month totals, alerts, due tasks/loans, expiring domains, birthdays, commitments_due (next 30 days by currency + paid_unconfirmed expenses to confirm) and shortfall_alert (accounts the forecast pushes below zero).","forecast":"GET ?months=6&currency=&account_id=: read-only cash forecast from future expenses, loan installments, active/keep domain renewals and subscriptions with a cost. Per month and per currency {total, outstanding, items[{date, name, amount, source, estimate, task_id, state: pending|due_soon|paid_unconfirmed|paid}]}, cash_needed_by (next 5 due dates, running totals per currency) and shortfall per pay-from account (balance minus cumulative dues, first negative date, gap; items without an account under \"unassigned\"). Currencies are never summed together.","balances":"GET: current balance per account.","reports":"GET ?month=YYYY-MM: inflow/outflow by category. Add include=forecast for the forecast block.","calendar":"GET: current calendar feed token and URL; POST action=regenerate issues a new token (old feed URLs stop working).","calendar_feed":"GET /calendar.ics?key=<API_KEY>: tasks, future-expense due dates (their reminder tasks are not repeated), loan due dates, domain expiries and birthdays as an iCal feed.","alerts":"GET: bank/card months with no transactions (missing statements).","devices":"GET: logged-in browser sessions; POST action=revoke with id.","apikeys":"Session login only (403 for API-key auth): GET list, POST {label, expires_days} create, DELETE id revoke. Over MCP use myhero_admin_apikeys.","schema":"GET: field definitions of every resource (used by the UI forms).","health":"GET: liveness check with database status.","version":"GET (public): deployed Worker version id.","mcp":"POST /mcp: Model Context Protocol (JSON-RPC) server exposing this API as tools."},"resources":[{"name":"accounts","id_prefix":"acct","description":"Bank/cash/card accounts that transactions post against.","read_only":false,"fields":{"name":"text, required","type":"select, bank|credit_card|cash|wallet|investment|other","currency":"text","opening_balance":"number, Balance on the opening balance date","opening_balance_date":"date, Transactions on or before this date are already included in the opening balance (default 2025-12-31)","credit_limit":"number","statement_day":"number, Credit cards: day of month the statement is issued (drives missing-statement alerts)","cards":"rows of {label, type, issuer, last4, limit, expires, notes}","notes":"textarea"},"actions":[]},{"name":"transactions","id_prefix":"tx","description":"The ledger. GET supports ?account_id=, ?start=, ?end= (YYYY-MM-DD) and ?id=. A transfer creates two linked rows. Every create/update is duplicate-checked: same account_id + date + type + amount + currency AND matching description or counterparty (or both blank) returns HTTP 409 with the existing row. Pass \"allow_duplicate\": true for a genuine repeat.","read_only":false,"fields":{"date":"date, required","account_id":"ref→accounts.id, required","type":"select, required, outflow|inflow|transfer","amount":"number, required, Always positive; the type gives the direction","currency":"text","description":"text","counterparty":"text","transfer_account_id":"ref→accounts.id, Only for transfers: the receiving account","category_id":"ref→categories.id","subcategory_id":"text","contact_id":"ref→contacts.id","status":"select, unmapped|mapped","notes":"textarea","allow_duplicate":"bool, Force save even if it looks like a duplicate"},"actions":[{"name":"preview","params":{"rows":"array of {date, amount|debit+credit, type?, description?, counterparty?, notes?, category_id?}","category_id":"default accounts.id for rows without one"},"notes":"Statement import dry run: normalises dates/amounts/types and flags rows that will be skipped (no_date, zero_amount, out_of_range = not 2026). Writes nothing."},{"name":"import","params":{"account_id":"required accounts.id","rows":"same as preview","category_id":"default category","skip":"array of row indexes to leave out"},"notes":"Bulk create from a statement. Only 2026 rows are created; each row is duplicate-checked (also against earlier rows in the same batch). Returns imported/duplicates/skipped/out_of_range counts, inflow/outflow/net and per-row status."}]},{"name":"categories","id_prefix":"cat","description":"Two-level category tree. children is a list of {id, name}.","read_only":false,"fields":{"name":"text, required","children":"rows of {name}"},"actions":[]},{"name":"contacts","id_prefix":"ct","description":"People/contacts.","read_only":false,"fields":{"full_name":"text, required","relationship_to_me":"text","birthday":"date","anniversary":"date","mobiles":"rows of {label, number}","phones":"rows of {label, number}","emails":"rows of {label, email}","socials":"rows of {platform, handle, url}","relationships":"rows of {name, relation}, Family and connections, e.g. Priya · sister","notes":"textarea"},"actions":[{"name":"importvcf","params":{"text":"required, vCard (.vcf) file contents"},"notes":"Bulk-imports contacts from a vCard export; existing contacts are matched by name/phone/email."}]},{"name":"folders","id_prefix":"fld","description":"Task folders. Use the \"tasks\" resource to create/edit individual tasks.","read_only":false,"fields":{"name":"text, required","notes":"textarea","tasks":"json"},"actions":[]},{"name":"tasks","id_prefix":"tsk","description":"Virtual resource over folders. GET supports ?folder_id=, ?task_id=, ?slug=, ?status=, ?priority=, ?q= (search), ?limit= (max 100, default 10), ?offset=; rows are sorted deadline → sort_order → name (closed ones by closed_at desc) and include contact_name. POST needs name (folder defaults to Miscellaneous; pass quick=true to land in Inbox). PATCH/DELETE need task_id. action=snooze {task_id, days} pushes the deadline; action=reorder {folder_id, order:[task_ids]} sets manual order. Future-expense reminders carry expense_id and show the expense's amount, currency and pay_from (read-only); filter with ?linked=expense, ?expense_id= or ?folder=Future Expenses. Completing such a task never creates a transaction: it flags the expense paid_unconfirmed (use expenses action=markpaid to record the payment); reopening it reverts the flag.","read_only":false,"fields":{"name":"text, required","deadline":"datetime, YYYY-MM-DD or YYYY-MM-DD HH:MM","status":"select, pending|completed|cancelled","recurrence":"select, daily|weekly|monthly|yearly","priority":"select, low|medium|high","folder_id":"ref→folders.id","contact_id":"ref→contacts.id","notes":"textarea","closing_note":"textarea","expense_id":"ref→expenses.id, Linked future expense (normally set by the expense itself or expenses action=link_task)","amount":"number, read-only (use actions), From the linked expense","currency":"text, read-only (use actions), From the linked expense","pay_from":"ref→accounts.id, read-only (use actions), From the linked expense"},"actions":[{"name":"snooze","params":{"task_id":"required","days":"number, default 1"},"notes":"Pushes the deadline forward, keeping the time of day."},{"name":"reorder","params":{"folder_id":"required","order":"array of task_ids"},"notes":"Sets manual sort order within a folder."}]},{"name":"investments","id_prefix":"inv","description":"Holdings with a buy/sell ledger. Use action=addentry for buys/sells so the money movement hits the ledger.","read_only":false,"fields":{"name":"text, required","type":"text","currency":"text, Default currency for entries and linked transactions (e.g. USD, AED)","entries":"rows of {date, action, item, quantity, unit_price, amount}, read-only (use actions)","notes":"rows of {body, pinned}"},"actions":[{"name":"addentry","params":{"id":"required","entry_action":"buy|purchase|sell|dividend|interest|income","item":"string","quantity":"number","unit_price":"number","amount":"number, overrides quantity*unit_price","date":"YYYY-MM-DD, default today","account_id":"accounts.id; when valid with an amount, creates a linked transaction","currency":"string, default USD","description":"string","notes":"string"},"notes":"Duplicate-checked like transactions: a 409 means the entry was NOT added."},{"name":"updateentry","params":{"id":"required","entry_id":"required","entry_action":"buy|sell|dividend|interest|income","item":"string","quantity":"number","unit_price":"number","amount":"number","date":"YYYY-MM-DD","notes":"string"},"notes":"Edits an entry and keeps its linked transaction in sync (amount/type/date). Only the fields sent are changed."},{"name":"deleteentry","params":{"id":"required","entry_id":"required"},"notes":"Removes the entry and its linked transaction."},{"name":"addnote","params":{"id":"required","body":"string","pinned":"bool"}},{"name":"togglenotepin","params":{"id":"required","note_id":"required"}}]},{"name":"loans","id_prefix":"loan","description":"Loans/liabilities with an installment ledger. Use action=addinstallment for payments.","read_only":false,"fields":{"name":"text, required","lender":"text","loan_number":"text","repayment_account":"ref→accounts.id","currency":"text","principal_amount":"number","outstanding_principal":"number","interest_rate":"number","apr":"number","installment_amount":"number","frequency":"select, monthly|weekly|yearly","tenure_months":"number","disbursed_date":"date","next_due_date":"date","maturity_date":"date","status":"select, active|closed","installments":"rows of {date, principal_paid, interest_paid, total_paid, balance_after}, read-only (use actions)","notes":"textarea"},"actions":[{"name":"addinstallment","params":{"id":"required","date":"required YYYY-MM-DD","principal_paid":"number","interest_paid":"number","fees_paid":"number","total_paid":"number, defaults to the sum","balance_after":"number, defaults to outstanding - principal_paid","account_id":"accounts.id, overrides repayment_account","notes":"string"},"notes":"Updates outstanding_principal and next_due_date; creates a linked outflow when an account is known. A 409 means it was NOT recorded."}]},{"name":"domains","id_prefix":"dom","description":"Registered domains and their renewal history.","read_only":false,"fields":{"name":"text, required","registrar":"text","expiry_date":"date","username":"text","email":"text","password":"secret","shared_ip":"text","renewals":"rows of {date, new_expiry, amount, currency, notes}, read-only (use actions)","status":"select, active|review|keep|expired|not_needed, Blank counts as active. Only active/keep renewals appear in the forecast.","in_use":"bool","purpose":"text","renewal_cost":"number, Expected renewal cost; blank shows as \"cost unknown\" in the forecast","currency":"select, AED|INR|USD","auto_renew":"bool"},"actions":[{"name":"renew","params":{"id":"required","new_expiry":"required YYYY-MM-DD","date":"YYYY-MM-DD, default today","amount":"number","currency":"string","account_id":"string","transaction_id":"string (link an existing one instead of creating)","notes":"string","allow_duplicate":"bool"},"notes":"new_expiry is required. When amount > 0 a linked outflow (category Domains & Hosting, tagged domain_id) is created with the usual duplicate check — a 409 means the renewal was NOT recorded. Pass allow_duplicate=true to force."},{"name":"deleterenewal","params":{"id":"required","renewal_id":"required"}}]},{"name":"subscriptions","id_prefix":"sub","description":"Recurring subscriptions/memberships, optionally with attendance tracking.","read_only":false,"fields":{"name":"text, required","type":"select, monthly|yearly|weekly|daily","start_date":"date","end_date":"date","duration_value":"number","duration_unit":"select, days|weeks|months|years","cost":"number","currency":"text","account_id":"ref→accounts.id","contact_id":"ref→contacts.id","track_attendance":"bool","attendance":"rows of {date, status}, read-only (use actions)","notes":"textarea"},"actions":[{"name":"attendance","params":{"id":"required","date":"required YYYY-MM-DD","status":"attended|missed"},"notes":"One entry per date."}]},{"name":"expenses","id_prefix":"exp","description":"Planned bills and commitments (rent cheques, EMIs, school fees…). Each active expense keeps exactly one pending reminder task (\"EXP | name | CCY amount\", deadline = due date minus remind_days_before) in the reminder_folder, updated in place. action=markpaid is the ONLY way a payment reaches the ledger: it creates one linked outflow (duplicate-checked, 409 = nothing recorded), appends to payments, advances next_due_date (or ends the expense after end_date) and rolls the reminder. Completing the reminder task only sets status paid_unconfirmed. Linked loans/domains/subscriptions are not double-counted in the forecast; loans stay the source of truth. Never store credentials here.","read_only":false,"fields":{"name":"text, required","amount":"number, required, > 0","currency":"select, required, AED|INR|USD","category":"ref→categories.id, Category for the ledger entry markpaid creates (name or id)","pay_from":"ref→accounts.id, Account the payment leaves from (name or id)","frequency":"select, required, once|monthly|quarterly|half_yearly|yearly","next_due_date":"date, required","end_date":"date, Recurrence stops after the last due date on or before this","method":"select, cheque|auto_debit|card|manual|upi","remind_days_before":"number, Default 3","status":"select, active|paused|ended|paid_unconfirmed, Default active; paused/ended close the reminder","amount_is_estimate":"bool","linked":"json, {loan_id?, domain_id?, subscription_id?}","reminder_folder":"text, Default \"Future Expenses\" (created automatically)","reminder_task_id":"text, read-only (use actions)","notes":"textarea","payments":"rows of {date, amount, period_due, transaction_id, cheque_no, notes}, read-only (use actions)"},"actions":[{"name":"markpaid","params":{"id":"required","date":"YYYY-MM-DD, default today","amount":"number, default the expense amount","account_id":"default pay_from","cheque_no":"string","category_id":"default the expense category","notes":"string","allow_duplicate":"bool"},"notes":"Creates one linked outflow and advances the expense. A 409 means nothing was recorded (duplicate transaction or period already paid); pass allow_duplicate=true only after the user confirms."},{"name":"skip","params":{"id":"required","reason":"string"},"notes":"Moves to the next due date without a transaction and rolls the reminder."},{"name":"snooze","params":{"id":"required","days":"required number"},"notes":"Pushes the reminder deadline; the due date is unchanged."},{"name":"undo_paid","params":{"id":"required"},"notes":"Reverts paid_unconfirmed to active and reopens the reminder. Never touches the ledger."},{"name":"link_task","params":{"id":"expense id (or expense_id)","task_id":"required"},"notes":"Adopt an existing task as the reminder. If one already exists the older task is kept and the other deleted (its notes are carried over)."}]},{"name":"watchlist","id_prefix":"wl","description":"Movies/shows/etc to watch.","read_only":false,"fields":{"title":"text, required","type":"select, Movie|Web Series|Documentary|Book|Short Film|Podcast|Other","genre":"select, Action|Adventure|Animation|Biography|Comedy|Crime|Drama|Family|Fantasy|History|Horror|Mystery|Romance|Sci-Fi|Sports|Thriller|Other","language":"text","recommended_by":"text","status":"select, pending|done","deadline":"date","rating":"number","finished_on":"date","notes":"textarea"},"actions":[{"name":"markdone","params":{"id":"required"},"notes":"Sets status=done and finished_on=today."}]},{"name":"websites","id_prefix":"web","description":"Websites/services with saved logins and notes.","read_only":false,"fields":{"domain":"text, required","label":"text","credentials":"rows of {username, password, remarks}","notes":"rows of {body, pinned}"},"actions":[{"name":"addcredential","params":{"id":"required","username":"string","password":"string","remarks":"string"}},{"name":"addnote","params":{"id":"required","body":"string","pinned":"bool"}},{"name":"togglenotepin","params":{"id":"required","note_id":"required"}}]},{"name":"places","id_prefix":"pl","description":"Saved places/links (restaurants, shops, bookmarks).","read_only":false,"fields":{"label":"text, required","url":"text","category":"text","city":"text","country":"text","notes":"textarea"},"actions":[]},{"name":"follows","id_prefix":"fol","description":"People/accounts you follow or plan to follow.","read_only":false,"fields":{"label":"text","platform":"select, linkedin|facebook|youtube|instagram|x|tiktok|threads|reddit|pinterest|telegram|whatsapp|discord|github|medium|snapchat|other","kind":"select, profile|page|channel|company|group|creator|other","handle":"text","url":"text","status":"select, to_follow|following|paused|archived","contact_id":"ref→contacts.id","tags":"tags","notes":"textarea"},"actions":[]},{"name":"discover_events","id_prefix":"event","description":"Upcoming events worth attending.","read_only":false,"fields":{"title":"text, required","category":"select, Tech & AI|Concert|Bollywood|Business|Sports|Family|Other","start_date":"date","start_time":"text","end_date":"date","city":"text","location":"text","is_online":"bool","price_info":"text","source_url":"text","status":"select, new|interested|going|declined|attended","description":"textarea","notes":"textarea","fetched_via":"text"},"actions":[]},{"name":"social","id_prefix":"soc","description":"DMAdvisor post drafts. Actions: approve, reject (reason), backtodraft. Approve only on an explicit human instruction. Nothing here auto-publishes. guardrail_flags is a non-blocking brand-safety scan.","read_only":false,"fields":{"pillar":"select, martech_breakdowns|growth_performance|industry_hot_takes|india_gcc_lens|ai_in_practice","status":"text","platforms":"json, {linkedin|instagram|facebook: {text, image_prompt, scheduled_time}}","guardrail_flags":"json, Set automatically","notes":"textarea"},"actions":[{"name":"approve","params":{"id":"required"},"notes":"Only when the user explicitly approved this specific post."},{"name":"reject","params":{"id":"required","reason":"string"}},{"name":"backtodraft","params":{"id":"required"}},{"name":"markposted","params":{"id":"required","platform":"linkedin|instagram|facebook","posted":"boolean, default true"},"notes":"Records that an approved post was published manually on that platform."}]},{"name":"health_profile","id_prefix":"hp","description":"One per person: body targets, calorie/protein goals, allergies, medications and doctors. person \"me\" is the owner; add family members as further profiles.","read_only":false,"fields":{"person":"text, required, Short key, e.g. \"me\", \"wife\". Every health record carries the same key.","name":"text","date_of_birth":"date","sex":"select, male|female|other","height_cm":"number","blood_group":"select, A+|A-|B+|B-|AB+|AB-|O+|O-|unknown","target_weight_kg":"number","calorie_goal":"number, Daily kcal target","protein_goal_g":"number, Daily protein target in grams","gym_goal_per_week":"number, Target gym days per week","allergies":"tags","medications":"rows of {name, dose, schedule, active}","doctors":"rows of {name, specialty, phone, clinic}","notes":"textarea"},"actions":[]},{"name":"health_gym","id_prefix":"hg","description":"One record per day: attended or missed. Creating a second record for the same person+date updates the existing one (upsert). Use action checkin for a one-call \"I went today\".","read_only":false,"fields":{"date":"date, required","status":"select, required, attended|missed|rest","gym":"text, Gym / location name","time_in":"text, HH:MM","time_out":"text, HH:MM","duration_min":"number","workout_id":"ref→health_workouts.id, read-only (use actions)","note":"text","person":"text, Defaults to \"me\""},"actions":[{"name":"checkin","params":{"date":"YYYY-MM-DD, default today","status":"attended|missed|rest, default attended","gym":"string","time_in":"HH:MM","time_out":"HH:MM","duration_min":"number","note":"string","person":"default me"},"notes":"Upserts the day record. No id needed."}]},{"name":"health_body","id_prefix":"hb","description":"Weight and body measurements. One record per person+date (upsert on create).","read_only":false,"fields":{"date":"date, required","weight_kg":"number","body_fat_pct":"number","waist_cm":"number","chest_cm":"number","hips_cm":"number","bp_systolic":"number","bp_diastolic":"number","resting_hr":"number, Resting heart rate (bpm)","note":"text","person":"text, Defaults to \"me\""},"actions":[]},{"name":"health_meals","id_prefix":"hm","description":"One row per food item eaten. Daily/weekly totals and calorie-goal comparison come from resource=health_summary. favourite=true items appear as one-tap quick adds.","read_only":false,"fields":{"date":"date, required","meal":"select, required, breakfast|lunch|dinner|snack|drink","item":"text, required","quantity":"text, e.g. 1 plate, 200 g","kcal":"number","protein_g":"number","carbs_g":"number","fat_g":"number","favourite":"bool, Show as a quick-add button","note":"text","person":"text, Defaults to \"me\""},"actions":[]},{"name":"health_workouts","id_prefix":"hw","description":"A training session with its exercises. Saving one also marks that day attended in health_gym. Personal records per exercise are computed in health_summary.","read_only":false,"fields":{"date":"date, required","type":"select, strength|cardio|sport|mobility|other","name":"text, e.g. Push day, 5k run","duration_min":"number","exercises":"rows of {exercise, sets, reps, weight_kg, distance_km, minutes}","calories_burned":"number","feeling":"select, great|good|ok|tired|bad","note":"textarea","person":"text, Defaults to \"me\""},"actions":[]},{"name":"health_conditions","id_prefix":"hc","description":"Diagnoses, injuries and chronic conditions with their treatment.","read_only":false,"fields":{"name":"text, required","status":"select, active|monitoring|resolved","severity":"select, mild|moderate|severe","since":"date","resolved_on":"date","doctor":"text","medications":"rows of {name, dose, schedule, active}","notes":"textarea","person":"text, Defaults to \"me\""},"actions":[]},{"name":"health_appointments","id_prefix":"ha","description":"Doctor visits, tests and check-ups. Scheduled ones appear in the calendar feed.","read_only":false,"fields":{"date":"date, required","time":"text, HH:MM","doctor":"text","purpose":"text","location":"text","condition_id":"ref→health_conditions.id","status":"select, scheduled|done|cancelled","outcome":"textarea, What the doctor said / next steps","person":"text, Defaults to \"me\""},"actions":[]},{"name":"health_docs","id_prefix":"hd","description":"Insurance policies, lab reports, prescriptions and vaccination records. Attach the file with POST /health/files/<id> (multipart field \"file\"); download at GET /health/files/<id>. Insurance expiry shows in the calendar and in health_summary alerts.","read_only":false,"fields":{"title":"text, required","kind":"select, insurance|lab_report|prescription|vaccination|scan|invoice|other","provider":"text, Insurer, lab or clinic","policy_number":"text","issued_on":"date","expiry_date":"date","amount":"number, Premium or bill amount","link":"text, Google Drive or other URL if the file is not uploaded","file_key":"text, read-only (use actions)","file_name":"text, read-only (use actions)","file_size":"number, read-only (use actions)","file_type":"text, read-only (use actions)","tags":"tags","notes":"textarea","person":"text, Defaults to \"me\""},"actions":[]},{"name":"health_summary","id_prefix":null,"description":"Computed: gym streaks, monthly attendance, year heatmap, today/week calories vs goal, weight trend, personal records, upcoming appointments, expiring documents. GET with optional person (default me) and date.","read_only":true,"fields":{},"actions":[]},{"name":"alerts","id_prefix":null,"description":"Computed: bank/card months with no transactions (missing statements). GET only.","read_only":true,"fields":{},"actions":[]},{"name":"conversations","id_prefix":"conv","description":"Hero voice assistant log: every spoken request, the reply and the phone actions it triggered. Written by POST /voice; review here and mark feedback/corrections so Hero can learn.","read_only":false,"fields":{"text":"text, required","reply":"textarea","actions":"json, read-only (use actions)","tools":"json, read-only (use actions)","error":"text, read-only (use actions)","session_id":"text, read-only (use actions)","device":"text, read-only (use actions)","language":"text, read-only (use actions)","source":"text, read-only (use actions)","stt_confidence":"number, read-only (use actions)","location":"text, read-only (use actions)","model":"text, read-only (use actions)","latency_ms":"number, read-only (use actions)","feedback":"select, good|bad","correction":"textarea, What Hero should have done"},"actions":[]},{"name":"hero_rules","id_prefix":"rule","description":"Lessons Hero (the voice assistant) has learned from reviewed conversations. Every active rule is added to the voice assistant's instructions on the next request, no deploy needed. Keep each rule one short imperative sentence.","read_only":false,"fields":{"rule":"textarea, required, One instruction, e.g. \"When asked for Garba events, call web_search with the city and this week's dates.\"","category":"select, understanding|tool_use|phone|language|style|other","active":"bool, Off = kept for the record but not sent to the model","source":"text, Conversation id (conv_...) that taught this","notes":"textarea"},"actions":[]},{"name":"devices","id_prefix":null,"description":"Logged-in browser sessions. GET, plus POST action=revoke with id.","read_only":false,"fields":{},"actions":[{"name":"revoke","params":{"id":"required"}}]},{"name":"legacy_categories","id_prefix":"catroot","description":"Deprecated. Kept read-only for old references.","read_only":false,"fields":{},"actions":[]},{"name":"channels","id_prefix":"chn","description":"Deprecated. Use follows.","read_only":false,"fields":{},"actions":[]}]}}