---
name: voxego-endpoint-setup
description: Build a Voxego endpoint, one call that sorts, reads, judges or writes text, documents or photos and answers JSON, through the Voxego connector: learn the job, pick the type, draft it, test it on real samples, publish with a key and connect it. Use when someone asks to make, build or set up a Voxego endpoint or an API for such a job.
---

# Build a Voxego endpoint

A Voxego endpoint is one call that does one job on text, a document or a photo: sort a support email, read an invoice's fields, judge a CV against a brief, write a reply, hide personal details. It answers JSON in a fixed shape, and code enforces its rules and checklist. You build it through the Voxego connector. Work through the steps in order, stop at the points marked **Ask**, and never confirm a preview on your own.

## 0. Check the connection

Call `org_whoami`. If this connection can't write endpoints, tell the person what it says about allowing it, and stop. Then `endpoints_list`: note `endpoints_left`, `drafts_left` and `drafts_left_today`. If an endpoint for this job already exists, offer to improve it instead of making another.

If the job is reading invoices, screening CVs or sorting support emails and the person isn't a developer, tell them they can start it from Ready-made jobs on the platform with a few fields, or build it here.

## 1. Learn the job

**Ask** in one short message, only what you can't tell already:

- What goes in: pasted text, a document (PDF, Word, a scan), a photo, or several fields.
- What should come out: named values, one label from a fixed list, a score, or a written text.
- One or two real examples, as they would really arrive (full length, not a tidy summary).
- Hard rules: what must always or never hold in the answer, such as a cap on an amount or a required field.
- A brief, policy or list of criteria the input is judged against, if there is one.
- Whether inputs carry personal details (names, emails, health details), so Shield can hide them.
- Who calls it: their own server, a no-code tool, a web page directly, or a person using the Run tab with files.

## 2. Pick the type

| Type | Answers | Example |
|---|---|---|
| Classify (kind `decide`) | fixed answers: yes or no, a label, a score | urgent or not; which topic |
| Extract | values read out of the input | invoice number, total, due date |
| Write | a text it writes, with fields beside it | a reply draft; a CV verdict with reasons |
| Mask | a write endpoint with personal details hidden, then put back | a reply that names the customer |
| Redact | personal details removed for good | a document to share outside |

If the ask could be read more than one way, `endpoints_suggest_type` reads the person's words and says. The type can't change after creating, so settle it now.

## 3. Draft it

`endpoints_draft` with `ask` in plain words (the job, the fields, and every hard rule as a sentence) and one example. When there is a brief or criteria, take the checklist with `endpoints_checklist` from the text rather than rely on the draft.

- The **checklist** is judged on the input: each item is one thing to look for, with `must` for what the brief requires.
- A limit on the **answer** is a rule, never a checklist item. A refund cap takes two rules: the offered amount at most the cap, and escalate true when the amount the customer asked (its own field, never capped) is above it.
- A table the job needs (a price list) goes in `reference`.

**Ask:** show the person the draft: what it takes, what it answers, its rules, its checklist and the draft's price. The draft's price covers the prompt alone; the real price per call comes from the try-out. Change it with `endpoints_draft`, passing it back as `spec` with a `message` saying what to change, until they're happy. Drafts are free, 20 a day for each person.

## 4. Create it

`endpoints_create` with the draft's `definition`. It is saved as a draft, not live.

- **Personal details in the input:** `endpoints_set_shield`. Level `code` for names, emails, phones and ids found by patterns (free); level `shield` to also catch names and addresses code misses. `special` true also hides health and other special details, but keep it off when the endpoint must judge them (an urgency triage of a clinic's form). For a blind CV profile, `blind` true. A change that makes it a mask or write endpoint asks the person first.
- **Facts from the owner's systems** (an order's status, a supplier on file, free times in a calendar): add `tools` to the definition. Ask the person where the facts live: one of their Assistants lookups or connections (`endpoints_tool_lookups`; a new Shopify, WooCommerce or API connection with `connections_add`) or their own https address that answers JSON. Code picks every value sent (a field of the call, a pattern found in its text such as an order number, or one of a fixed list), never the AI. Send one test with `endpoints_try_tool` before saving. A tool at their own address checks the signing secret (`endpoints_tool_secret`, shown once). A cap from a fact goes in `rules`, such as the refund at most the order's `total_paid`. Each tool call that answers costs €0.001 more.
- **Logging:** nothing is kept by default. `endpoints_set_logging` with `metadata` keeps call details (time, status, cost, which rules fired, never the text) for 1, 7 or 30 days, which helps later improvement. Keeping text asks the person first.

## 5. Test it

Try-outs cost what a real call costs and are never written to Logs. Tell the person before you start. Run `endpoints_try` on 3 to 5 samples:

| Sample | What to check |
|---|---|
| A typical one, full length | every value right against the sample |
| One where a value is missing or unclear | it answers null or a low confidence, never a guess |
| One a rule must catch (over the cap, a must-have missing) | `rules_checked` shows the rule held or corrected it |
| A messy one (a scan, typos, another language) | still right, or clearly unsure |
| One that isn't this job at all | a sensible answer, not a made-up one |

On the typical sample, pass `runs: 5` and read `compare`: fields that differ between runs need clearer instructions. Runs that agree are repeatable, not necessarily right, so read each value against the sample yourself. If `sample_size` says the sample is smaller than real calls, try a full-size one.

Show the person a short table: sample, what it answered, right or not, and the cost per call. Fix with `endpoints_update` (instructions, a field's own `instructions`, rules, checklist) and try again.

## 6. Publish

**Ask once.** Gather the previews: `endpoints_publish` (it shows the price per call and the monthly cap), `endpoints_set_limits` if the cap should change, and `keys_create`. Show them together as one list, ask once, and only after the person says yes pass every token to `confirm` as `confirm_tokens`.

- A **server key** is the default. Offer an end date and an IP allowlist when they know where calls come from.
- A **browser key** (`allow_origins`) only when a web page calls it directly; each visitor gets a daily allowance.
- The secret is shown once: give it to the person, and don't repeat it later.

## 7. Connect it

`endpoints_guide` with the person's languages gives the URL, a sample request, ready code, the answer's shape, the errors to handle and the limits. If you're working in their code, write the call there and read the key from `VOXEGO_ENDPOINT_KEY` in the environment, never from code that reaches a browser. A person without code can use the endpoint's Run tab (up to 20 files at once, answers as Excel or CSV), or the Zapier, Make and n8n recipes on its Use it tab.

## 8. Hand over

Tell the person, briefly: what it takes and answers, its rules and checklist, the price per call from the try-out, the monthly cap, what the log keeps, the key's name, and that they can run "Improve my Voxego endpoint" whenever answers need work.

## Prices

A text call has a flat price by type for every started 6,000 characters of text it sends. A short text, up to 1,500 characters, pays the short price. When you quote a price from a short example, say that longer texts cost the full price. Take numbers from the try-out and the publish preview, never from memory.

## Always

- Say "Voxego's hybrid models"; never guess or name the models underneath.
- A key's secret is shown once: give it to the person and don't repeat it.
- 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.
