# agents.gedx402.com – Create Agent Session

> agents.gedx402.com – Create Agent Session is a paid API for AI agents from agents.gedx402.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Creates a new AI agent session via x402 micropayment (USDC), returning a session ID and message URL for subsequent interactions

## Facts

- Endpoint: GET https://agents.gedx402.com/v1/agents/sessions
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agents-gedx402-com-create-agent-session-ed132d71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WnrswHQvXsbudQutiGFHN

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 agents-gedx402-com-create-agent-session-ed132d71
```

Example prompt: Start a new AI agent session on gedx402, using the namespace 'myproject' so the agent can remember context across turns — I'll pay with USDC on Base.

## When to prefer this

Use this endpoint when you need to start a stateful AI agent session without traditional API keys, paying per-call with USDC via x402 micropayment protocol. Prefer this over standard LLM APIs when operating in a trustless, keyless crypto-payment environment or when you need namespaced agent memory across conversation turns.

## Known failure modes

- Payment not received or x402 payment header missing — returns 402 Payment Required
- Invalid or malformed namespace string — may return 400 Bad Request
- Session creation timeout on Workers AI backend — may return 503
- Unsupported payment chain — returns error if chain not in Base/Polygon/Arbitrum/World/Solana set

## How this service works

Hosted agent session — pay per turn on Durable Objects. Omitted from default shard OpenAPI (jobs/agents/d1); use GET /v1/models?shard=agents.

## Output

A JSON object containing a unique session_id (UUID) and a message_url (HTTPS endpoint) that the agent can use to send follow-up messages to this session.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "namespace": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "session_id": "550e8400-e29b-41d4-a716-446655440000",
  "message_url": "https://agents.gedx402.com/v1/agents/sessions/550e8400-e29b-41d4-a716-446655440000/message"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-gedx402-com-create-agent-session-ed132d71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.gedx402.com](https://www.zero.xyz/host/agents.gedx402.com/llms.txt)
