The integrations a tenant can use depend on its licence and its audience: signed in, read them from GET /v1/abil-catalogue.
| GET | /v1/abil-channels | List channels (secrets masked; secrets_set booleans) |
| POST | /v1/abil-channels | Create channel (configuration encrypted at rest; a secret is never returned once stored). credential_source: abil (credentials kept in ABIL, the default where the provider takes any) or none (a public service). zero_rated: usage recorded, never billed. no_default_cap (AI channels and the handlers IP4X syncs only): no default monthly spend cap, for IP4X's channel sync. Auth: IP4X user with abil:channels:manage, OR X-ABIL-Service-Key of IP4X's connector key (consumer ip4x-connector) carrying channels:manage, for a handler IP4X syncs (else 403), in the key's tenant, with only code, name, handler, configuration and no_default_cap (else 403); refused 409 while the key holds 50 live channels; the channel then joins that key's channels |
| GET | /v1/abil-channels/:id | Get channel |
| PUT | /v1/abil-channels/:id | Update channel (omitted secrets preserved, unless a URL moves to another host: then every stored secret must be entered again; clear_secrets: [key] removes held ones by name, or holds one blank where configuration sends it empty). URL fields are https, and a fixed supplier's only on its own hosts. An AI channel's URL may be any http(s) host but cloud metadata or link-local, with no query or fragment (a private address is reached only where the operator allows it for the tenant), its key kept only while the URL stays on the supplier's own hosts; and `handler` may move an AI channel to another AI handler, with its key entered again and the rest of its configuration from the request (licensed for the new handler). Auth: IP4X user with abil:channels:manage, OR IP4X's connector key carrying channels:manage, for a channel on the key, of a handler IP4X syncs, in the key's tenant (another answers 404), with only code, name, handler and configuration (else 403), moved only to another such handler |
| DELETE | /v1/abil-channels/:id | Soft-delete channel. Auth: IP4X user with abil:channels:manage, OR IP4X's connector key carrying channels:manage, for a channel on the key, of a handler IP4X syncs, in the key's tenant (another answers 404) |
| GET | /v1/abil-channels/available-handlers | Provider catalog for this licence, narrowed to the tenant's audience |
| GET | /v1/abil-catalogue | The integrations this tenant is shown (its audience, plus any it already has a channel for, flagged in_audience: false), with categories, industries and use cases |
| GET | /v1/abil-admin/integrations | Every integration with its audience and use-case tags, hidden flag, version and suggested industries |
| PUT | /v1/abil-admin/integrations/:handler | Set {audiences?, use_cases?, hidden?, version}; version is the one read (409 if changed since). Audited |
| POST | /v1/abil-admin/integrations/bulk | Add or remove tags across integrations {handlers, field: audiences|use_cases, add?, remove?} |
| GET | /v1/abil-admin/tags | Segment and use-case vocabularies, with how often each is used |
| POST | /v1/abil-admin/tags | Add a tag {kind: segment|use_case, value, label, description?} |
| PUT | /v1/abil-admin/tags/:kind/:value | Rename a tag {label, description?} |
| DELETE | /v1/abil-admin/tags/:kind/:value | Delete a tag no integration or tenant uses |
| GET | /v1/abil-admin/tenants | Every tenant ABIL has met, with its region (from IP4X) and tags |
| PUT | /v1/abil-admin/tenants/:tenantId/tags | Replace a tenant's industry and segment tags {tags} |
| GET | /v1/abil-admin/tenants/:tenantId/catalogue | Preview the catalogue as that tenant sees it |
| GET | /v1/abil-admin/history | Every audience change, newest first: integration profiles, tenant tags and the tag vocabularies (?kind=integration|tenant|tag, ?subject, ?handler, ?limit) |
| GET | /v1/abil-admin/regions | Region quick picks: ABIL deployment regions and their countries |
| GET | /v1/abil-channels/handlers/:handler/schema | Configuration schema |
| GET | /v1/abil-channels/handlers/:handler/actions | Actions a handler exposes, with the parameters each takes where they are described |
| GET | /v1/abil-channels/:id/metrics | One channel in a period (?period=YYYY-MM, default the current one): calls, failures, success rate, response times, quantity and cost per metric and per day. Test calls counted apart |
| POST | /v1/abil-channels/:id/execute | Execute an action {action, params, disposition?, trace?} — records CDRs. Answers {data, price?}: data is the handler payload; price {amount_micros, currency, provisional: true} is the billable usage of the call at its IP4X product price (excl. tax) × quantity — provisional, as IP4X prices the month when it invoices; never supplier cost; absent when nothing billable was recorded, a SKU has no priced IP4X product, no service account reads it, or the products are priced in different currencies. trace: true (a signed-in operator only, never a service key) adds `trace`, the supplier requests the call made (method, host, path, status, time; no query, header or body), to the answer and to an error. Auth: IP4X user with abil:channels:execute, OR X-ABIL-Service-Key carrying channels:execute for this channel (disposition is always billable; customer_ref must be the key's consumer or beneath it). Idempotency-Key header replays the stored response; 429 cap_exceeded/float_exhausted (ABIL's own limits); 429 supplier_rate_limited or 503 supplier_unavailable when the supplier said so, with its Retry-After passed on; 428 when an action that must not repeat (a live Amber raise_alert) comes without an Idempotency-Key; 504 outcome_unknown after a vendor timeout, with or without an Idempotency-Key |
| * | X-ABIL-On-Behalf-Of: <child tenant id> | ABIL-T3: on the setup routes (channels, consumers and keys, caps, billing bindings, service account, event receivers, events) a parent's staff act for a DIRECT child; IP4X confirms the parentage, anything else is a 404. Every other route answers 400 on_behalf_not_supported |
| GET | /v1/abil-ip4x/service-account | ABIL-T2: where licence reads by key sign in from (env | stored | shared) and the stored account, masked |
| PUT | /v1/abil-ip4x/service-account | ABIL-T2: hold the tenant's IP4X service account in ABIL {email, password}: proven against IP4X first (422 login_refused stores nothing), encrypted, never returned. No env change or redeploy per tenant |
| DELETE | /v1/abil-ip4x/service-account | ABIL-T2: forget it |
| GET | /v1/abil-ip4x/parent-key | ABIL-2: this parent's IP4X key held in ABIL (name, prefix, routes, last confirmed; never the key), whether an env directory key for it is used first, and the routes the key must be held to |
| PUT | /v1/abil-ip4x/parent-key | ABIL-2: hold the parent's IP4X API key {key}. IP4X GET /api-keys/me must say it is this tenant's own and held to GET /child-tenants/:id and GET /child-tenants/:id/license only (422 key_refused | key_wrong_tenant | key_unlimited | key_cannot_read_licence | key_too_wide stores nothing). It reads its direct children's licences and countries; a grandchild needs its own parent's key |
| POST | /v1/abil-ip4x/parent-key/check | ABIL-2: ask IP4X again who the stored key is; a refusal keeps the key and says why |
| DELETE | /v1/abil-ip4x/parent-key | ABIL-2: forget it; licence reads fall back to each child's own service account |
| POST | /v1/abil-channels/:id/shares | ABIL-F10: share a channel with a direct child {child_tenant_id}; the child executes it (its usage names the funder, both tenants' caps apply) and never reads it. 404 for a tenant that is not your child |
| GET | /v1/abil-channels/:id/shares | ABIL-F10: a channel's shares, live and revoked |
| DELETE | /v1/abil-channels/shares/:shareId | ABIL-F10: revoke; the next call by the child is refused |
| PUT | /v1/abil-event-receivers | ABIL-F01/T5: where events go {url, consumer_id?, secret?}: the tenant's default, or one consumer's. A generated secret is returned only here (docs/EVENTS.md) |
| GET | /v1/abil-event-receivers | Receivers, never their secrets |
| DELETE | /v1/abil-event-receivers/:id | Remove a receiver |
| GET | /v1/abil-events | Events (?state=queued|delivered|failed|dead&type=&limit=): message.delivered/failed/inbound/opt_out/opt_in, newest first |
| POST | /v1/abil-events/:id/redeliver | Queue an event again now |
| POST | /v1/abil-opt-outs/remove | ABIL-T6: lift a WhatsApp or SMS opt-out {channel_id, to, customer_ref?}: that consumer's, else every consumer's (the number is hashed, never stored) |
| GET | /v1/abil-consumers | Consumer registry (a per-tenant tree) |
| POST | /v1/abil-consumers | Register a consumer (optional parent_id = tree edge) |
| PUT | /v1/abil-consumers/:id | Update a consumer {name?, notes?, is_active?} — is_active: true reactivates one a blocking cap switched off |
| POST | /v1/abil-consumers/:id/keys | Issue a service key {name?, scopes?: [ingest|usage|billing|channels:execute|accounting|channels:manage|accounting:read] (billing needs abil:periods:manage; channels:manage needs abil:channels:manage and goes only on the ip4x-connector consumer's key, beside channels:execute; accounting and accounting:read need abil:xero:map, each on a key and a consumer of its own, accounting bound to ledgers ABIL posts to, accounting:read to ledger channels), allowed_channel_ids? (required with channels:execute, accounting or accounting:read), allowed_models? (on its AI channels, the only models a call may name; the first runs when a call names none)} — secret shown once |
| PUT | /v1/abil-consumers/keys/:keyId/models | Change a live key's allowed models {allowed_models: [model…] | null} — null lifts the limit; the secret is unchanged. Needs abil:channels:execute as well as abil:consumers:manage |
| PUT | /v1/abil-consumers/keys/:keyId/channels | Replace a live execute or accounting key's channels {allowed_channel_ids: [id…] (1..50, 1..1000 on IP4X's connector key, this tenant's)} — checked as at issue, a channel deleted since it was on the key dropped, and on a channels:manage key a live channel the key created itself kept; the secret is unchanged. Needs abil:consumers:manage and the issuer bar for the key's scopes (abil:channels:execute, abil:xero:map for accounting). IP4X's connector key (consumer ip4x-connector, scopes [channels:execute] or [channels:execute, channels:manage]) is also kept, with this and the other registry calls IP4X makes for it, by abil:channels:manage + abil:channels:execute (docs/OPERATIONS.md). Creating the ip4x-connector consumer, or issuing, re-pointing, limiting or revoking a key on it, also needs IP4X's platform key (X-IP4X-Platform-Key) whoever calls; issuing one replaces the live one, and it binds only the channels IP4X syncs |
| DELETE | /v1/abil-consumers/keys/:keyId | Revoke a service key |
| GET | /v1/abil-caps | Usage / spend caps (?scope=channel|consumer|tenant&scope_id=) |
| GET | /v1/abil-caps/usage | Caps with the current window's used vs limit, percentage and, on an ATSC-paid cap, the month by original currency |
| GET | /v1/abil-caps/atsc-paid | The tenant's cap on the ATSC-paid usage it causes, and its USD 300 ceiling (or IP4X's key for it) |
| PUT | /v1/abil-caps/atsc-paid | Set it: { limit_value, currency }, 0 up to the USD 300 equivalent (or IP4X's key for it) |
| POST | /v1/abil-caps | Create a cap {scope, scope_id?, metric_key?, service_code? (on an AI channel the model: only its calls count), kind: quantity|cost (a quantity cap on a token metric counts tokens), window: day|period, limit_value, currency?, soft_pct?, action: block|warn} |
| DELETE | /v1/abil-caps/:id | Remove a cap |
| GET | /v1/abil-services | Service groups: one service, several providers |
| GET | /v1/abil-services/status | Members in cost order + the margin verdict per service (?code=) |
| POST | /v1/abil-services | Create a service {code, name, product_sku, margin_floor_pct?=10} |
| PUT | /v1/abil-services/:code | Update a service (name, product_sku, margin_floor_pct 0–95 as a margin on price, is_active, notes) |
| DELETE | /v1/abil-services/:code | Remove a service |
| POST | /v1/abil-services/:code/members | Add a provider {abil_channel_id, action, metric_key, service_code?} |
| DELETE | /v1/abil-services/members/:id | Remove a provider |
| POST | /v1/abil-services/:code/execute | Run the service: margin floor (409 margin_breach; 503 margin_unverified), then cheapest live provider first, failover on supplier failure (a supplier's 429 or 503 included); 429 on the caller's own cap; 502 when all fail; 504 outcome_unknown when a transactional provider times out. Answers {data, price?, served_by, attempts}, price as on channel execute (the IP4X product price, provisional). Same auth, Idempotency-Key and service-key rules as channel execute; no supplier cost in the response |
| POST | /v1/abil-ingest | Consumer usage ingest — auth by X-ABIL-Service-Key; customer_ref from the key, not the body |
| GET | /v1/abil-xero/status | Every Xero channel: organisation, legal name, base currency, status, last sync, last error, call-budget usage |
| POST | /v1/abil-xero/connect | Start a connection {abil_channel_id} → {authorize_url} (one-time, 5 minutes; abil:xero:connect) |
| GET | /v1/abil-xero/authorize | PUBLIC browser leg (?ticket=): sets the HttpOnly nonce cookie and 302s to Xero |
| GET | /v1/abil-xero/callback | PUBLIC: Xero redirects here; 302 to XERO_RETURN_URL?xero=choose|error&xero_state=… (never tokens) |
| POST | /v1/abil-xero/webhook | PUBLIC: Xero webhook (G-14). x-xero-signature = base64 HMAC-SHA256 of the raw body with XERO_WEBHOOK_KEY; 200 valid / 401 not, empty body |
| GET | /v1/abil-xero/pending/:stateId | Organisations this approval returned (name, legal name, VAT number, currency, demo flag, already bound elsewhere) |
| POST | /v1/abil-xero/confirm | Bind one organisation to the channel {state_id, xero_tenant_id}; the others from that approval are disconnected |
| POST | /v1/abil-xero/:channelId/disconnect | Stop posting: remove the connection at Xero and revoke the grant once nothing uses it (posted documents stay in Xero) |
| GET | /v1/abil-xero/:channelId/mappings | Tax label → TaxType, revenue key → account code, clearing account, sundry contact name |
| PUT | /v1/abil-xero/:channelId/mappings | Upsert mappings {entries:[{kind: tax|account|setting|item|tracking, source_key, xero_value}]} (tracking: "category/option" both sides); empty xero_value removes (abil:xero:map) |
| GET | /v1/abil-xero/:channelId/options | Live ACTIVE revenue/payment accounts and sales tax rates from the organisation (spends Xero calls) |
| POST | /v1/abil-xero/:channelId/validate | Check every mapping against the live organisation → {ok, problems, warnings} |
| POST | /v1/abil-accounting/:channelId/documents | Queue up to 500 canonical documents {source, documents[]} → 202. Auth: X-ABIL-Service-Key with the accounting scope for this channel, OR an IP4X user with abil:xero:map |
| POST | /v1/abil-accounting/:channelId/preview | Render the payloads these documents would become in the channel's ledger (Xero, or Odoo with provider and body) — nothing queued, nothing sent |
| GET | /v1/abil-accounting/:channelId/documents | Outbox and ID map (?state=queued|synced|exception|blocked&kind=contact|contact_update|invoice|credit_note|allocation|payment|overpayment|credit_allocation|void|attachment|journal|settlement_transfer|settlement_fee|refund|bill|bill_credit|bill_allocation|bill_payment|batch_payment). Each row names its provider and the ledger's external_id and external_number; xero_id and xero_number are deprecated aliases of those two |
| POST | /v1/abil-accounting/documents/:id/retry | Re-queue an exception after fixing its cause |
| POST | /v1/abil-accounting/documents/:id/resolve | Settle a doubt only a person can (settlement_possible_duplicate, settlement_fee_voided_in_xero, journal_voided_in_xero): {action: adopt, xero_id} or {action: post_anyway} (abil:xero:map) |
| POST | /v1/abil-accounting/:channelId/sync | Post this channel's due documents now instead of on the worker's next tick |
| POST | /v1/abil-accounting/:channelId/drift | Check now for documents ABIL posted that were changed or voided in Xero (flags, never reverts; spends Xero calls) |
| GET | /v1/abil-accounting/:channelId/reconcile/:period | ABIL net revenue per Xero account code beside Xero's own Profit and Loss for the month (reads Xero: chart of accounts + one report; accounting.reports.profitandloss.read, or the broad accounting.reports.read an older grant carries until 13 Sept 2027) (G-11) |
| GET | /v1/abil-accounting/:channelId/events | What ABIL concluded of payments entered in the ledger against invoices it posted (payment.recorded_externally): from Xero's webhooks (G-14), or from polling Odoo (every ABIL_LEDGER_POLL_INTERVAL_MS, 5 min; docs/ODOO.md), in the same shape, by cursor: ?after=<seq>&limit=. Each event names its provider (xero, odoo), external_id and external_status (Xero: the invoice's Status; Odoo: its payment_state); xero_id and xero_status are deprecated aliases of those two |
| GET | /v1/abil-accounting/:channelId/tie-out/:period | Month-end tie-out (YYYY-MM): what ABIL posted vs what the organisation holds, one currency at a time (?currency=, default the base currency) |
| GET | /v1/abil-accounting/:channelId/mappings | The channel's mapping, whatever its ledger → [{kind, source_key, value, updated_by, updated_at}] (Xero: the /abil-xero mapping, xero_value as value; Odoo: tax → account.tax id, account → account code, setting sales_journal | payment_journal | payment_method_line | sundry_contact_name, item → product.product id) |
| PUT | /v1/abil-accounting/:channelId/mappings | Upsert {entries:[{kind, source_key, value}]} (the provider's kinds; an empty value removes; abil:xero:map) |
| GET | /v1/abil-accounting/:channelId/mappings/options | What the mapping may name, read from the ledger (Odoo: sales taxes, income accounts, sales and bank/cash journals, inbound payment methods, products; Xero: its options) |
| POST | /v1/abil-accounting/:channelId/mappings/validate | Check the mapping against the live ledger → {ok, problems, warnings}; an Odoo channel's company and currencies are recorded by it (documents are refused, 409 ledger_not_connected, until it has run) |
| POST | /v1/abil-accounting/:channelId/ledger/test | Test the connection → {provider, ok, server_version, api (Odoo: jsonrpc|json2; Sage ZA: sage_za_v2, server_version 2.0.0), company {id, name}, currency, minor_units}. No secrets |
| GET | /v1/abil-accounting/:channelId/ledger/trial-balance | ?to=YYYY-MM-DD&from= (from omitted: everything posted up to to) → {accounts: [{account_id, code, name, type, debit_minor, credit_minor, balance_minor}], totals} |
| GET | /v1/abil-accounting/:channelId/ledger/accounts | The chart of accounts → {accounts: [{account_id, code, name, type}], next_cursor} |
| GET | /v1/abil-accounting/:channelId/ledger/revenue | ?from&to&by=customer|item → {rows: [{id, name, code?, category?, amount_minor}], total_minor}: untaxed, signed (a credit note reduces it), on the accounting date |
| GET | /v1/abil-accounting/:channelId/ledger/open-items | ?side=receivable|payable → {items: [{item_id, number, reference, kind, partner_id, partner_name, date, due_date, total_minor, residual_minor}], next_cursor} |
| GET | /v1/abil-accounting/:channelId/ledger/bank-lines | ?from&to → {lines: [{line_id, date, amount_minor, currency, partner_id, partner_name, reference, journal, reconciled}], next_cursor}: each line in its bank account's currency |
| GET | /v1/abil-accounting/:channelId/ledger/customers | → {customers: [{customer_id, name, reference, tax_number, is_company, country}], next_cursor} |
| GET | /v1/abil-accounting/:channelId/ledger/items | → {items: [{item_id, code, name, category, type}], next_cursor} |
| GET | /v1/abil-accounting/:channelId/ledger/journal-lines | ?from&to (ABIL-30) → {lines: [{line_id, entry_id, entry_number, date, account_id, account_code, account_name, description, reference, partner_id, partner_name, debit_minor, credit_minor, source_type}], next_cursor}: posted journal lines in the company's currency (Odoo account.move.line; Xero Journals, which need accounting.journals.read; Sage ZA DetailedLedgerTransaction, entry_id null; Sage v3.1 ledger_entries). Xero pages by journal number with no date filter: a page may be empty with a next_cursor |
| POST | /v1/abil-accounting/:channelId/sage/connect | {business_id?} → {authorize_url, expires_at}: Sage Accounting v3.1 (UK, IE, CA; handler sage_accounting) is connected by OAuth on Sage's site; the business named, else the Sage user's lead business (abil:xero:map; docs/SAGE-ACCOUNTING.md) |
| GET | /v1/abil-sage/callback | Sage's OAuth redirect (public: the single-use state is the credential); sends the browser to SAGE_ACCOUNTING_RETURN_URL with ?sage=connected|error&reason= |
| GET | /v1/abil-privacy/regimes | Regime profiles (POPIA, GDPR / UK GDPR, HIPAA) and the regimes this deployment is cleared for (ABIL_PRIVACY_REGIMES) |
| GET | /v1/abil-privacy/record | Record of processing for the tenant (GDPR Art. 30(2)): each channel's supplier, data, governing regimes, agreements in force and gaps. The platform may pass ?tenant_id |
| GET | /v1/abil-privacy/agreements | The agreements register (?include_revoked=true). A tenant sees its own; the platform sees all or ?tenant_id |
| POST | /v1/abil-privacy/agreements | Record an agreement {tenant_id, party: tenant|supplier, regime, handler (supplier only), reference, signed_on, expires_on?}. Platform tenant only |
| POST | /v1/abil-privacy/agreements/:id/revoke | Revoke {reason}; the row stays as history. Platform tenant only |