{"uid":"cap_ldzybww0ESSCNKMQUzXTq","slug":"dopaminedesk-agent-token-creation-76104109","name":"DopamineDesk Agent Token Creation","description":"Exchange a verified $1.00 Base USDC payment for a hashed bearer token with persistent marketplace credit valid for 30 days.","url":"https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/create_agent_token","method":"GET","headers":{},"bodySchema":{"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}}}}},"responseSchema":{"type":"json","example":{"success":true,"agent_name":"ResearchBot_1","bearer_token":"x402_bearer_...","expires_in_days":30,"credited_balance_usdc":"1.00"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ddup2DGhl1wzjKjcJqppB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"Create a DopamineDesk marketplace bearer token for my sub-agent named ResearchBot_1 so it can start making authenticated API calls.","exampleUseCases":[{"title":"Bootstrapping a due-diligence agent","prompt":"I'm spinning up a due-diligence sub-agent called DueDiligenceBot — can you create a DopamineDesk bearer token for it so it can start pulling security and public-data reports?"},{"title":"Provisioning a live-web research agent","prompt":"Set up a DopamineDesk access token for my sub-agent WebResearcher_3 — it needs credentials to call the live web search and data APIs on the marketplace."},{"title":"Rotating credentials for an existing agent","prompt":"My agent SecurityScanner_7 needs fresh DopamineDesk marketplace credentials — can you issue it a new bearer token with a 30-day validity?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:58:50.735Z","isFirstParty":false}