GovernanceApp API
Run GovernanceApp’s AI tasks from your own systems. You send a task, it runs in the background, and you fetch the result — or we call your server when it is done.
Base URL: https://governanceapp-api.ai2bundle.co · All requests and responses are JSON over HTTPS. Times are Unix seconds (UTC).
Getting started
- Create a developer account on the Developer API page with your work e-mail, and accept the API Terms.
- Top up credits (minimum top-up $100). Credits are prepaid and are used by each task you run.
- Create an API key. It is shown once — store it in your server’s secret store.
- Send
POST /v1/jobswith the task and its input. Fetch the result withGET /v1/jobs/{id}, or set a completion callback.
Authentication
Send your API key in the Authorization header of every request:
Authorization: Bearer ga_live_…
- Keys start with
ga_live_. You can have up to 5 active keys and revoke any of them on the Developer API page. - We store only a fingerprint (hash) of each key, so a lost key cannot be shown again — create a new one and revoke the old.
- Call the API from your server only. Never put a key in a web page or mobile app.
GET/v1/balance — checks a key and shows your balance:
{ "object": "balance", "credits": 1094500, "credits_per_task": 2750, "tasks_available": 398 }
Credits
- Each task uses a set number of credits (see the table below and each task’s section). Long documents use more, by length.
- Credits are held when a task is accepted and returned if it fails or you cancel it before it starts. You are never charged for a failed task.
- Credits expire 12 months after the top-up that bought them; the oldest credits are used first. We e-mail you 30 days before credits expire, and when your balance runs low.
- Top up online by card on the Developer API page (minimum top-up $100).
| Task | What it does | Credits |
|---|---|---|
corporate_drafting | Corporate drafting | 2,750 |
meeting_minutes | Meeting minutes | 2,750 |
regulatory_research | Regulatory research | 2,750 |
assistant_chat | Secretary AI Assistant | 2,750 per message, plus 2,750 per attached document |
kyc_document_check | KYC document check | 1,375 per document |
sanctions_pep_screening | Sanctions and PEP screening | 1,375 per check (both checks: 2,750) |
translate | Translate | 5,500 up to 10 pages, plus 2,750 per further 10 pages |
minutes_from_audio | Minutes from a recording | 2,750 per started 10 minutes of audio, plus 2,750 for the minutes |
skill_run | Pre-built Skills | 2,750 per message, plus 2,750 per attached document |
convert | Convert | 5,500 (a long PDF uses more) |
Submitting a task
POST/v1/jobs with body { "task": "…", "input": { … } }.
The Idempotency-Key header is required: any unique string per task (a UUID is ideal). If your request times out, send it again with the same key and body — you get the same job back and are never charged twice. The same key with a different body is refused (409 idempotency_conflict). Keys are kept for as long as the job is.
curl -X POST https://governanceapp-api.ai2bundle.co/v1/jobs \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 6f1c2a9e-4b7d-4a51-9c1e-2f0d8b3a7e11" \ -d @request.json
The task is accepted and queued:
HTTP/1.1 202 Accepted
{
"object": "job",
"id": "job_3f9c0d4e8a2b4c6d9e1f0a7b5c3d2e1f",
"task": "corporate_drafting",
"status": "queued",
"credits_charged": 2750,
"created_at": 1792656000,
"started_at": null,
"finished_at": null
}
Files are sent inside the JSON as base64: { "name": "contract.pdf", "content_base64": "…" }. The whole body may be up to 15 MB.
The job object
| Status | Meaning |
|---|---|
queued | Accepted, waiting to start. Usually starts within a minute. |
running | Being worked on. Most tasks finish in 1–5 minutes; long documents take longer. A recording is transcribed first, which can take a few minutes more. |
succeeded | Done. result holds the output. |
incomplete | Stopped part-way (for example the balance ran out during a long document). result holds what was done and error says why. |
failed | Could not be done. error says why. Credits returned. |
canceled | You cancelled it before it started. Credits returned. |
credits_charged shows the credits the job used. After 30 days the result is deleted (a translation: after 24 hours): result becomes null and result_deleted_at is set.
Error codes on a job (job.error.code)
| Code | Meaning |
|---|---|
task_failed | The task could not be completed. Credits returned. |
invalid_request | The input was refused when the task ran. Credits returned. |
not_a_meeting | The transcript holds no business matters. Credits returned. Send force: true to draft anyway. |
insufficient_credits | The balance ran out (see incomplete), or a long contract needs more than the balance. |
balance_short | The task finished, but the balance did not fully cover its length (status stays succeeded). |
unreadable_document | convert: the file could not be read or converted. Credits returned. |
unreadable_audio | minutes_from_audio: the recording could not be transcribed. Credits returned. (A recording with no speech in it fails with not_a_meeting, also not charged.) |
unavailable | minutes_from_audio: transcription is not available right now. Credits returned. |
credit_limit | Firm keys: the firm has no credits left for this task. |
not_allowed | Firm keys: the key’s member is not allowed to do this in the app. |
access_revoked | Firm keys: the key or its member stopped being active, or the firm’s API access was switched off, after the task was accepted. |
canceled | You cancelled it before it started. Credits returned. |
Waiting for the result
GET/v1/jobs/{id} — one job, with its result when done.
GET/v1/jobs — your 50 newest jobs (without results).
POST/v1/jobs/{id}/cancel — cancels a job that has not started; its credits are returned.
GET/v1/jobs/{id}/docx — a finished draft as a Word file in our Professional format (corporate_drafting only). No extra credits.
GET/v1/jobs/{id}/file — a finished translation (translate, for 24 hours) or converted file (convert, for 30 days). No extra credits.
GET/v1/skills — the pre-built Skills skill_run accepts. No credits.
GET/v1/translate/languages — the language codes translate accepts. No credits.
Check every 10–30 seconds, or set a completion callback so you do not need to check at all.
// Node 18+ — submit a task, then wait for it to finish
const API = "https://governanceapp-api.ai2bundle.co";
const headers = { Authorization: "Bearer " + process.env.API_KEY, "Content-Type": "application/json" };
const res = await fetch(API + "/v1/jobs", {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify(requestBody),
});
let job = await res.json();
if (!res.ok) throw new Error(job.error.code + ": " + job.error.message);
while (job.status === "queued" || job.status === "running") {
await new Promise(r => setTimeout(r, 15000)); // every 15 seconds
job = await (await fetch(API + "/v1/jobs/" + job.id, { headers })).json();
}
console.log(job.status, job.result || job.error);
{
"object": "job",
"id": "job_3f9c0d4e8a2b4c6d9e1f0a7b5c3d2e1f",
"task": "corporate_drafting",
"status": "succeeded",
"credits_charged": 2750,
"created_at": 1792656000,
"started_at": 1792656041,
"finished_at": 1792656102,
"result": { … }
}
Corporate drafting corporate_drafting
Drafts a corporate or secretarial document — board and shareholder resolutions, notices, minutes of written resolutions, policies — from the details you send.
Credits: 2,750. A long document is written in several parts and uses 2,750 for each further part.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
document_type | string | Yes | What to draft, e.g. "Board resolution — appointment of director". |
jurisdiction | string | Yes | e.g. "Singapore", "Hong Kong", "Malaysia". |
length | "short" | "long" | No | Default "short". |
company | object | No | { name, registration_no, registered_address, business_address } |
firm | object | No | Your firm, for the document heading: { name, address, registration_no } |
details | object | No | Any facts as label → value pairs (up to 40), e.g. { "Director to appoint": "Tan Mei Ling" }. |
agenda | string[] | No | Agenda items (up to 30). |
resolutions | string[] | No | Resolutions to include (up to 30). |
instructions | string | No | Anything else the drafter should follow. |
Example request body
{
"task": "corporate_drafting",
"input": {
"document_type": "Board resolution — appointment of director",
"jurisdiction": "Singapore",
"company": { "name": "Acme Pte. Ltd.", "registration_no": "202312345K" },
"details": { "Director to appoint": "Tan Mei Ling", "Effective date": "1 November 2026" }
}
}
Result (job.result)
| Field | Meaning |
|---|---|
document_text | The document (plain text with headings). |
complete | true; false when the job status is "incomplete" (see below). |
document_type, jurisdiction | Echo of your input. |
docx_url | The same document as a ready-to-edit Word file in our Professional format — A4, Arial, justified text and real Word clause numbering (1. → 1.1 → (a) → (i)), the same file the app downloads. Fetch it with your API key: GET /v1/jobs/{id}/docx. No extra credits. |
If your balance runs out part-way through a long document, the job ends as incomplete with the text written so far in result.document_text (and in the Word file).
The company details you send (name, registration number, addresses) are laid out as a centred letterhead under the title in the Word file.
Download the Word file:
curl -H "Authorization: Bearer $API_KEY" -o draft.docx \ https://governanceapp-api.ai2bundle.co/v1/jobs/job_3f9c0d4e8a2b4c6d9e1f0a7b5c3d2e1f/docx
Meeting minutes meeting_minutes
Turns a meeting transcript into governance-ready minutes, with the decisions, action items and resolutions listed separately.
Credits: 2,750.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
transcript | string | Yes | The meeting transcript (40 to 200,000 characters). |
title | string | No | e.g. "Board meeting". |
committee | string | No | e.g. "Audit Committee". |
meeting_date | string | No | e.g. "2026-10-20". |
company | object | No | { name, registration_no } |
directors_present | string[] | No | Names of those present (up to 50). |
force | boolean | No | Default false. If the transcript seems to hold no business matters the job fails with not_a_meeting (no credits used); send true to draft minutes anyway. |
Example request body
{
"task": "meeting_minutes",
"input": {
"title": "Board meeting",
"meeting_date": "2026-10-20",
"company": { "name": "Acme Pte. Ltd." },
"directors_present": ["Tan Mei Ling", "Raj Kumar"],
"transcript": "Tan: Let us start. The first item is the audited accounts…"
}
}
Result (job.result)
| Field | Meaning |
|---|---|
minutes_md | The minutes (Markdown). |
notice | Notice of meeting text, if any. |
decisions, actions, resolutions | Lists drawn from the meeting. |
flags | Points the reviewer should check. |
Regulatory research regulatory_research
Web-grounded research on a regulatory or compliance question, with the sources for each finding.
Credits: 2,750.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
question | string | Yes | The question (10 to 1,400 characters). |
jurisdiction | string | Yes | e.g. "Singapore". |
topic | string | No | e.g. "Annual filing". Default "General". |
sources | object[] | No | Sources to prefer: [{ name, domain }], e.g. [{ "name": "ACRA", "domain": "acra.gov.sg" }]. |
Example request body
{
"task": "regulatory_research",
"input": {
"question": "When must a private company hold its AGM after its financial year end?",
"jurisdiction": "Singapore",
"sources": [{ "name": "ACRA", "domain": "acra.gov.sg" }]
}
}
Result (job.result)
| Field | Meaning |
|---|---|
summary | Short answer. |
findings | [{ … }] each finding with its sources. |
caveats | Limits of the answer. |
partial | true if some sources could not be checked. |
Secretary AI Assistant assistant_chat
Ask the Secretary AI Assistant a question, optionally about documents you attach. Send the same conversation_id to continue a conversation.
Credits: 2,750 per message, plus 2,750 per attached document. Long documents use more, by length.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
question | string | Yes | Your message (up to 4,000 characters). Image generation is not available. |
conversation_id | string | No | Your own id (1–40 letters, digits, - or _) to continue a conversation. |
documents | object[] | No | Up to 5 files: [{ name, content_base64 }] — .pdf, .docx, .txt, .jpg, .png, 25 MB each. |
mode | string | No | What you want the Assistant to do: "ask" (default), "analyse", "review", "summarise", "extract", or "web" (a sourced answer from the web; not for firm keys). |
model | "Pro" | "Max" | "Fast" | No | Default "Pro". "Fast" answers quickest for simple questions; "Max" thinks longest for complex ones. |
Example request body
{
"task": "assistant_chat",
"input": {
"conversation_id": "client-4711",
"question": "List the directors and their appointment dates in this register.",
"documents": [{ "name": "register.pdf", "content_base64": "JVBERi0xLjcK…" }]
}
}
Result (job.result)
| Field | Meaning |
|---|---|
answer | The reply. |
conversation_id | Echo of yours. |
grounded_documents, documents_used | Which documents the answer used. |
truncated | true if a document was too long to read in full. |
web | true if the web was searched. |
KYC document check kyc_document_check
Reads one identity document or one proof of address (1 to 4 images, e.g. front and back) and matches it against the person's details you send.
Credits: 1,375 per document. Nothing is charged if no document can be read in the images.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
document_type | "id_document" | "proof_of_address" | Yes | |
files | object[] | Yes | 1 to 4 images: [{ name, content_base64 }] — .jpg or .png, 10 MB each, at least 20 KB (a real photo or scan). PDFs are not accepted: send each page as an image. |
person | object | No | { full_name, aliases, id_number, address } to match against. |
Example request body
{
"task": "kyc_document_check",
"input": {
"document_type": "id_document",
"files": [{ "name": "front.jpg", "content_base64": "/9j/4AAQ…" }, { "name": "back.jpg", "content_base64": "/9j/4AAQ…" }],
"person": { "full_name": "Tan Mei Ling", "id_number": "S1234567D" }
}
}
Result (job.result)
| Field | Meaning |
|---|---|
verdict | "match", "mismatch" (a field differs — see rows), "wrong_document" or "unreadable". |
fields | What was read from the document. |
rows | Field-by-field comparison with what you sent. |
seen | What the images appear to show. |
The images are deleted as soon as the check ends; only the match report is kept (30 days).
Sanctions and PEP screening sanctions_pep_screening
Screens a person or company: a sanctions check, and/or a politically-exposed-person (PEP) and adverse-media web search.
Credits: 1,375 per check (both checks: 2,750).
Input
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | The person or company to screen. |
entity_type | "person" | "company" | No | Default "person". |
checks | string[] | No | "sanctions" and/or "pep_adverse_media". Default both. |
context | string | No | e.g. nationality, date of birth or country, to narrow the results. |
Example request body
{
"task": "sanctions_pep_screening",
"input": { "name": "Tan Mei Ling", "context": "Singaporean, born 1980", "checks": ["sanctions", "pep_adverse_media"] }
}
Result (job.result)
| Field | Meaning |
|---|---|
name | Echo of yours. |
sanctions | Sanctions result (matches, and the source checked). |
pep_adverse_media | PEP and adverse-media result with links. |
A screening result is a starting point for your own review — a possible match must be checked by a person before you rely on it.
Translate translate
Translates typed text, a Word, PowerPoint or Excel file, a PDF (including scanned pages) or an image into any of over 100 languages — the same engine as the app's Translate screen. A file comes back in the same layout, or as a bilingual Word file (original and translation side by side). Names of people and firms are kept exactly as written.
Credits: 5,500 for up to 10 pages, plus 2,750 for every further 10 pages started (11–20 pages: 8,250; 21–30: 11,000 …). A page is a PDF page, the Word file's own page count, a slide, or about 3,000 characters of text (Chinese, Japanese and Korean characters count 2.5 each); an image counts as one page. The credits are held when the job is accepted.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
text | string | One of | The text to translate (up to 400,000 characters). |
file | object | One of | Or the file: { name, content_base64 } — .docx, .pptx, .xlsx, .pdf, .jpg, .png or .webp, 20 MB at most (and within the 15 MB request limit once in base64). PDFs: up to 30 pages per job. |
to | string | Yes | Language code to translate into, e.g. "zh-Hans" (Simplified Chinese), "zh-Hant" (Traditional Chinese), "fr", "ja" — "zh", "zh-CN", "zh-TW" and "zh-HK" are accepted too. GET/v1/translate/languages lists them. |
from | string | No | Language of the original. Default: detected. If the code you send is clearly wrong, the detected language is used and from_corrected is true. |
output | "same" | "bilingual" | No | Default "same": a file in its own layout, or text as text. "bilingual": a Word file with the original and the translation side by side, one row per paragraph. |
name | string | No | A label for your records (also the title of a bilingual file made from text). |
Example request body
{
"task": "translate",
"input": {
"file": { "name": "services-agreement.docx", "content_base64": "UEsDBBQ…" },
"to": "zh-Hans",
"output": "bilingual"
}
}
Result (job.result)
| Field | Meaning |
|---|---|
text | The translation, for text input. |
file | { name, mime, size, download_url } — the translated file (file input, or text with output "bilingual"). Fetch it with your API key: GET /v1/jobs/{id}/file. No extra credits. |
to, from, output, pages | Echo of your input, and the pages charged. |
detected_from, from_corrected | The language the original is really in, and whether it replaced the one you sent. |
scanned_pages | For a PDF: how many pages were scans, read from the picture. |
passages, untranslated_passages | How many passages were translated, and how many could not be (left in the original language). |
expires_at | When the translation and the job's result are deleted (24 hours after the job finished). |
Download the translated file:
curl -H "Authorization: Bearer $API_KEY" -OJ \ https://governanceapp-api.ai2bundle.co/v1/jobs/job_3f9c0d4e8a2b4c6d9e1f0a7b5c3d2e1f/file
Confidential documents are kept for the shortest time: your original is deleted as soon as the translation is done, and the translation, the job's input and result 24 hours after the job finished (not 30 days as for other tasks). Download the file within that time.
PDFs and images are rebuilt in the target language, so they take longer than Word files: about 15 seconds for a few text pages, a minute or more for scanned pages. They can be translated into 78 of the languages; the others (for example Korean, Thai, Hindi and Arabic) are refused before any credits are held — send a Word file or text for those.
Minutes from a recording minutes_from_audio
The Recorder: a meeting recording is transcribed, then written up as governance-ready minutes (as meeting_minutes). The job waits in the background while the recording is transcribed — usually a few minutes. The recording is deleted as soon as it has been sent for transcription.
Credits: 2,750 per started 10 minutes of audio, plus 2,750 for the minutes. A file with no speech in it is not charged.
Input
| Field | Type | Required | Notes |
|---|---|---|---|
audio | object | Yes | { name, content_base64 } — .mp3, .m4a, .wav, .webm, .ogg, .mp4, .aac or .flac, up to 11 MB (about 10 minutes of MP3 at normal quality). |
title, committee, meeting_date | string | No | As for meeting_minutes. |
company | object | No | { name, registration_no } |
directors_present | string[] | No | Names, for the attendance list. |
force | boolean | No | Draft minutes even if no business matters are found. |
Result (job.result)
| Field | Meaning |
|---|---|
transcript, duration_seconds | The transcript, by speaker, and the length of the recording. |
minutes_md, decisions, actions, resolutions, flags | As for meeting_minutes. If no business matters are found, minutes_md is null, only the transcription is charged, and job.error says why. |
Pre-built Skills skill_run
Apply one of GovernanceApp's 28 pre-built Skills in the Secretary AI Assistant. GET/v1/skills lists them: key, name, description and area. Send skill (the key) with the same input as assistant_chat; put the facts the skill asks for in question, or attach documents.
Credits: as assistant_chat — 2,750 per message, plus 2,750 per attached document.
{ "task": "skill_run", "input": { "skill": "ms_notice_board", "question": "Board meeting of Acme Pte Ltd on 1 December 2026 at 10am by video link." } }Convert convert
Word or PowerPoint to PDF, or PDF to Word, as the Assistant's Convert. Send { "file": { "name", "content_base64" } } (.docx, .pptx or .pdf, 25 MB). The new file is in result.file: download it with GET/v1/jobs/{id}/file within 30 days.
Credits: 5,500 (reading the file and converting it); a long PDF uses more, by length.
Firm-linked keys
For firms that already use GovernanceApp: let your own systems search your firm's Second Brain, ask the Secretary AI Assistant with your firm's knowledge, work with your Engagements, and run Drafting, Minutes and Research inside your firm. This is separate from the developer account above.
- Your firm's most senior member creates the key in GovernanceApp → Settings → API access, chooses the team member it acts as, and ticks its permissions:
brain(Second Brain search),brain_ai(Second Brain AI summaries),assistant,engagements(read Engagements),engagements_write(create and update Engagements) andtasks(run Drafting, Minutes and Research). - A key sees exactly what that team member sees in GovernanceApp — your whole firm's Second Brain only if that member is the most senior one, and only the Engagements that member can open. Nothing is sent, signed or paid. Completing a task, finalising into the Repository (with its approval step) and archiving stay in the app, for a person to click.
- Keys start with
gafirm_live_, last 12 months, can be limited to your office IP addresses, and stop at once if revoked or if the member is suspended or leaves. - Use is charged to your firm's GovernanceApp credits at the same rates as the app: each Second Brain look-up uses one usage (550 credits); the Assistant and AI summaries as in the app. A refused or not-found look-up costs nothing.
Second Brain look-ups (instant)
GET/v1/firm/brain?scope=mine|firm — the Second Brain as data: items, links and counts.
GET/v1/firm/brain/search?q={words} — items whose title or details contain every word (50 at most), with what each is connected to.
GET/v1/firm/brain/items/{id} — one item and its connections.
curl -H "Authorization: Bearer gafirm_live_…" "https://governanceapp-api.ai2bundle.co/v1/firm/brain/search?q=director%20appointment"
Assistant and AI summaries (background jobs)
POST/v1/firm/jobs with an Idempotency-Key header and { "task": "assistant_chat", "input": { "question": "…", "conversation_id": "…" } } or { "task": "brain_summary", "input": { "item_id": "…", "question": "…" } }. Then GET/v1/firm/jobs/{id} (or /v1/firm/jobs for the newest 50).
The Assistant adds up to four matching Second Brain items the member can see as background (result.firm_knowledge_used; send "use_firm_knowledge": false to skip). The conversation is kept in that member's Assistant history, marked "Via API". To apply one of your firm's saved Skills, add "skill_id" — GET/v1/firm/skills lists them (permission assistant).
Limits per firm: 30 look-ups a minute and 2,000 a day; 10 jobs a minute and 10 waiting or running at once.
Engagements (instant)
The same Engagements the key's member sees on the Engagements page. Reading is free, as in the app. Each key may make 60 of these calls a minute and 5,000 a day.
| Call | Permission | What it does |
|---|---|---|
GET/v1/firm/engagements | engagements | Active Engagements. ?q= searches title, client and type; ?closed=1 the closed ones instead. |
GET/v1/firm/engagements/board | engagements | The Engagement board: each active Engagement's next step, tasks waiting for you or running, last activity and key dates. |
GET/v1/firm/engagements/{id} | engagements | One Engagement: summary, work products, filings, next steps, tasks (and whether the AI can run each), documents, the AI agent and the last 50 activity entries. |
GET/v1/firm/engagements/{id}/documents/{doc_id} | engagements | One document of the Engagement with its text (drafts held for review, and final ones). |
GET/v1/firm/engagements/{id}/agent | engagements | The AI agent's progress, task by task. |
POST/v1/firm/engagements | engagements_write | Create an Engagement. Send description (and client) and the AI plans it (summary, tasks, filings and next steps) as "Analyse" does in the app; or send title and your own tasks ({ "module", "label", "brief" }; modules: governance, meetings, drafting, research, onboarding, registers, calendar). Charged as the app: planning is free, creating uses 1,100 credits. Needs an Idempotency-Key header. |
PATCH/v1/firm/engagements/{id} | engagements_write | Rename (title), close ("closed": true) or reopen ("closed": false). |
POST/v1/firm/engagements/{id}/agent/run | engagements_write | Start the AI agent (it switches the Engagement to Deploy AI with both assistants first if needed). It drafts the governance, meetings, drafting and research tasks in order and holds each draft for review. Charged per task as in the app. |
POST/v1/firm/engagements/{id}/agent/cancel | engagements_write | Stop the AI agent. |
To have the AI draft one task now (the app's "Run with AI"), send a background job with permission engagements_write: { "task": "engagement_task", "input": { "engagement_id": "…", "task_id": "…" } }. The draft is held on the task for review, charged as in the app; the result has the document's id and text.
Only the Engagement's owner or an approver-level member can change an Engagement (the same rule as in the app). Anything else returns 403 not_allowed.
Drafting, Minutes and Research in your firm (background jobs)
With the tasks permission, POST/v1/firm/jobs also runs corporate_drafting, meeting_minutes and regulatory_research — the same input as the developer tasks above — charged to your firm's credits at the app's rates. To hold the result in an Engagement as a draft for review, add engagement_id (and optionally task_id) to the input; result.engagement says where it went. The secretary then reviews it and finalises it in the app, which files it in the Repository with your firm's approval step. A finished corporate_drafting also comes as a Word file: GET/v1/firm/jobs/{id}/docx.
{
"task": "regulatory_research",
"input": { "question": "When must a private company hold its AGM?", "jurisdiction": "Singapore", "engagement_id": "eng_…", "task_id": "etk_…" }
}
Completion callbacks
Set a callback address on the Developer API page (it must be https:// on a public host). When a job ends we POST the job to it. The signing secret (whsec_…) is shown once when you set the address. You can send a test callback from the same page.
Events: job.succeeded, job.incomplete, job.failed, job.canceled. Each callback is signed using the Standard Webhooks scheme, so existing libraries can verify it.
POST https://your-server.example.com/governanceapp/callback
webhook-id: msg_3f9c0d4e8a2b4c6d9e1f0a7b5c3d2e1f
webhook-timestamp: 1792656103
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
Content-Type: application/json
User-Agent: GovernanceApp-Webhooks/1
{ "type": "job.succeeded", "timestamp": "2026-10-22T08:21:43.000Z", "data": { "object": "job", "id": "job_3f9c…", "status": "succeeded", "result": { … } } }
- Reply with any
2xxwithin 10 seconds. Redirects are not followed. - Otherwise we retry after 1 minute, 5 minutes, 30 minutes, 2 hours, 5 hours and 10 hours, then stop. The delivery log is on the Developer API page.
webhook-idis the same on every retry of one callback — use it to ignore repeats.- Always verify the signature, and treat a callback as a prompt to read the job: you can also fetch it with
GET /v1/jobs/{id}.
// Node 18+ — verify a completion callback before trusting it
import crypto from "node:crypto";
function verifyCallback(rawBody, headers, secret /* "whsec_…" */) {
const id = headers["webhook-id"], ts = headers["webhook-timestamp"], sigs = headers["webhook-signature"];
if (!id || !ts || !sigs) return false;
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // older than 5 minutes: reject
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const expected = crypto.createHmac("sha256", key).update(id + "." + ts + "." + rawBody).digest("base64");
return sigs.split(" ").some(s => {
const [v, sig] = s.split(",");
return v === "v1" && sig && sig.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
});
}
Limits
Limits rise automatically with the credits you have bought. Until an account's first payment (card top-up or bank transfer), and for at most its first 30 days, the limits are 5 new tasks a minute, 100 a day and 5 waiting or running at once.
| Level | Credits bought | New tasks per minute | New tasks per day | Waiting or running at once |
|---|---|---|---|---|
| 1 | Any | 10 | 300 | 10 |
| 2 | 2,000,000 or more | 30 | 2,000 | 30 |
| 3 | 10,000,000 or more | 60 | 10,000 | 60 |
Over a limit you get 429 rate_limited with retry_after_seconds. Your current level is shown on the Developer API page. Need more? Contact us.
Errors
A refused request returns an HTTP error and a body like { "error": { "code": "invalid_request", "message": "…", "param": "input.jurisdiction" } }. Use code in your logic; message is for people and may change.
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing or wrong. error.param names the field. |
| 400 | idempotency_key_required | Send an Idempotency-Key header. |
| 401 | invalid_api_key | The key is missing, wrong or revoked. |
| 402 | insufficient_credits | Not enough credits. error.credits_required and error.credits_available are included. |
| 403 | account_frozen | The account is frozen. Contact support. |
| 404 | not_found | No such job, or an unknown endpoint. |
| 404 | not_available | The API is not open to this account yet. |
| 409 | idempotency_conflict | This Idempotency-Key was already used with a different body. |
| 409 | not_cancelable | Only a job that has not started can be cancelled. |
| 402 | credit_limit | Firm keys: the firm has no credits left. |
| 403 | not_allowed | Firm keys: the key lacks the permission, or its member may not do this in the app. |
| 403 | ip_not_allowed / access_off | Firm keys: the call came from outside the key’s IP list, or the firm’s API access is switched off. |
| 409 | task_completed | Firm keys: the Matter or Engagement task you named is already done. |
| 400 | request_refused | The request asked the service to reveal or override its own instructions, formats, models or settings (API Terms 4.2). Nothing is charged; repeated attempts stop access. |
| 403 | access_stopped | Access was stopped after repeated refused requests. Contact support. |
| 409 | not_ready | A file (Word, Excel, translation or converted file) was asked for before the job finished. |
| 410 | result_deleted | The result, and so its files, was deleted 30 days after the job finished (a translation and its file: 24 hours). |
| 413 | request_too_large | The body is over 15 MB (base64 files included). |
| 429 | rate_limited | Over a limit. error.limit and error.retry_after_seconds are included. |
| 500 | server_error | Retry with the same Idempotency-Key — the task will never run or be charged twice. |
Your data
- Translations: the original is deleted as soon as the translation is done; the translation, the input and the result 24 hours after the job ends.
- Inputs and results of other tasks are deleted 30 days after the job ends. Uploaded files are deleted as soon as the job no longer needs them (KYC images: when the check ends).
- Minutes from a recording: the recording is deleted as soon as it has been sent for transcription; the transcript and minutes are kept in the job’s result for 30 days. Converted files can be downloaded for 30 days.
- We process your data only to run the tasks you send, under the Data Processing Agreement in the API Terms. You must have the right to send it, and any notices or consents required by law.
- Your data is never used to train AI models — ours or any provider’s. The list of sub-processors is in the Terms of Service, Schedule 1.
- Your credit history is kept for accounting.
Support
E-mail [email protected] with the job id (job_…) — never your API key.