# Aient Environment Ingest Key Mint

> Aient Environment Ingest Key Mint is a paid API for AI agents from aient.ai, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Mints a new publishable OpenTelemetry ingest key for an Aient environment, returned once for immediate storage.

## Facts

- Endpoint: POST https://aient.ai/x402/environments/keys
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aient-ai-a6a2b040
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sxy023XpTuppJ-ZLWADJ1

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 aient-ai-a6a2b040 -d '<json body>'
```

Example prompt: Mint a new Aient ingest key for my production environment so I can wire up @aient/otel — make sure to save the key value since it's only returned once.

## When to prefer this

Use this endpoint when you need to provision a new OpenTelemetry ingest key for connecting a service to Aient via @aient/otel. This is the correct endpoint when setting up instrumentation for a new service or rotating an existing key. Prefer this over the onboarding endpoint when the organization is already provisioned and you only need a fresh ingest key.

## Known failure modes

- Invalid or expired session token — 401 Unauthorized
- Environment not found or not provisioned for the organization — 404 Not Found
- Payment of 0.1 USDC not completed or insufficient balance — 402 Payment Required
- Rate limit exceeded for key creation — 429 Too Many Requests
- Organization not yet onboarded — 403 Forbidden

## How this service works

Mint a new publishable ingest key for an Aient environment so an agent can wire `@aient/otel` into a service it just instrumented. Returns the key value once — store it.

## Output

Returns the newly generated publishable ingest key value exactly once in the response body. The key is used to authenticate telemetry ingestion via @aient/otel into the specified Aient environment. It must be stored immediately as it cannot be retrieved again.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "label": {
   "type": "string"
  },
  "environmentId": {
   "type": "string",
   "format": "uuid"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aient-ai-a6a2b040/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aient.ai](https://www.zero.xyz/host/aient.ai/llms.txt)
