Skip to main content
This is the shortest paid call Apiosk has. No model interprets anything: you name the source and the operation, and Apiosk runs exactly that. Requires sources:execute.

Request

Both paths are the same endpoint. The body is the operation’s inputs and nothing else:
The Idempotency-Key header is optional and strongly recommended; see Idempotency.

What the path accepts

The source must have a currently executable operation in its source detail. A discovery-only directory entry cannot be called.
  • Source: its id, its name, or a provider that groups several sources (pulsenetwork), case-insensitive. For a group, the call runs on the member that offers the operation; if two members offer it, you get 409 ambiguous_operation naming them, and call one by its own id.
  • Operation: its capability (company_registry.search), its endpoint id, or its name.
  • Variants: some operations have several variants with different inputs — a KVK lookup by KVK number or by branch number. The call runs the variant whose inputs you supply; if none fits, 422 lists what each variant needs.

What the body accepts

Each input may be named three ways, so you can use whichever you have:

Response

The amounts below illustrate the response shape, not a current KVK quote. Read the source detail for the current buyer price before running. 200 with the finished run:
object
The source’s own document, present when the run produced exactly one — which a direct call normally does. The same document is in results[0].data.
object
Where the result came from: source, operation, retrieval time, the source’s page, the record’s own links, subject, identifiers such as a KVK number, and cost. Present on every entry of results, and at the top level when there is one. See Sales signals.
object
What the ledger actually charged. It equals the sum of usage.sources[].cost.
object
Money reserved for a call that has not settled yet. It is released or charged when the call resolves.
object
The organisation’s balance after this run.

Status codes

Everything that refuses before a purchase says so: nothing was charged.
A direct call buys only the named source. If an operation needs an input that only another source can supply, Apiosk refuses with 422 rather than buying that other source for you. Supply the input, or use Ask.

The explicit form

Same engine, price and response. Use it when a client builds requests from the catalogue and prefers a named envelope over a path.