{"uid":"cap_sETYRaHkgHEzFQtz31CPR","slug":"profitcollect-code-quality-digest-32d9233f","name":"ProfitCollect Code Quality Digest","description":"Purchase: ProfitCollect Code Quality Digest","url":"https://api.the402.ai/v1/services/svc_06debac3ab464bd0/purchase","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object","properties":{"job_id":{"type":"string"},"status":{"type":"string"},"thread_id":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.525","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":"$0.525/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.525","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.525","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PTo7UTgJs_JhxRzJS5DOO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.525","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases and initiates a code quality digest report via the ProfitCollect service, returning a job ID and status for async retrieval.","exampleAgentPrompt":"Can you run a ProfitCollect Code Quality Digest on my project and give me a full breakdown of code quality issues and health metrics?","exampleUseCases":[{"title":"Audit codebase before major release","prompt":"Before we ship this release, can you run a code quality digest on our repository and give me a summary of any health issues or problem areas I should know about?"},{"title":"Identify technical debt in project","prompt":"I want to get a high-level digest of the technical debt and quality problems in my codebase — can you kick off a ProfitCollect Code Quality Digest and walk me through the findings?"},{"title":"Compare code quality across sprints","prompt":"Can you generate a code quality digest report for my project so I can see how our code health has changed since the last sprint and spot any new issues that crept in?"}],"resultDescription":"Returns a JSON object with a job_id (string identifying the async job), a status (string indicating current processing state), and a thread_id (string for tracking the analysis thread). The digest itself is retrieved asynchronously using the job_id.","failureModes":["Payment failure or insufficient USDC balance — purchase rejected with payment error","Invalid or missing target code input — job not created, error status returned","Service unavailable or capacity issue — no job_id returned","Async job failure — job_id returned but status indicates error on polling","Malformed request body — 4xx error with no job created"],"whenToPreferThis":"Choose this endpoint when you need an automated, AI-generated digest summarizing the quality of a codebase, particularly when you want a structured async report via the the402.ai marketplace. Prefer this over generic linting tools when you want a high-level digest narrative rather than raw lint output, and when operating within an x402 micropayment-enabled agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T19:25:48.939Z","isFirstParty":false}