Get a contract
One contract with its line items, invoices and attachments. Amounts are null without billing access.
Deprecated aliases: GET https://one.vigilbase.com/api/customers/{id}/contracts/{contractId}. They answer with the same bodies, with a Deprecation header and a successor-version link to this URL.
Authorizations
Send one of these:
Bearer access token from Vigilbase Identity (auth.vigilbase.com), sent as Authorization: Bearer <token>. The CLI gets one with vigilbase login. Scope: one:api.
Organisation API key (vb_one_…) from Settings → API keys in Vigilbase One, sent as Authorization: Bearer vb_one_…. Read-only keys work. See organisation API keys.
Vigilbase Identity access token issued to an MCP client (mcp.vigilbase.com). Scope: one:read.
Path Parameters
Response
application/jsonSuccess
The human contract number, e.g. C-1001.
Owned by the partner and linked to this customer: a summary only.
Amount in major units; null when hidden from the caller (no billing access) or not set.
Vigilbase’s notes on the contract; null for callers outside Vigilbase.
The signed agreement (Common Paper), an https link; null for callers outside Vigilbase.
14 child attributes
Amount in major units; null when hidden from the caller (no billing access) or not set.
Amount in major units; null when hidden from the caller (no billing access) or not set.
Amount in major units; null when hidden from the caller (no billing access) or not set.
10 child attributes
Amount in major units; null when hidden from the caller (no billing access) or not set.
Amount in major units; null when hidden from the caller (no billing access) or not set.
9 child attributes
2 response headers
The request ID: yours when it was well-formed, otherwise a new one. Quote it to support.
The major API version (informational; the version is in the path).
More about this endpoint in the guide.