# DopamineDesk Agent Token Creation

> DopamineDesk Agent Token Creation is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $1/call, status unknown (last checked 2026-09-15).

Creates a named bearer token for a sub-agent to authenticate against the DopamineDesk x402 marketplace, granting $1 USDC of credited balance valid for 30 days.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/create_agent_token
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-agent-token-creation-76104109
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ldzybww0ESSCNKMQUzXTq

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 dopaminedesk-agent-token-creation-76104109
```

Example prompt: Create a DopamineDesk marketplace bearer token for my sub-agent named ResearchBot_1 so it can start making authenticated API calls.

## When to prefer this

Use this endpoint when you need to provision named, scoped bearer tokens for sub-agents that will independently call DopamineDesk's 69 security, due-diligence, and public-data APIs. Prefer this over generic API key systems when you want per-agent identity tracking with USDC-settled x402 payments on Base and a short-lived 30-day credential lifecycle.

## Known failure modes

- Missing or empty agent_name field returns a validation error
- Payment failure via x402 USDC settlement on Base results in no token being issued
- Duplicate agent_name may return a conflict or overwrite depending on server policy
- Network or cloud run cold-start latency may cause timeouts
- Invalid x402 payment headers result in 402 Payment Required responses

## How this service works

Exchange a verified $1.00 Base USDC payment for a hashed bearer token with persistent marketplace credit valid for 30 days.

## Output

Returns a JSON object containing: success (boolean), agent_name (the identifier provided), bearer_token (an x402_bearer_... string for use in subsequent API calls), expires_in_days (30), and credited_balance_usdc (1.00 USDC pre-loaded for API consumption).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "agent_name": {
       "type": "string",
       "description": "Identifier for the sub-agent."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "agent_name",
      "bearer_token",
      "credited_balance_usdc",
      "expires_in_days"
     ],
     "properties": {
      "success": {
       "type": "boolean"
      },
      "agent_name": {
       "type": "string"
      },
      "bearer_token": {
       "type": "string"
      },
      "expires_in_days": {
       "type": "integer"
      },
      "credited_balance_usdc": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "success": true,
  "agent_name": "ResearchBot_1",
  "bearer_token": "x402_bearer_...",
  "expires_in_days": 30,
  "credited_balance_usdc": "1.00"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-agent-token-creation-76104109/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
