# Mint Buyer Link Code

> Mint Buyer Link Code is a paid API for AI agents from inbox.withzero.xyz, paid per call via MPP, metered — billed by usage, status unknown (last checked 2026-09-15, last successful call 2026-07-29).

Generates a short-lived (10-minute), single-use code that allows another purchasing channel to be linked to the current buyer account.

## Facts

- Endpoint: POST https://inbox.withzero.xyz/api/v1/buyer/link-codes
- Price: metered — billed by usage
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-07-29
- Success rate: 100% of calls made through Zero
- Activations on Zero: 3
- Provider: inbox.withzero.xyz
- Website: https://inbox.withzero.xyz
- Canonical page: https://www.zero.xyz/c/inbox-withzero-xyz-mint-buyer-link-code-dea4dd5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RPdUx9WIkitN6aRVHH_Bk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability inbox-withzero-xyz-mint-buyer-link-code-dea4dd5e -d '<json body>'
```

Example prompt: Generate a single-use link code so I can connect my email purchasing channel to my existing inbox.withzero.xyz buyer account — the code should be fresh and ready to present on the other channel.

## When to prefer this

Use this endpoint when an agent or user needs to associate a new purchasing channel (e.g. email, another wallet, a different app) with an already-established buyer account on inbox.withzero.xyz. This is the minting side of the two-step link flow — call this first, then present the returned code on the other channel via the complementary 'present link code' endpoint.

## Known failure modes

- Authentication failure — invalid or missing signed proof credential returns 401
- Buyer account not provisioned — if no inbox/buyer account exists yet, returns 404 or error
- Rate limiting — too many codes minted in a short window may return 429
- Expired or malformed request body returns 400

## How this service works

Mint a single-use code (10 min) that links another purchasing channel to this buyer account. 📖 Full guide: https://inbox.withzero.xyz/llms.txt

## Output

Returns a JSON object containing: a single-use `code` string (valid for 10 minutes), the `expires_at` timestamp indicating when the code expires, and the `buyer_id` identifying the buyer account the code is tied to. The code can then be presented on another channel to merge it into this buyer account.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {},
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "code",
  "expires_at",
  "buyer_id"
 ],
 "properties": {
  "code": {
   "type": "string"
  },
  "buyer_id": {
   "type": "string"
  },
  "expires_at": {
   "type": "string"
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/inbox-withzero-xyz-mint-buyer-link-code-dea4dd5e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from inbox.withzero.xyz](https://www.zero.xyz/host/inbox.withzero.xyz/llms.txt)
