---
name: voxego-endpoint-improve
description: Improve a Voxego endpoint through the Voxego connector: read its failed and refused calls, find answers that go wrong, fix its instructions, rules, checklist or keys, check the fixes and publish a new version. Use when someone asks to improve, fix or tune a Voxego endpoint.
---

# Improve a Voxego endpoint

Use this when an endpoint's answers need work, calls fail, or it costs more than expected. Work through the Voxego connector; never confirm a preview on your own.

## 1. Pick the endpoint

`endpoints_list`, then `endpoints_get` on the one the person means. Note its live version, today's failures, this month's spend against its cap, its Shield setting and what its log keeps.

## 2. Find what goes wrong

- `endpoints_logs` with filter `errors`, then `refused`. Group them by code. The log never holds the call's text.
- If the log keeps nothing, there is nothing to read: **ask** the person for two or three inputs that went wrong and what the answer should have been. Offer `endpoints_set_logging` with `metadata` for next time; don't change it without their yes.
- **Ask** the person what they've seen go wrong themselves.

## 3. Sort and fix

| What happened | Fix |
|---|---|
| Refused: wrong site, expired key, blocked IP, a visitor's daily allowance | The key's settings: a new key with the right sites, end date or IP allowlist (`keys_create`), then `keys_revoke` the old one with the person's yes |
| 429 `monthly_spend_reached` | A higher cap with `endpoints_set_limits` (asks the person), or find out why calls rose |
| 422 `shield_refused` | Shield's `unlocated` setting, or the input carries details Shield can't place; talk it through with the person |
| A value wrong or guessed | Clearer instructions, or that field's own `instructions` (`endpoints_update`) |
| A rule corrects the answer on most calls | Say it in the instructions too, so the first answer is already right |
| The checklist misjudges an input | Fix the item's wording, or split an item that checks two things |
| Real inputs much longer than the samples | Try one full-size input; `sample_size` says when |

## 4. Check

`endpoints_try` on the draft with the inputs that went wrong, `runs: 5` on the main one, and a typical sample to see nothing else broke. Show the person a before-and-after table. Then `endpoints_publish` the new version, which asks the person first; a new version doesn't take another of the plan's endpoints.

## 5. Report

Say what you changed, what still needs the person's facts or examples, and spend against the cap.

## Always

- Say "Voxego's hybrid models"; never guess or name the models underneath.
- Never confirm a preview without the person's yes.
- Don't tell the person what a law requires, and don't plan their time for them.
