docs.vin

apiKey

The apiKey noun — identity, lifecycle, events, and every capability as an anchored section: 5 capabilities, 2 live, 3 sandbox, 0 declared.

apiKey is one of the estate's 317 automotive nouns — a job a car needs done. It carries 5 capabilities: 2 live, 3 sandbox, 0 declared · doors apis.vin · aggregator.vin.

Identity

NounapiKey
PillarCommerce (facets: 1 data · 4 commerce)
Capabilities5 — 2 live · 3 sandbox · 0 declared
EntitiesApiKey
Doorsaggregator.vin · apis.vin
SDKVin.apiKey.* from apis.vin
Address/catalog/apiKey#{action} — the anchor IS the wire name minus apiKey.

Lifecycle

ApiKeyApiKeyStatus: 3 states, 3 transitions — active · superseded · revoked. Each transition is a past-tense event on the record.

Events

The vocabulary this noun can append to the record — 5 past-tense, versioned event types, each linked to the capability that emits it:

Apply & book

create

apiKey.create · POST /api-keys/create · gate key · sandbox · answers ApiKeyCreate@1

No input — this capability takes no request body.

Dooraggregator.vin serves this noun on its two routes: / (the landing) · /1C4PJXDG6RW358421 (the VIN lens).

Try it — sandbox: every call answers a deterministic, provenance-labeled simulated payload ({ environment, simulated } in the body). Force any documented outcome with the magic triggers. Going live is a connect, never a ballot: submit the credential at integrates.vin (dealer systems) or connects.vin (consumer accounts) — submissions enter the activation queue and rank live rollout.

EmitsApiKey.created@1.

the SDK — apiKey.create
import { apiKey } from 'apis.vin'

// the gate law is in the type system: Answer<T> = Ok | Empty | Blocked | Offer
const answer = await apiKey.create()
POST /api-keys/create
curl -X POST https://apis.vin/api-keys/create \
  -H 'content-type: application/json' \
  -d '{}'

Receipt — the sandbox wire answered the request above with this exact body at build time. Captured by the receipts runner (timestamped, provenance in the payload), never authored; it re-executes only when this descriptor changes.

receipt · executed 2026-08-16T14:50:09.605Z · HTTP 200
{
  "type": "OK",
  "answers": "ApiKeyCreate@1",
  "value": {
    "apiKey": "apikey_b7579ff8",
    "prefix": "vin_sk_3c639b",
    "subject": "agent_vinsandbox0001",
    "scopes": [
      "read",
      "act"
    ],
    "status": "active",
    "createdAt": "2026-08-10T00:00:00.000Z",
    "secretOnce": "vin_sk_3c639bc5••••••••••••••••••••••••"
  },
  "evidence": {
    "apiKey": "apikey_b7579ff8",
    "prefix": "vin_sk_3c639b",
    "subject": "agent_vinsandbox0001",
    "scopes": [
      "read",
      "act"
    ],
    "status": "active",
    "createdAt": "2026-08-10T00:00:00.000Z",
    "secretOnce": "vin_sk_3c639bc5••••••••••••••••••••••••"
  },
  "provenance": {
    "simulated": true,
    "environment": "sandbox",
    "source": "governance-sandbox"
  },
  "events": [],
  "meter": {
    "charged": "0.00",
    "posted": false
  }
}

Fulfill & operate

rotate

apiKey.rotate · POST /api-keys/rotate · gate key · live · answers ApiKey@1

Promoted — earned its own page: /catalog/apiKey.rotate (computed on every regen: live on the wire + carries its own stateSet).

No input — this capability takes no request body.

Doorapis.vin serves this noun on its two routes: / (the landing) · /1C4PJXDG6RW358421 (the VIN lens).

Try it — live: answers on the wire today. A sandbox key still selects the deterministic simulated mode — drive the full outcome range with the magic triggers.

EmitsApiKey.minted@1 · ApiKey.rotated@1.

the SDK — apiKey.rotate
import { apiKey } from 'apis.vin'

// the gate law is in the type system: Answer<T> = Ok | Empty | Blocked | Offer
const answer = await apiKey.rotate()
POST /api-keys/rotate
curl -X POST https://apis.vin/api-keys/rotate \
  -H 'content-type: application/json' \
  -d '{}'

Authorize & resolve

revoke

apiKey.revoke · POST /api-keys/revoke · gate key · sandbox · answers ApiKey@1

No input — this capability takes no request body.

Doorapis.vin serves this noun on its two routes: / (the landing) · /1C4PJXDG6RW358421 (the VIN lens).

Try it — sandbox: every call answers a deterministic, provenance-labeled simulated payload ({ environment, simulated } in the body). Force any documented outcome with the magic triggers. Going live is a connect, never a ballot: submit the credential at integrates.vin (dealer systems) or connects.vin (consumer accounts) — submissions enter the activation queue and rank live rollout.

EmitsApiKey.revoked@1.

the SDK — apiKey.revoke
import { apiKey } from 'apis.vin'

// the gate law is in the type system: Answer<T> = Ok | Empty | Blocked | Offer
const answer = await apiKey.revoke()
POST /api-keys/revoke
curl -X POST https://apis.vin/api-keys/revoke \
  -H 'content-type: application/json' \
  -d '{}'

Receipt — the sandbox wire answered the request above with this exact body at build time. Captured by the receipts runner (timestamped, provenance in the payload), never authored; it re-executes only when this descriptor changes.

receipt · executed 2026-08-16T14:50:09.605Z · HTTP 200
{
  "type": "OK",
  "answers": "ApiKey@1",
  "value": {
    "id": "id-e2e3698e",
    "prefix": "prefix-be638bd7",
    "trustTier": "trustTier-de61f367",
    "scopes": "array-4be76e5e",
    "mandateBinding": "mandateBinding-6ea1c106",
    "owner": "principal-37dc83f6",
    "createdAt": "2027-04-20T00:00:00.000Z",
    "lastRotatedAt": "2027-04-20T00:00:00.000Z",
    "expiresAt": "2027-04-20T00:00:00.000Z",
    "status": "state-058046f5"
  },
  "evidence": {
    "id": "id-e2e3698e",
    "prefix": "prefix-be638bd7",
    "trustTier": "trustTier-de61f367",
    "scopes": "array-4be76e5e",
    "mandateBinding": "mandateBinding-6ea1c106",
    "owner": "principal-37dc83f6",
    "createdAt": "2027-04-20T00:00:00.000Z",
    "lastRotatedAt": "2027-04-20T00:00:00.000Z",
    "expiresAt": "2027-04-20T00:00:00.000Z",
    "status": "state-058046f5"
  },
  "provenance": {
    "simulated": true,
    "environment": "sandbox",
    "source": "api-key-sandbox"
  },
  "events": [],
  "meter": {
    "charged": "0.00",
    "posted": false
  }
}

More actions

mint

apiKey.mint · POST /api-keys/mint · gate key · live · answers ApiKey@1

Promoted — earned its own page: /catalog/apiKey.mint (computed on every regen: live on the wire + carries its own stateSet).

No input — this capability takes no request body.

Doorapis.vin serves this noun on its two routes: / (the landing) · /1C4PJXDG6RW358421 (the VIN lens).

Try it — live: answers on the wire today. A sandbox key still selects the deterministic simulated mode — drive the full outcome range with the magic triggers.

EmitsApiKey.minted@1.

the SDK — apiKey.mint
import { apiKey } from 'apis.vin'

// the gate law is in the type system: Answer<T> = Ok | Empty | Blocked | Offer
const answer = await apiKey.mint()
POST /api-keys/mint
curl -X POST https://apis.vin/api-keys/mint \
  -H 'content-type: application/json' \
  -d '{}'

scope

apiKey.scope · POST /api-keys/scope · gate key · sandbox · answers ApiKeyScope@1

No input — this capability takes no request body.

Doorapis.vin serves this noun on its two routes: / (the landing) · /1C4PJXDG6RW358421 (the VIN lens).

Try it — sandbox: every call answers a deterministic, provenance-labeled simulated payload ({ environment, simulated } in the body). Force any documented outcome with the magic triggers. Going live is a connect, never a ballot: submit the credential at integrates.vin (dealer systems) or connects.vin (consumer accounts) — submissions enter the activation queue and rank live rollout.

EmitsApiKey.scoped@1.

the SDK — apiKey.scope
import { apiKey } from 'apis.vin'

// the gate law is in the type system: Answer<T> = Ok | Empty | Blocked | Offer
const answer = await apiKey.scope()
POST /api-keys/scope
curl -X POST https://apis.vin/api-keys/scope \
  -H 'content-type: application/json' \
  -d '{}'

Receipt — the sandbox wire answered the request above with this exact body at build time. Captured by the receipts runner (timestamped, provenance in the payload), never authored; it re-executes only when this descriptor changes.

receipt · executed 2026-08-16T14:50:09.605Z · HTTP 200
{
  "type": "OK",
  "answers": "ApiKeyScope@1",
  "value": {
    "apiKey": "vk_sandbox",
    "scopes": [
      "read",
      "act"
    ],
    "mandateBinding": "mnd_f7a62e7b",
    "status": "scoped",
    "scopedAt": "2026-08-10T00:00:00.000Z"
  },
  "evidence": {
    "apiKey": "vk_sandbox",
    "scopes": [
      "read",
      "act"
    ],
    "mandateBinding": "mnd_f7a62e7b",
    "status": "scoped",
    "scopedAt": "2026-08-10T00:00:00.000Z"
  },
  "provenance": {
    "simulated": true,
    "environment": "sandbox",
    "source": "governance-sandbox"
  },
  "events": [],
  "meter": {
    "charged": "0.00",
    "posted": false
  }
}

Data model

The record shape behind this noun — one entity, each property an evidence field. See the whole estate model on the data model page.

ApiKey

Schema

PropertyType
idstring
prefixstring
trustTierstring
scopesarray
mandateBindingstring
ownerprincipal
createdAttimestamp
lastRotatedAttimestamp
expiresAttimestamp
statusstate

Modeled

The noun drawn out — its record shape, its lifecycle, and how it is exercised end to end. 4 diagrams, rendered from the estate model.

ApiKey · Class model

ApiKey · State machine

ApiKey · Class model

ApiKey · State machine


Generated from the catalog. Every capability, answer, gate, and entity on this page is a rendered descriptor — it cannot drift from the wire.