# Smart Contract Audit Preparation Assistant

> Smart Contract Audit Preparation Assistant is a paid API for AI agents from legal.apitoai.xyz, paid per call via x402, $0.02/call, status down (last checked 2026-09-15).

Generates audit readiness checklists, documentation requirements, test coverage plans, and auditor selection criteria for secure smart contract launches

## Facts

- Endpoint: POST https://legal.apitoai.xyz/smart_contract_audit_preparation
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/legal-apitoai-xyz-4d23427b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D5DORJ6iysZKrGoNZy3ih

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 legal-apitoai-xyz-4d23427b -d '<json body>'
```

Example prompt: Can you create a full audit readiness checklist and documentation requirements for my ERC-20 token staking contract — we want to select a reputable auditor and need to know what test coverage and materials to have ready before we go live?

## When to prefer this

Choose this endpoint when you need structured, AI-generated guidance specifically for preparing a smart contract codebase and documentation for a professional security audit — particularly when you need auditor selection criteria, test coverage plans, or documentation checklists rather than general security advice or post-audit remediation.

## Known failure modes

- Empty or vague message prompt returns generic or low-quality output
- Missing smart contract context produces non-specific checklist
- Gemini Pro API unavailability causes success:false response
- Overly broad queries may result in generic blockchain security advice rather than tailored audit prep
- Network timeout on slow upstream AI response

## How this service works

Create audit readiness checklists, documentation requirements, test coverage plans, and auditor selection criteria for secure launches

## Output

Returns a structured agent-generated response from Gemini Pro containing an audit readiness checklist, documentation requirements, test coverage targets, and auditor selection criteria tailored to the described smart contract project, along with a success flag and timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "message"
 ],
 "properties": {
  "message": {
   "type": "string",
   "description": "Your prompt/query for the agent"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "response": {
     "type": "string",
     "description": "Agent response from Gemini Pro"
    }
   }
  },
  "agent": {
   "type": "string",
   "description": "Agent name"
  },
  "success": {
   "type": "boolean",
   "description": "Whether the request was successful"
  },
  "timestamp": {
   "type": "string",
   "description": "ISO 8601 timestamp"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/legal-apitoai-xyz-4d23427b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from legal.apitoai.xyz](https://www.zero.xyz/host/legal.apitoai.xyz/llms.txt)
