# Quickstart

Connect a shopping assistant or a store to the Agentic Intent Exchange with one prompt, an MCP client or plain HTTPS.

Source: https://www.brambles.ai/agentic-intent-exchange/docs/quickstart

Install the AIX skills once for every project: `npx skills add https://aix.brambles.ai`. Every path below ends at the same two server calls; choose the one that matches where your agent lives.

## I send intent

AI apps, assistants and agents that send shoppers to stores

Paste this into Cursor, Claude Code, Codex or any coding agent. It installs the AIX skills, finds where your server handles shoppers, adds the integration and sends a sandbox test.

> I want to connect my shopping assistant to the Agentic Intent Exchange. Run `npx skills add https://aix.brambles.ai`, then follow the `aix-send-intent` skill. My sandbox key is in `AIX_SENDER_KEY`.

Keys come from the AIX console and are shown once. Create a free sending agent, store the key as `AIX_SENDER_KEY` on your server, and never put it in browser code, a mobile app or a chat. [Create a free sending agent](https://www.brambles.ai/agentic-intent-exchange/connect?role=sender).

### Coding agents · one prompt

The agent installs the skills, finds where your server handles shoppers, adds the calls and sends a sandbox test.

#### Cursor

Agent chat reads the skill and edits your server code.

Install the AIX skills once; every project then knows them.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Open Cursor's agent chat and paste the prompt from the top of this page. The agent reads `aix-send-intent`, wires your server and sends a sandbox test.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_SENDER_KEY` in production.

#### Claude Code

Terminal agent; the skills install as slash commands.

Install the skills once.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Run `/aix-send-intent` in Claude Code, or paste the prompt from the top of this page.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_SENDER_KEY` in production.

#### Codex

OpenAI's coding agent, CLI or IDE.

Install the AIX skills once; every project then knows them.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Open Codex and paste the prompt from the top of this page. The agent reads `aix-send-intent`, wires your server and sends a sandbox test.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_SENDER_KEY` in production.

#### VS Code + Copilot

Agent mode picks up installed skills.

Install the AIX skills once; every project then knows them.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Open Copilot agent mode and paste the prompt from the top of this page. The agent reads `aix-send-intent`, wires your server and sends a sandbox test.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_SENDER_KEY` in production.

#### Windsurf

Cascade reads installed skills.

Install the AIX skills once; every project then knows them.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Open Cascade and paste the prompt from the top of this page. The agent reads `aix-send-intent`, wires your server and sends a sandbox test.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_SENDER_KEY` in production.

#### Any agent

Point it at the skill file. No install.

Any agent that can read a URL can follow the skill without installing anything.

prompt:

```text
Read https://aix.brambles.ai/api/aix/skills/send-intent and follow its instructions. My sandbox key is in AIX_SENDER_KEY.
```

### Agent frameworks · AIX as tools in your agent

Agents built on these frameworks get the two AIX operations as tools, through the MCP server or defined in code, with the prompt rules that tell the model when to use them.

#### Vercel AI SDK

MCP client or two tool() definitions.

[Open the guide](https://www.brambles.ai/agentic-intent-exchange/docs/vercel-ai-sdk.md)

#### OpenAI Agents SDK

Python and TypeScript, MCP or function tools.

[Open the guide](https://www.brambles.ai/agentic-intent-exchange/docs/openai-agents-sdk.md)

#### LangChain

MCPAdapter or two @tool functions.

[Open the guide](https://www.brambles.ai/agentic-intent-exchange/docs/langchain.md)

#### Claude Agent SDK

An http MCP server block and allowedTools.

[Open the guide](https://www.brambles.ai/agentic-intent-exchange/docs/claude-agent-sdk.md)

### MCP clients · the exchange as tools

Use the same Streamable HTTP endpoint with browser OAuth or an existing bearer key. The key examples below bind one app; browser sign-in lets you select an app after consent.

#### Claude Code

One command, header from your environment.

A sender key exposes four tools: `submit_intent`, `report_handoff`, `delete_session` and `get_activity`.

terminal:

```bash
claude mcp add --transport http aix https://aix.brambles.ai/api/aix/mcp \
  --header "Authorization: Bearer $AIX_SENDER_KEY"
```

#### Cursor

Project or global mcp.json.

A sender key exposes four tools: `submit_intent`, `report_handoff`, `delete_session` and `get_activity`.

.cursor/mcp.json:

```json
{
  "mcpServers": {
    "aix": {
      "url": "https://aix.brambles.ai/api/aix/mcp",
      "headers": { "Authorization": "Bearer ${env:AIX_SENDER_KEY}" }
    }
  }
}
```

#### VS Code

Workspace mcp.json with a prompted secret.

A sender key exposes four tools: `submit_intent`, `report_handoff`, `delete_session` and `get_activity`.

.vscode/mcp.json:

```json
{
  "inputs": [
    { "id": "aix-key", "type": "promptString", "password": true, "description": "AIX key" }
  ],
  "servers": {
    "aix": {
      "type": "http",
      "url": "https://aix.brambles.ai/api/aix/mcp",
      "headers": { "Authorization": "Bearer ${input:aix-key}" }
    }
  }
}
```

#### Codex

config.toml with a bearer token variable.

A sender key exposes four tools: `submit_intent`, `report_handoff`, `delete_session` and `get_activity`.

~/.codex/config.toml:

```toml
[mcp_servers.aix]
url = "https://aix.brambles.ai/api/aix/mcp"
bearer_token_env_var = "AIX_SENDER_KEY"
```

#### Any MCP host

Streamable HTTP with a bearer header.

A sender key exposes four tools: `submit_intent`, `report_handoff`, `delete_session` and `get_activity`. Self-serve keys are bearer tokens: send them as they are. For browser OAuth in a compatible client, add the same endpoint, sign in with your Brambles account through Clerk and call list_apps. App-scoped calls require app_id and default to environment test; choose live explicitly. Sending or receiving changes require additional consent and organization-admin access. See Protocols → MCP for the permissions and setup requirements. The key configuration below keeps its existing arguments.

mcp.json:

```json
{
  "mcpServers": {
    "aix": {
      "type": "http",
      "url": "https://aix.brambles.ai/api/aix/mcp",
      "headers": { "Authorization": "Bearer ${AIX_SENDER_KEY}" }
    }
  }
}
```

### From your server · HTTPS

Two calls with a three-second timeout. AIX must never slow down or break the shopper's experience.

#### Node / TypeScript

Next.js, Express, serverless.

Three-second timeout, never block the shopper.

aix.ts:

```typescript
const AIX = "https://aix.brambles.ai/api/aix";

async function aix(path: string, body: unknown) {
  const key = process.env.AIX_SENDER_KEY;
  if (!key) return null;
  try {
    const res = await fetch(`${AIX}/${path}`, {
      method: "POST",
      headers: { authorization: `Bearer ${key}`, "content-type": "application/json" },
      body: JSON.stringify(body),
      signal: AbortSignal.timeout(3000),
    });
    return res.ok ? await res.json() : null;
  } catch {
    return null; // never block the shopper
  }
}

export const sendIntent = (intent: object) => aix("intents", intent);
export const reportHandoff = (handoff: object) => aix("handoffs", handoff); // add result.aix_param to the store URL in your link
```

#### Python

FastAPI, Django, Flask.

aix.py:

```python
import os
import requests

AIX = "https://aix.brambles.ai/api/aix"


def aix(path, body):
    key = os.environ.get("AIX_SENDER_KEY")
    if not key:
        return None
    try:
        r = requests.post(f"{AIX}/{path}", json=body, timeout=3,
                          headers={"Authorization": f"Bearer {key}"})
        return r.json() if r.ok else None
    except requests.RequestException:
        return None  # never block the shopper


send_intent = lambda intent: aix("intents", intent)
report_handoff = lambda handoff: aix("handoffs", handoff)  # add result["aix_param"] to the store URL in your link
```

#### curl

Try the sandbox from a terminal.

terminal:

```bash
curl -X POST https://aix.brambles.ai/api/aix/intents \
  -H "Authorization: Bearer $AIX_SENDER_KEY" -H "Content-Type: application/json" \
  -d '{
    "session_id": "conv_123",
    "task": {
      "category": "Running shoes",
      "summary": "Wide running shoes for daily training, cushioning preferred, up to $150.",
      "budget": { "currency": "USD", "max_cents": 15000 },
      "facts": [
        { "attribute": "width", "value": "wide", "strength": "required" },
        { "attribute": "feature", "value": "cushioning", "strength": "preferred" }
      ]
    },
    "country": "US", "locale": "en-US", "privacy": { "gpc": false }
  }'
# 202 {"status":"accepted","quality":{"score":82,...}}
```

### What happens next

1. `/intents` (POST): Your server reports the shopper's task after each turn that changes it. Names, contact details and the transcript never leave you.
2. `/handoffs` (POST): When the assistant links the shopper to a store, report it and add the returned aix_param to the store URL inside your own link.
3. `Gates, then a receipt` (AIX): Consent (EEA, UK, CH), sensitive-topic suppression, receiver verification and campaign budget. Then a receipt bound to that one store.
4. `/activity` (GET): Accepted, delivered, earned. The console flips to Connected after your first sandbox handoff.

### What your server exchanges

Two calls. The first describes the task; the second says where the shopper is going.

Intent:

```json
{
  "session_id": "conv_123",
  "task": {
    "category": "Running shoes",
    "summary": "Wide running shoes for daily training, cushioning preferred, up to $150.",
    "budget": { "currency": "USD", "max_cents": 15000 },
    "facts": [
      { "attribute": "width", "value": "wide", "strength": "required" },
      { "attribute": "use_case", "value": "running", "strength": "required" },
      { "attribute": "feature", "value": "cushioning", "strength": "preferred" }
    ]
  },
  "page_url": "https://reviews.example.com/best-running-shoes",
  "locale": "en-US",
  "country": "US",
  "privacy": { "gpc": false }
}
```

Handoff:

```json
{
  "session_id": "conv_123",
  "destination_url": "https://store.example.com/products/wide-runner",
  "consent": "granted",
  "product": {
    "title": "Wide Runner 2",
    "price_cents": 12999,
    "currency": "USD",
    "brand": "Example",
    "merchant": "Example Store"
  }
}
```

Responses:

```json
202 {
  "status": "accepted",
  "intent_id": "aixint_0123456789abcdef0123456789abcdef",
  "task_id": "task_c0ffee0123456789",
  "revision": 1,
  "expires_at": "2026-10-23T18:04:00.000Z",
  "environment": "live",
  "quality": { "score": 82, "signals": [ { "name": "specific_category", "points": 15 }, { "name": "requirements", "points": 16 }, { "name": "budget", "points": 10 } ] }
}
200 { "status": "suppressed", "reason": "sensitive_category", "sensitive_class": "health" }   // stores nothing, withdraws the session
200 { "status": "suppressed", "reason": "country_required" }                               // production only; the sandbox accepts with a warning
200 { "status": "suppressed", "reason": "privacy_signal" }
200 { "status": "no_shopping_intent" }
200 { "status": "duplicate_or_stale", "revision": 3 }
400 invalid body · 401 unauthorized · 403 insufficient_scope · 429 rate_limited (retry_after) · 503 extractor_unavailable
```

### Endpoints

Base URL `https://aix.brambles.ai/api/aix`. Every request carries `Authorization: Bearer <key>`. Sandbox keys start with `aix_test_`, production keys with `aix_live_`.

- [POST /intents](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#intents): Submit the shopper's current shopping task for one session.
- [POST /handoffs](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#handoffs): Report that the assistant is linking the shopper to a store; returns what to add to your link.
- [POST /privacy/delete](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#privacy-delete): Honour a shopper's deletion request for one session.
- [GET /activity](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#activity): Your own activity for the last N days.
- [MCP /mcp](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#mcp): A sender key exposes four tools: `submit_intent`, `report_handoff`, `delete_session` and `get_activity`.

## I receive intent

Stores, brands and their AI agents

Paste this into Cursor, Claude Code, Codex or any coding agent. It installs the AIX skills, finds where your server handles shoppers, adds the integration and sends a sandbox test.

> I want my store to receive shopping intent from the Agentic Intent Exchange. Run `npx skills add https://aix.brambles.ai`, then follow the `aix-receive-intent` skill. My sandbox key is in `AIX_RECEIVER_KEY`.

Keys come from the AIX console and are shown once. Create a free receiving agent, store the key as `AIX_RECEIVER_KEY` on your server, and keep the receiver secret from `GET /receiver/config` next to it. [Create a free receiving agent](https://www.brambles.ai/agentic-intent-exchange/connect?role=receiver).

### Coding agents · one prompt

The agent installs the skills, finds where your server handles shoppers, adds the calls and sends a sandbox test.

#### Cursor

Agent chat reads the skill and edits your server code.

Install the AIX skills once; every project then knows them.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Open Cursor's agent chat and paste the prompt from the top of this page. The agent reads `aix-receive-intent`, wires your server and sends a sandbox test.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_RECEIVER_KEY` in production.

#### Claude Code

Terminal agent; the skills install as slash commands.

Install the skills once.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Run `/aix-receive-intent` in Claude Code, or paste the prompt from the top of this page.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_RECEIVER_KEY` in production.

#### Codex

OpenAI's coding agent, CLI or IDE.

Install the AIX skills once; every project then knows them.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Open Codex and paste the prompt from the top of this page. The agent reads `aix-receive-intent`, wires your server and sends a sandbox test.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_RECEIVER_KEY` in production.

#### VS Code + Copilot

Agent mode picks up installed skills.

Install the AIX skills once; every project then knows them.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Open Copilot agent mode and paste the prompt from the top of this page. The agent reads `aix-receive-intent`, wires your server and sends a sandbox test.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_RECEIVER_KEY` in production.

#### Windsurf

Cascade reads installed skills.

Install the AIX skills once; every project then knows them.

terminal:

```bash
npx skills add https://aix.brambles.ai
```

1. Open Cascade and paste the prompt from the top of this page. The agent reads `aix-receive-intent`, wires your server and sends a sandbox test.
2. Watch the AIX console flip to Connected.
3. Create the production key in the console and set it as `AIX_RECEIVER_KEY` in production.

#### Any agent

Point it at the skill file. No install.

Any agent that can read a URL can follow the skill without installing anything.

prompt:

```text
Read https://aix.brambles.ai/api/aix/skills/receive-intent and follow its instructions. My sandbox key is in AIX_RECEIVER_KEY.
```

### Agent frameworks · AIX as tools in your agent

Agents built on these frameworks get the two AIX operations as tools, through the MCP server or defined in code, with the prompt rules that tell the model when to use them.

#### Vercel AI SDK

MCP client or two tool() definitions.

[Open the guide](https://www.brambles.ai/agentic-intent-exchange/docs/vercel-ai-sdk.md)

#### OpenAI Agents SDK

Python and TypeScript, MCP or function tools.

[Open the guide](https://www.brambles.ai/agentic-intent-exchange/docs/openai-agents-sdk.md)

#### LangChain

MCPAdapter or two @tool functions.

[Open the guide](https://www.brambles.ai/agentic-intent-exchange/docs/langchain.md)

#### Claude Agent SDK

An http MCP server block and allowedTools.

[Open the guide](https://www.brambles.ai/agentic-intent-exchange/docs/claude-agent-sdk.md)

### MCP clients · the exchange as tools

Use the same Streamable HTTP endpoint with browser OAuth or an existing bearer key. The key examples below bind one app; browser sign-in lets you select an app after consent.

#### Claude Code

One command, header from your environment.

A receiver key exposes the receiver operations as tools: `subscribe_intents`, `get_intent_context`, `pull_intent`, `claim_intent`, `redeem_handoff`, `acknowledge_delivery`, `delivery_status`, `report_outcome` and `get_activity`. With a sandbox key, `redeem_handoff` returns a free test delivery for any well-formed handoff id.

terminal:

```bash
claude mcp add --transport http aix https://aix.brambles.ai/api/aix/mcp \
  --header "Authorization: Bearer $AIX_RECEIVER_KEY"
```

#### Cursor

Project or global mcp.json.

A receiver key exposes the receiver operations as tools: `subscribe_intents`, `get_intent_context`, `pull_intent`, `claim_intent`, `redeem_handoff`, `acknowledge_delivery`, `delivery_status`, `report_outcome` and `get_activity`. With a sandbox key, `redeem_handoff` returns a free test delivery for any well-formed handoff id.

.cursor/mcp.json:

```json
{
  "mcpServers": {
    "aix": {
      "url": "https://aix.brambles.ai/api/aix/mcp",
      "headers": { "Authorization": "Bearer ${env:AIX_RECEIVER_KEY}" }
    }
  }
}
```

#### VS Code

Workspace mcp.json with a prompted secret.

A receiver key exposes the receiver operations as tools: `subscribe_intents`, `get_intent_context`, `pull_intent`, `claim_intent`, `redeem_handoff`, `acknowledge_delivery`, `delivery_status`, `report_outcome` and `get_activity`. With a sandbox key, `redeem_handoff` returns a free test delivery for any well-formed handoff id.

.vscode/mcp.json:

```json
{
  "inputs": [
    { "id": "aix-key", "type": "promptString", "password": true, "description": "AIX key" }
  ],
  "servers": {
    "aix": {
      "type": "http",
      "url": "https://aix.brambles.ai/api/aix/mcp",
      "headers": { "Authorization": "Bearer ${input:aix-key}" }
    }
  }
}
```

#### Codex

config.toml with a bearer token variable.

A receiver key exposes the receiver operations as tools: `subscribe_intents`, `get_intent_context`, `pull_intent`, `claim_intent`, `redeem_handoff`, `acknowledge_delivery`, `delivery_status`, `report_outcome` and `get_activity`. With a sandbox key, `redeem_handoff` returns a free test delivery for any well-formed handoff id.

~/.codex/config.toml:

```toml
[mcp_servers.aix]
url = "https://aix.brambles.ai/api/aix/mcp"
bearer_token_env_var = "AIX_RECEIVER_KEY"
```

#### Any MCP host

Streamable HTTP with a bearer header.

A receiver key exposes the receiver operations as tools: `subscribe_intents`, `get_intent_context`, `pull_intent`, `claim_intent`, `redeem_handoff`, `acknowledge_delivery`, `delivery_status`, `report_outcome` and `get_activity`. With a sandbox key, `redeem_handoff` returns a free test delivery for any well-formed handoff id. Self-serve keys are bearer tokens: send them as they are. For browser OAuth in a compatible client, add the same endpoint, sign in with your Brambles account through Clerk and call list_apps. App-scoped calls require app_id and default to environment test; choose live explicitly. Sending or receiving changes require additional consent and organization-admin access. See Protocols → MCP for the permissions and setup requirements. The key configuration below keeps its existing arguments.

mcp.json:

```json
{
  "mcpServers": {
    "aix": {
      "type": "http",
      "url": "https://aix.brambles.ai/api/aix/mcp",
      "headers": { "Authorization": "Bearer ${AIX_RECEIVER_KEY}" }
    }
  }
}
```

### From your server · HTTPS

Two calls with a three-second timeout. AIX must never slow down or break the shopper's experience.

#### Node / TypeScript

Next.js, Express, serverless.

Verify the raw body before parsing it, with the receiver secret from `GET /receiver/config`, then answer with `acknowledgment(envelope.reference, secret)` as the JSON body once the receipt is stored.

webhook.ts:

```typescript
import { createHmac, timingSafeEqual } from "node:crypto";

// Keyed with the hex-decoded receiver secret (its 32 bytes), never the hex string itself.
const sign = (secretHex: string, purpose: string, value: string) =>
  createHmac("sha256", Buffer.from(secretHex, "hex")).update(`${purpose}\n${value}`).digest("hex");

// header: x-aix-signature: t=<unix seconds>,v1=<hex>
export function verifyAixWebhook(rawBody: string, header: string, secretHex: string): boolean {
  const m = /^t=(\d{10}),v1=([a-f0-9]{64})$/.exec(header);
  if (!m || Math.abs(Number(m[1]) * 1000 - Date.now()) > 60_000) return false;
  const expected = sign(secretHex, "aix-webhook-v1", `${m[1]}.${rawBody}`);
  return timingSafeEqual(Buffer.from(expected, "hex"), Buffer.from(m[2], "hex"));
}

type Reference = { receipt_id: string; member_id: string; receipt_sha256: string; task_id: string; revision: number; expires_at: string };

// The signed acknowledgment: the webhook's response body, or the body of POST /deliveries/ack.
// The signature covers this exact JSON: these fields in this order, no whitespace.
export function acknowledgment(reference: Reference, secretHex: string,
  event: "verified" | "applied" = "verified",
  application: "none" | "agent_context_loaded" | "catalog_ranked" = "none") {
  const { receipt_id, member_id, receipt_sha256, task_id, revision, expires_at } = reference;
  const payload = {
    schema_version: "aix.delivery-ack.v1",
    reference: { receipt_id, member_id, receipt_sha256, task_id, revision, expires_at },
    event,
    application,
    occurred_at: new Date().toISOString(), // any RFC 3339 time with an offset
  };
  return { payload, signature: sign(secretHex, "aix-ack-v1", JSON.stringify(payload)) };
}
```

#### Python

FastAPI, Django, Flask.

Verify the raw body before parsing it, with the receiver secret from `GET /receiver/config`, then answer with `aix_acknowledgment(envelope["reference"], secret)` as the JSON body once the receipt is stored.

webhook.py:

```python
import hashlib
import hmac
import json
import re
import time
from datetime import datetime, timezone


# header: x-aix-signature: t=<unix seconds>,v1=<hex>
def verify_aix_webhook(raw_body: bytes, header: str, secret_hex: str) -> bool:
    m = re.fullmatch(r"t=(\d{10}),v1=([a-f0-9]{64})", header or "")
    if not m or abs(int(m[1]) - time.time()) > 60:
        return False
    message = b"aix-webhook-v1\n" + m[1].encode() + b"." + raw_body
    # Keyed with the hex-decoded receiver secret (its 32 bytes), never the hex string itself.
    expected = hmac.new(bytes.fromhex(secret_hex), message, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, m[2])


REFERENCE_FIELDS = ("receipt_id", "member_id", "receipt_sha256", "task_id", "revision", "expires_at")


# The signed acknowledgment: the webhook's response body, or the body of POST /deliveries/ack.
# The signature covers this exact JSON: these fields in this order, no whitespace.
def aix_acknowledgment(reference: dict, secret_hex: str, event: str = "verified", application: str = "none") -> dict:
    payload = {
        "schema_version": "aix.delivery-ack.v1",
        "reference": {field: reference[field] for field in REFERENCE_FIELDS},
        "event": event,
        "application": application,
        "occurred_at": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),  # any RFC 3339 time with an offset
    }
    message = b"aix-ack-v1\n" + json.dumps(payload, separators=(",", ":"), ensure_ascii=False).encode()
    signature = hmac.new(bytes.fromhex(secret_hex), message, hashlib.sha256).hexdigest()
    return {"payload": payload, "signature": signature}
```

#### curl

Try the sandbox from a terminal.

terminal:

```bash
# Your identity, issuer and receiver secret (server only)
curl https://aix.brambles.ai/api/aix/receiver/config \
  -H "Authorization: Bearer $AIX_RECEIVER_KEY"

# A free signed test delivery to your sandbox agent
curl -X POST https://aix.brambles.ai/api/aix/test-deliveries \
  -H "Authorization: Bearer $AIX_RECEIVER_KEY"
```

### What happens next

1. `/receiver/config` (GET): Your member id, issuer and receiver secret, from the server only. Sandbox and production stay separate.
2. `Webhook or pull` (POST): A signed delivery arrives at your endpoint with x-aix-signature, or you poll /deliveries.
3. `/deliveries/ack` (POST): Acknowledge verified after checking the signature, applied only after the brief reached your agent or ranked your catalog.
4. `?aix_receipt=` (URL): The shopper lands on your store with the receipt id on the URL, so your page can fetch its brief.

### What your server exchanges

A delivery is a signed envelope. Verify it, use the brief, then acknowledge only what actually happened.

Delivery:

```json
POST https://your-store.example.com/aix/webhook
x-aix-signature: t=1792692859,v1=9f3c…e1
x-aix-receipt-format: vc+sd-jwt

{
  "schema_version": "aix.delivery.v1",
  "reference": {
    "receipt_id": "aixdeliv_0123456789abcdef0123456789abcdef",
    "member_id": "aixapp_49356ce196553f361f44",
    "receipt_sha256": "922a33572acd28986b32c3b2213020d40dc793e5bf83e01d1672db1ea2bce4d1",
    "task_id": "task_c0ffee0123456789",
    "revision": 3,
    "expires_at": "2026-10-23T18:04:00.000Z"
  },
  "receipt": "eyJhbGciOiJFUzI1NiIsInR5cCI6InZjK3NkLWp3dCJ9…~…",
  "aix_member_id": "aixapp_49356ce196553f361f44",
  "delivered_at": "2026-10-22T18:04:03.000Z",
  "acknowledgment_url": "https://aix.brambles.ai/api/aix/deliveries/ack"
}
```

Agent context:

```json
{
  "reference": {
    "receipt_id": "aixdeliv_0123456789abcdef0123456789abcdef",
    "member_id": "aixapp_49356ce196553f361f44",
    "receipt_sha256": "922a33572acd28986b32c3b2213020d40dc793e5bf83e01d1672db1ea2bce4d1",
    "task_id": "task_c0ffee0123456789",
    "revision": 3,
    "expires_at": "2026-10-23T18:04:00.000Z"
  },
  "schema_version": "aix.agent-context.v1",
  "brief": "Lightweight hard-shell carry-on for two weeks in Japan; under $200; navy preferred.",
  "shopping_context": {
    "schema_version": "aix.shopping-context.v1",
    "task_id": "task_c0ffee0123456789",
    "revision": 3,
    "started_turn": 1,
    "category": { "id": "carry-on-luggage", "label": "Carry-on luggage" },
    "summary": "Lightweight hard-shell carry-on for two weeks in Japan; under $200; navy preferred.",
    "budget": { "status": "specified", "currency": "USD", "min_cents": null, "max_cents": 20000, "source_turn": 1, "observed_at": "2026-10-22T18:01:00.000Z" },
    "facts": [
      { "attribute": "feature", "value": "hard shell", "strength": "required", "provenance": { "source_turn": 1, "observed_at": "2026-10-22T18:01:00.000Z", "basis": "extracted_shopping_requirement" } },
      { "attribute": "feature", "value": "navy", "strength": "preferred", "provenance": { "source_turn": 3, "observed_at": "2026-10-22T18:03:00.000Z", "basis": "extracted_shopping_requirement" } }
    ],
    "updated_at": "2026-10-22T18:03:00.000Z",
    "expires_at": "2026-10-23T18:03:00.000Z",
    "policy": { "scope": "exchange_beta", "allowed_uses": ["onsite_personalization", "agent_continuity", "contextual_product_ranking"], "cross_site_retargeting": false, "model_training": false },
    "relevance": { "method": "explicit_constraints", "embedding_available": false, "semantic_score": null }
  },
  "activation": { "task_id": "task_c0ffee0123456789", "revision": 3, "category": { … }, "filters": [ … ], "boosts": [ … ], "exclude": [ … ], "price": { "currency": "USD", "min_cents": null, "max_cents": 20000 }, "agent_brief": "…", "ucp_catalog_context": { … }, "permitted_uses": [ … ], "measurement": { … } },
  "events": [
    { "id": "aixevt_…", "receipt_id": "aixdeliv_0123456789abcdef0123456789abcdef", "event_type": "verified", "application": "none", "occurred_at": "2026-10-22T18:05:12.000Z", "recorded_at": "2026-10-22T18:05:12.400Z" }
  ]
}
```

Acknowledge:

```json
{
  "payload": {
    "schema_version": "aix.delivery-ack.v1",
    "reference": {
      "receipt_id": "aixdeliv_0123456789abcdef0123456789abcdef",
      "member_id": "aixapp_49356ce196553f361f44",
      "receipt_sha256": "922a33572acd28986b32c3b2213020d40dc793e5bf83e01d1672db1ea2bce4d1",
      "task_id": "task_c0ffee0123456789",
      "revision": 3,
      "expires_at": "2026-10-23T18:04:00.000Z"
    },
    "event": "verified",
    "application": "none",
    "occurred_at": "2026-10-22T18:05:12.000Z"
  },
  "signature": "<64 hex>"
}
```

### Endpoints

Base URL `https://aix.brambles.ai/api/aix`. Every request carries `Authorization: Bearer <key>`. Sandbox keys start with `aix_test_`, production keys with `aix_live_`.

- [GET /activity](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#activity): Your own activity for the last N days.
- [GET /receiver/config](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#receiver-config): Member id, issuer, derived receiver secret and acknowledgment URL. Server only.
- [GET /deliveries](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#deliveries): Poll your recent deliveries (pull mode).
- [GET /deliveries/{receipt_id}](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#delivery): Verified agent context and recorded events for one receipt.
- [POST /deliveries/ack](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#deliveries-ack): Submit a signed verified or applied acknowledgment.
- [POST /deliveries/{receipt_id}/outcome](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#deliveries-outcome): Report a sale, or no sale, after a delivery you verified.
- [POST /handoffs/{handoff_id}/redeem](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#handoff-redeem): Redeem an AIX handoff id that reached your store: from the shopper's landing, with the visitor, or from an agent's completed order.
- [POST /landing](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#landing): What the AIX tag calls when a shopper lands with ?aix=: it claims the handoff for your site.
- [POST /test-deliveries](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#test-deliveries): Send your sandbox receiving agent a free, signed test delivery.
- [MCP /mcp](https://www.brambles.ai/agentic-intent-exchange/docs/reference.md#mcp): A receiver key exposes the receiver operations as tools: `subscribe_intents`, `get_intent_context`, `pull_intent`, `claim_intent`, `redeem_handoff`, `acknowledge_delivery`, `delivery_status`, `report_outcome` and `get_activity`. With a sandbox key, `redeem_handoff` returns a free test delivery for any well-formed handoff id.

## Protocols

Which agent and commerce protocols work with AIX: [Protocols](https://www.brambles.ai/agentic-intent-exchange/docs/protocols.md).
