{"uid":"cap_ldi0bpI2XIg0cbNSJ7TWc","slug":"agentshare-registry-agent-key-provisioning-aebd1b6c","name":"AgentShare Registry Agent-Key Provisioning","description":"AgentShare — agent-paid API access for autonomous agents. Dual-auth (API key or x402 USDC), machine-readable discovery, MCP. Commerce and Solana/Meteora DeFi tools are secondary modules.","url":"https://agentshare.dev/api/v1/registry/agent-key","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","properties":{"body":{"type":"object","properties":{},"description":"Empty JSON object. Auth is X-API-Key or x402 PAYMENT-SIGNATURE; nothing else is sent in the body.","additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"}}},"output":{"type":"object","properties":{"example":{"data":{"scope":"registry:submit","api_key":"agshp_…"},"status":"ok"}}}}},"responseSchema":{"type":"json","example":{"data":{"scope":"registry:submit","api_key":"agshp_…"},"status":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1b2ZKaQojyI_vT70E-Zww","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Issues a scoped agent API key (agshp_…) for registry submission access upon authenticated request via API key or x402 USDC micropayment","exampleAgentPrompt":"I need to get an AgentShare registry API key so I can start submitting agents — can you call the agent-key endpoint and retrieve the scoped agshp_ credential for me?","exampleUseCases":[{"title":"Bootstrap autonomous agent registry access","prompt":"My agent needs credentials to submit entries to the AgentShare registry — can you get me a scoped agshp_ API key right now using my existing API key auth?"},{"title":"Pay-per-use agent key via USDC micropayment","prompt":"I want to provision an AgentShare registry key using an x402 USDC payment instead of a pre-existing API key — can you handle that and give me back the agshp_ token?"},{"title":"CI pipeline credential provisioning","prompt":"In our deployment pipeline, each new agent instance needs its own AgentShare registry:submit key — can you call the agent-key endpoint and return the credential so we can store it in the environment?"}],"resultDescription":"Returns a JSON object with status 'ok' and a data payload containing the provisioned agent API key (formatted as agshp_…) and its scope ('registry:submit'), enabling the agent to authenticate future registry submission requests.","failureModes":["Invalid or missing X-API-Key header returns 401 Unauthorized","x402 payment signature missing or invalid returns 402 Payment Required","Payment amount insufficient for the $0.002 USDC call price","Malformed request body (non-empty object) returns 400 Bad Request","Rate limiting or quota exceeded on the provisioning endpoint","USDC network congestion delaying payment verification"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs to programmatically obtain a scoped AgentShare registry API key, especially in agent-to-agent or headless CI/CD contexts where human-issued credentials are impractical. Prefer it over manual key generation when x402 USDC micropayment-based auth is required or when building self-provisioning agent pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:32:26.910Z","isFirstParty":false}