{
  "openapi": "3.1.0",
  "info": {
    "title": "Dizo API",
    "version": "1.0.0",
    "description": "People, company, email and phone data APIs and an MCP server built for AI agents. Pay as you go: credits get cheaper the more you buy, with auto-refill and monthly spend caps. Agent instructions: https://dizo.ai/llms.txt",
    "contact": {
      "email": "support@dizo.ai"
    }
  },
  "servers": [
    {
      "url": "https://api.dizo.ai/v1"
    }
  ],
  "security": [
    {
      "bearer": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "dz_live_... or dz_test_..."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "retryable"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_request",
                  "invalid_api_key",
                  "insufficient_credits",
                  "monthly_cap_reached",
                  "budget_exceeded",
                  "request_budget_exceeded",
                  "ip_not_allowed",
                  "scope_denied",
                  "not_found",
                  "idempotency_conflict",
                  "rate_limited",
                  "internal_error"
                ]
              },
              "message": {
                "type": "string"
              },
              "fix": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "retry_after": {
                "type": "number"
              },
              "param": {
                "type": "string"
              },
              "docs": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "responses": {
      "Error": {
        "description": "Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/search": {
      "post": {
        "operationId": "search",
        "summary": "Natural-language search",
        "description": "Describe the people or companies you want in plain English and get matching records back. Dizo turns the query into structured filters, returns them in `interpreted` so you can check the translation, and runs the search. This is the best default for agents: no filter vocabulary to learn. Ask for `include: [\"email\",\"phone\"]` to get contact data in the same call (billed at email and phone rates, only when found).\n\nCost: 1 credit / 25 results (per result returned).",
        "tags": [
          "Search"
        ],
        "x-dizo-cost": {
          "credits": 0.04,
          "label": "1 credit / 25 results",
          "charged_when": "Per result returned"
        },
        "x-mcp-tool": "dizo_search",
        "externalDocs": {
          "url": "https://dizo.ai/docs/search"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "interpreted": {
                    "seniority": [
                      "vp"
                    ],
                    "department": [
                      "sales"
                    ],
                    "industry": [
                      "fintech"
                    ],
                    "country": [
                      "US"
                    ],
                    "employees": {
                      "min": 200,
                      "max": 1000
                    }
                  },
                  "total": 4182,
                  "people": [
                    {
                      "id": "per_9fK2",
                      "name": "Maya Okafor",
                      "title": "VP, Revenue Operations",
                      "company": {
                        "name": "Ledgerline",
                        "domain": "ledgerline.io"
                      },
                      "email": {
                        "address": "maya@ledgerline.io",
                        "status": "verified"
                      }
                    }
                  ],
                  "next_cursor": "c_2a",
                  "credits_used": 26
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "description": "string. Plain-English description, e.g. \"VP of Sales at US fintech companies, 200-1000 employees\"."
                  },
                  "type": {
                    "description": "\"people\" | \"companies\". Defaults to people."
                  },
                  "include": {
                    "description": "string[]. \"email\" and/or \"phone\" to also find contact data."
                  },
                  "limit": {
                    "description": "integer. 1-1000, default 25."
                  },
                  "cursor": {
                    "description": "string. next_cursor from the previous page."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "query": "VP of Sales at US fintech companies, 200-1000 employees",
                "type": "people",
                "include": [
                  "email"
                ],
                "limit": 25,
                "max_credits": 60
              }
            }
          }
        }
      }
    },
    "/people/search": {
      "post": {
        "operationId": "peopleSearch",
        "summary": "People search",
        "description": "Find professionals with structured filters: title, seniority, department, location, company size, industry and tech stack. Every filter accepts an array (OR within a field, AND across fields). Paginate with `cursor`. Seniority values: `c_suite`, `vp`, `director`, `manager`, `ic`.\n\nCost: 1 credit / 25 results (per result returned).",
        "tags": [
          "Search"
        ],
        "x-dizo-cost": {
          "credits": 0.04,
          "label": "1 credit / 25 results",
          "charged_when": "Per result returned"
        },
        "x-mcp-tool": "dizo_people_search",
        "externalDocs": {
          "url": "https://dizo.ai/docs/people-search"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "total": 12904,
                  "people": [
                    "…100 people…"
                  ],
                  "next_cursor": "c_91",
                  "credits_used": 4
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "filters.title": {
                    "description": "string[]. Fuzzy job-title match."
                  },
                  "filters.seniority": {
                    "description": "string[]. c_suite, vp, director, manager, ic."
                  },
                  "filters.department": {
                    "description": "string[]. sales, marketing, engineering, finance, hr, operations, ..."
                  },
                  "filters.country": {
                    "description": "string[]. ISO country codes; state and city names."
                  },
                  "state": {
                    "description": "string[]. ISO country codes; state and city names."
                  },
                  "city": {
                    "description": "string[]. ISO country codes; state and city names."
                  },
                  "filters.company_domain": {
                    "description": "string[]. Limit to these companies."
                  },
                  "filters.industry": {
                    "description": "string[]. Industry slugs."
                  },
                  "filters.employees": {
                    "description": "{min,max}. Company size ranges."
                  },
                  "revenue": {
                    "description": "{min,max}. Company size ranges."
                  },
                  "filters.technologies": {
                    "description": "string[]. Company uses these technologies."
                  },
                  "filters.has_email": {
                    "description": "boolean. Only people we have contact data for."
                  },
                  "has_phone": {
                    "description": "boolean. Only people we have contact data for."
                  },
                  "filters.changed_jobs_within_days": {
                    "description": "integer. Recently changed jobs."
                  },
                  "limit": {
                    "description": "integer, string. Pagination."
                  },
                  "cursor": {
                    "description": "integer, string. Pagination."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "filters": {
                  "title": [
                    "head of growth",
                    "vp marketing"
                  ],
                  "seniority": [
                    "vp",
                    "director"
                  ],
                  "country": [
                    "US",
                    "CA"
                  ],
                  "employees": {
                    "min": 50,
                    "max": 500
                  },
                  "technologies": [
                    "hubspot"
                  ]
                },
                "limit": 100
              }
            }
          }
        }
      }
    },
    "/companies/search": {
      "post": {
        "operationId": "companySearch",
        "summary": "Company search",
        "description": "Find accounts by industry, headcount, revenue, location, growth, funding and technologies used. Use `similar_to` with a domain to find lookalike companies. Results include basic firmographics; call company enrich for the full profile.\n\nCost: 1 credit / 25 results (per result returned).",
        "tags": [
          "Search"
        ],
        "x-dizo-cost": {
          "credits": 0.04,
          "label": "1 credit / 25 results",
          "charged_when": "Per result returned"
        },
        "x-mcp-tool": "dizo_company_search",
        "externalDocs": {
          "url": "https://dizo.ai/docs/company-search"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "total": 3310,
                  "companies": [
                    {
                      "domain": "ledgerline.io",
                      "name": "Ledgerline",
                      "employees": 420,
                      "industry": "fintech"
                    }
                  ],
                  "credits_used": 2
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "filters.industry": {
                    "description": "string[]. Industry slugs."
                  },
                  "filters.employees": {
                    "description": "{min,max}. Size ranges."
                  },
                  "revenue": {
                    "description": "{min,max}. Size ranges."
                  },
                  "filters.country": {
                    "description": "string[]. HQ country."
                  },
                  "filters.technologies": {
                    "description": "string[]. Uses these technologies."
                  },
                  "filters.founded": {
                    "description": "range / string[]. Age and funding."
                  },
                  "funding_stage": {
                    "description": "range / string[]. Age and funding."
                  },
                  "filters.headcount_growth_pct": {
                    "description": "{min,max}. 12-month headcount growth."
                  },
                  "filters.similar_to": {
                    "description": "string. Domain to find lookalikes of."
                  },
                  "limit": {
                    "description": "integer, string. Pagination."
                  },
                  "cursor": {
                    "description": "integer, string. Pagination."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "filters": {
                  "industry": [
                    "saas"
                  ],
                  "employees": {
                    "min": 100,
                    "max": 1000
                  },
                  "country": [
                    "US"
                  ],
                  "technologies": [
                    "salesforce"
                  ]
                },
                "limit": 50
              }
            }
          }
        }
      }
    },
    "/count": {
      "post": {
        "operationId": "count",
        "summary": "Count (TAM)",
        "description": "How many people or companies match? Free counts for sizing a market, splitting territories and budgeting a job before you buy anything. Takes the same `query` or `filters` as search and returns totals plus breakdowns, with `has_email` and `has_phone` counts so you can forecast cost. Free, limited to 5 requests per second per key.\n\nCost: Free (never).",
        "tags": [
          "Search"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "x-mcp-tool": "dizo_count",
        "externalDocs": {
          "url": "https://dizo.ai/docs/count"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "total": 6214,
                  "has_email": 5320,
                  "has_phone": 3871,
                  "breakdown": {
                    "seniority": {
                      "director": 3102,
                      "vp": 1188,
                      "c_suite": 641,
                      "manager": 1283
                    },
                    "state": {
                      "CA": 702,
                      "TX": 611,
                      "NY": 540,
                      "…": "…"
                    }
                  },
                  "credits_used": 0
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query | filters": {
                    "description": "string | object. Plain English, or the same filters as people/company search."
                  },
                  "type": {
                    "description": "\"people\" | \"companies\". Defaults to people."
                  },
                  "breakdown": {
                    "description": "string[]. Any of country, seniority, department, industry, employees."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "query": "Heads of IT at US hospitals with 500+ employees",
                "breakdown": [
                  "seniority",
                  "state"
                ]
              }
            }
          }
        }
      }
    },
    "/people/best-match": {
      "post": {
        "operationId": "bestMatch",
        "summary": "Decision-maker finder",
        "description": "Give a list of companies and a ranked list of titles. Get back the best person at each company, falling through your titles in order. A waterfall over titles: for each domain Dizo tries `titles[0]`, then `titles[1]`, and so on, returning up to `per_company` people. Add `include: [\"email\"]` to get verified emails in the same call. Up to 1,000 domains per request.\n\nCost: 1 credit / 25 people (per person returned).",
        "tags": [
          "Search"
        ],
        "x-dizo-cost": {
          "credits": 0.04,
          "label": "1 credit / 25 people",
          "charged_when": "Per person returned"
        },
        "x-mcp-tool": "dizo_best_contact",
        "externalDocs": {
          "url": "https://dizo.ai/docs/best-match"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "results": [
                    {
                      "domain": "ledgerline.io",
                      "matched_title_rank": 2,
                      "person": {
                        "id": "per_3Lm1",
                        "name": "Dev Raman",
                        "title": "VP Sales",
                        "email": {
                          "address": "dev@ledgerline.io",
                          "status": "verified"
                        }
                      }
                    },
                    {
                      "domain": "paystream.com",
                      "matched_title_rank": 1,
                      "person": {
                        "id": "per_8Qa4",
                        "name": "Ines Duarte",
                        "title": "Chief Revenue Officer",
                        "email": {
                          "address": "ines@paystream.com",
                          "status": "verified"
                        }
                      }
                    }
                  ],
                  "credits_used": 2.08
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domains": {
                    "description": "string[]. Up to 1,000 company domains."
                  },
                  "titles": {
                    "description": "string[]. Ranked, most-wanted first, e.g. [\"CRO\",\"VP Sales\",\"Head of Sales\"]."
                  },
                  "per_company": {
                    "description": "integer. 1-10, default 1."
                  },
                  "include": {
                    "description": "string[]. \"email\" and/or \"phone\"."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "domains": [
                  "ledgerline.io",
                  "paystream.com"
                ],
                "titles": [
                  "Chief Revenue Officer",
                  "VP Sales",
                  "Head of Sales"
                ],
                "per_company": 1,
                "include": [
                  "email"
                ]
              }
            }
          }
        }
      }
    },
    "/companies/{domain}/people": {
      "get": {
        "operationId": "orgChart",
        "summary": "Org chart",
        "description": "Everyone we know at a company, grouped by department and seniority. Find the buying committee in one call. Query parameters filter the list. Combine with email finder in a batch to get contact data for the whole committee.\n\nCost: 1 credit / 25 results (per result returned).",
        "tags": [
          "Search"
        ],
        "x-dizo-cost": {
          "credits": 0.04,
          "label": "1 credit / 25 results",
          "charged_when": "Per result returned"
        },
        "x-mcp-tool": "dizo_org_chart",
        "externalDocs": {
          "url": "https://dizo.ai/docs/org-chart"
        },
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "domain": "ledgerline.io",
                  "total": 212,
                  "groups": {
                    "sales": {
                      "vp": 2,
                      "director": 5,
                      "manager": 11,
                      "ic": 38
                    }
                  },
                  "people": [
                    "…"
                  ],
                  "credits_used": 1
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email/find": {
      "post": {
        "operationId": "emailFind",
        "summary": "Email finder",
        "description": "Name and company, or a profile URL, in. A work email verified in real time out. Every result is checked against the receiving mail server at request time. `status` is `verified` or `catch_all` (both charged). Anything else returns `404 not_found` and costs nothing.\n\nCost: 1 credit (only if found).",
        "tags": [
          "Lookup"
        ],
        "x-dizo-cost": {
          "credits": 1,
          "label": "1 credit",
          "charged_when": "Only if found"
        },
        "x-mcp-tool": "dizo_find_email",
        "externalDocs": {
          "url": "https://dizo.ai/docs/email-find"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "email": {
                    "address": "maya@ledgerline.io",
                    "status": "verified",
                    "checked_at": "2026-11-22T14:03:11Z"
                  },
                  "person_id": "per_9fK2",
                  "confidence": 0.97,
                  "credits_used": 1
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "first_name": {
                    "description": "string. Person name. Use with company_domain or company_name."
                  },
                  "last_name": {
                    "description": "string. Person name. Use with company_domain or company_name."
                  },
                  "company_domain": {
                    "description": "string. e.g. ledgerline.io (preferred over company_name)."
                  },
                  "company_name": {
                    "description": "string. Company name if the domain is unknown."
                  },
                  "profile_url": {
                    "description": "string. A public professional profile URL."
                  },
                  "person_id": {
                    "description": "string. A Dizo person id from a previous search."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "first_name": "Maya",
                "last_name": "Okafor",
                "company_domain": "ledgerline.io"
              }
            }
          }
        }
      }
    },
    "/phone/find": {
      "post": {
        "operationId": "phoneFind",
        "summary": "Phone finder",
        "description": "Mobile and direct-dial numbers with line type, carrier and Do Not Call flags. Numbers are returned in E.164 format. Set `types: [\"mobile\"]` to only pay for mobile numbers. The `dnc` flag reflects the US National Do Not Call Registry.\n\nCost: 10 credits (only if found).",
        "tags": [
          "Lookup"
        ],
        "x-dizo-cost": {
          "credits": 10,
          "label": "10 credits",
          "charged_when": "Only if found"
        },
        "x-mcp-tool": "dizo_find_phone",
        "externalDocs": {
          "url": "https://dizo.ai/docs/phone-find"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "phones": [
                    {
                      "number": "+14155550142",
                      "type": "mobile",
                      "carrier": "Verizon",
                      "dnc": false,
                      "confidence": 0.91
                    }
                  ],
                  "credits_used": 10
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "first_name": {
                    "description": "string. Person name. Use with company_domain or company_name."
                  },
                  "last_name": {
                    "description": "string. Person name. Use with company_domain or company_name."
                  },
                  "company_domain": {
                    "description": "string. e.g. ledgerline.io (preferred over company_name)."
                  },
                  "company_name": {
                    "description": "string. Company name if the domain is unknown."
                  },
                  "profile_url": {
                    "description": "string. A public professional profile URL."
                  },
                  "person_id": {
                    "description": "string. A Dizo person id from a previous search."
                  },
                  "types": {
                    "description": "string[]. mobile, direct, office. Default all."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "profile_url": "https://www.linkedin.com/in/example",
                "types": [
                  "mobile",
                  "direct"
                ]
              }
            }
          }
        }
      }
    },
    "/people/enrich": {
      "post": {
        "operationId": "peopleEnrich",
        "summary": "Person enrich",
        "description": "Identify a person from an email, profile URL, phone or name + company and get the full profile. Returns title, seniority, department, location, work history and social profiles. Add `include` to find email and phone in the same call.\n\nCost: 2 credits (+1 email, +10 phone) (if matched).",
        "tags": [
          "Lookup"
        ],
        "x-dizo-cost": {
          "credits": 2,
          "label": "2 credits (+1 email, +10 phone)",
          "charged_when": "If matched"
        },
        "x-mcp-tool": "dizo_enrich_person",
        "externalDocs": {
          "url": "https://dizo.ai/docs/people-enrich"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "person": {
                    "id": "per_9fK2",
                    "name": "Maya Okafor",
                    "title": "VP, Revenue Operations",
                    "seniority": "vp",
                    "department": "sales",
                    "location": {
                      "city": "San Francisco",
                      "country": "US"
                    },
                    "history": [
                      {
                        "company": "Paystream",
                        "title": "Director, Sales Ops",
                        "from": "2021-03",
                        "to": "2024-08"
                      }
                    ],
                    "phones": [
                      "…"
                    ]
                  },
                  "credits_used": 12
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "description": "string. Work or personal email."
                  },
                  "phone": {
                    "description": "string. E.164 phone."
                  },
                  "first_name": {
                    "description": "string. Person name. Use with company_domain or company_name."
                  },
                  "last_name": {
                    "description": "string. Person name. Use with company_domain or company_name."
                  },
                  "company_domain": {
                    "description": "string. e.g. ledgerline.io (preferred over company_name)."
                  },
                  "company_name": {
                    "description": "string. Company name if the domain is unknown."
                  },
                  "profile_url": {
                    "description": "string. A public professional profile URL."
                  },
                  "person_id": {
                    "description": "string. A Dizo person id from a previous search."
                  },
                  "include": {
                    "description": "string[]. \"email\", \"phone\"."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "email": "maya@ledgerline.io",
                "include": [
                  "phone"
                ]
              }
            }
          }
        }
      }
    },
    "/companies/enrich": {
      "post": {
        "operationId": "companyEnrich",
        "summary": "Company enrich",
        "description": "A domain in; headcount, revenue band, industry, HQ, funding, technologies and socials out. Pass `domain` (preferred) or `name`. Unmatched companies are free.\n\nCost: 1 credit (if matched).",
        "tags": [
          "Lookup"
        ],
        "x-dizo-cost": {
          "credits": 1,
          "label": "1 credit",
          "charged_when": "If matched"
        },
        "x-mcp-tool": "dizo_enrich_company",
        "externalDocs": {
          "url": "https://dizo.ai/docs/company-enrich"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "company": {
                    "name": "Ledgerline",
                    "domain": "ledgerline.io",
                    "industry": "fintech",
                    "employees": 420,
                    "revenue_band": "$50M-$100M",
                    "hq": {
                      "city": "San Francisco",
                      "country": "US"
                    },
                    "founded": 2017,
                    "funding_stage": "series_c",
                    "technologies": [
                      "salesforce",
                      "snowflake",
                      "segment"
                    ]
                  },
                  "credits_used": 1
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "description": "string. Company website domain."
                  },
                  "name": {
                    "description": "string. Company name if no domain."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "domain": "ledgerline.io"
              }
            }
          }
        }
      }
    },
    "/email/verify": {
      "post": {
        "operationId": "emailVerify",
        "summary": "Email verify",
        "description": "Deliverable, catch-all, risky or undeliverable. Clean a list before it hurts your sender reputation. Real-time SMTP verification for up to 100 addresses per call. Use batch for larger lists.\n\nCost: 0.25 credits (every check).",
        "tags": [
          "Lookup"
        ],
        "x-dizo-cost": {
          "credits": 0.25,
          "label": "0.25 credits",
          "charged_when": "Every check"
        },
        "x-mcp-tool": "dizo_verify_email",
        "externalDocs": {
          "url": "https://dizo.ai/docs/email-verify"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "results": [
                    {
                      "email": "maya@ledgerline.io",
                      "status": "deliverable"
                    },
                    {
                      "email": "nobody@ledgerline.io",
                      "status": "undeliverable"
                    }
                  ],
                  "credits_used": 0.5
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "emails": {
                    "description": "string[]. Up to 100 addresses."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "emails": [
                  "maya@ledgerline.io",
                  "nobody@ledgerline.io"
                ]
              }
            }
          }
        }
      }
    },
    "/reverse/{kind}": {
      "post": {
        "operationId": "reverse",
        "summary": "Reverse lookup",
        "description": "Got an email address or a phone number? Get the person and company behind it. `kind` is `email` or `phone`. Free when nothing is found.\n\nCost: 2 credits (only if found).",
        "tags": [
          "Lookup"
        ],
        "x-dizo-cost": {
          "credits": 2,
          "label": "2 credits",
          "charged_when": "Only if found"
        },
        "x-mcp-tool": "dizo_reverse_lookup",
        "externalDocs": {
          "url": "https://dizo.ai/docs/reverse"
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "person": {
                    "id": "per_9fK2",
                    "name": "Maya Okafor",
                    "title": "VP, Revenue Operations",
                    "company": {
                      "domain": "ledgerline.io"
                    }
                  },
                  "credits_used": 2
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email | phone": {
                    "description": "string. The value to look up."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "phone": "+14155550142"
              }
            }
          }
        }
      }
    },
    "/signals/watch": {
      "post": {
        "operationId": "signals",
        "summary": "Job-change signals",
        "description": "Watch your contacts. Get a webhook when someone changes jobs, gets promoted or moves companies. Add up to 100,000 people per watchlist. Watching is free; each detected change sends a `signal.job_change` webhook with the old and new role.\n\nCost: 1 credit / change (per change detected).",
        "tags": [
          "Async"
        ],
        "x-dizo-cost": {
          "credits": 1,
          "label": "1 credit / change",
          "charged_when": "Per change detected"
        },
        "x-mcp-tool": "dizo_watch_job_changes",
        "externalDocs": {
          "url": "https://dizo.ai/docs/signals"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "watchlist": "customers-champions",
                  "watching": 2,
                  "credits_used": 0
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "watchlist": {
                    "description": "string. Watchlist name."
                  },
                  "people": {
                    "description": "object[]. Each has email, profile_url or person_id."
                  },
                  "webhook_url": {
                    "description": "string. Where to send signals."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "watchlist": "customers-champions",
                "people": [
                  {
                    "email": "maya@ledgerline.io"
                  },
                  {
                    "person_id": "per_77aZ"
                  }
                ],
                "webhook_url": "https://example.com/hooks/dizo"
              }
            }
          }
        }
      }
    },
    "/lists": {
      "post": {
        "operationId": "lists",
        "summary": "Lists",
        "description": "Build a prospect list from a plain-English description or a CSV, add email, phone and company columns, dedupe against your suppression list, then export. A list is a saved, async job: Dizo searches (or imports `rows`), enriches each row with the `columns` you ask for, skips anything on your suppression list, and sends `list.completed`. Export with `GET /v1/lists/{id}/export?format=csv`. Rows are billed at the normal search and lookup rates, only for data found.\n\nCost: Search + lookup rates (per row, only data found).",
        "tags": [
          "Async"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Search + lookup rates",
          "charged_when": "Per row, only data found"
        },
        "x-mcp-tool": "dizo_create_list",
        "externalDocs": {
          "url": "https://dizo.ai/docs/lists"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "id": "lst_7Hc2",
                  "status": "building",
                  "quote": {
                    "credits_max": 1020,
                    "credits_expected": 760
                  },
                  "credits_used": 0
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "string. List name."
                  },
                  "query | filters | rows": {
                    "description": "string | object | object[]. Describe who to find, pass filters, or import up to 50,000 rows."
                  },
                  "columns": {
                    "description": "string[]. email, phone, company, person. Each is billed at its endpoint rate if found."
                  },
                  "size": {
                    "description": "integer. Max rows, default 500."
                  },
                  "dedupe": {
                    "description": "boolean. Skip records already on your suppression list. Default true."
                  },
                  "webhook_url": {
                    "description": "string. Notified with list.completed."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "name": "Q1 fintech RevOps",
                "query": "RevOps leaders at US fintech companies, 100-1000 employees",
                "columns": [
                  "email",
                  "company"
                ],
                "size": 500,
                "max_credits": 1500
              }
            }
          }
        }
      }
    },
    "/monitors": {
      "post": {
        "operationId": "monitors",
        "summary": "Monitors",
        "description": "Run a saved search on a schedule and get a webhook with only the new people or companies that started matching since the last run. Good for \"tell me when a new VP of Sales joins a fintech in Austin\". Each run sends `monitor.new_results` with new matches only; nothing already delivered is sent or charged twice. Pause any time.\n\nCost: 1 credit / 25 new results (per new result).",
        "tags": [
          "Async"
        ],
        "x-dizo-cost": {
          "credits": 0.04,
          "label": "1 credit / 25 new results",
          "charged_when": "Per new result"
        },
        "x-mcp-tool": "dizo_create_monitor",
        "externalDocs": {
          "url": "https://dizo.ai/docs/monitors"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "id": "mon_2Rt9",
                  "status": "active",
                  "next_run": "2026-11-23T06:00:00Z",
                  "credits_used": 0
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query | filters": {
                    "description": "string | object. What to watch for."
                  },
                  "schedule": {
                    "description": "\"daily\" | \"weekly\". Default weekly."
                  },
                  "include": {
                    "description": "string[]. \"email\" and/or \"phone\" for each new match."
                  },
                  "webhook_url": {
                    "description": "string. Receives monitor.new_results."
                  },
                  "max_credits_per_run": {
                    "description": "number. Ceiling for each run."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "query": "New VPs of Sales at fintech companies in Texas",
                "schedule": "daily",
                "include": [
                  "email"
                ],
                "webhook_url": "https://example.com/hooks/dizo",
                "max_credits_per_run": 100
              }
            }
          }
        }
      }
    },
    "/batch": {
      "post": {
        "operationId": "batch",
        "summary": "Batch",
        "description": "Up to 10,000 lookups per job. Async, webhook on completion, results as JSONL or CSV. Same per-item price as the underlying endpoint, and misses are still free. Poll `GET /v1/batch/{id}` or receive `batch.completed`.\n\nCost: Same as each item (per item, same rules).",
        "tags": [
          "Async"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Same as each item",
          "charged_when": "Per item, same rules"
        },
        "x-mcp-tool": "dizo_batch",
        "externalDocs": {
          "url": "https://dizo.ai/docs/batch"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "id": "bat_3Jx8",
                  "status": "queued",
                  "items": 2500,
                  "quote": {
                    "credits_max": 2500
                  },
                  "credits_used": 0
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "endpoint": {
                    "description": "string. Any lookup endpoint path, e.g. /v1/email/find."
                  },
                  "items": {
                    "description": "object[]. Up to 10,000 request bodies."
                  },
                  "webhook_url": {
                    "description": "string. Notified on completion."
                  },
                  "format": {
                    "description": "\"jsonl\" | \"csv\". Result file format."
                  },
                  "dry_run": {
                    "description": "boolean. Return a cost quote and spend 0 credits."
                  },
                  "max_credits": {
                    "description": "number. Hard ceiling on credits this request may spend."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "endpoint": "/v1/email/find",
                "items": [
                  {
                    "first_name": "Maya",
                    "last_name": "Okafor",
                    "company_domain": "ledgerline.io"
                  },
                  "…"
                ],
                "webhook_url": "https://example.com/hooks/dizo",
                "max_credits": 10000
              }
            }
          }
        }
      }
    },
    "/batch/{id}": {
      "get": {
        "operationId": "batchGet",
        "summary": "Batch status",
        "description": "Status, hit count and results_url for a batch job. Results stay available for 7 days.\n\nCost: Free (never).",
        "tags": [
          "Async"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "externalDocs": {
          "url": "https://dizo.ai/docs/batch-get"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "id": "bat_3Jx8",
                  "status": "completed",
                  "hits": 2310,
                  "results_url": "https://files.dizo.ai/bat_3Jx8.jsonl",
                  "credits_used": 2310
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/webhooks": {
      "post": {
        "operationId": "webhooks",
        "summary": "Webhooks",
        "description": "Register an endpoint once and receive signed events for finished jobs, job changes, monitor results and billing alerts. Every delivery has a `Dizo-Signature` header (`t=<unix>,v1=HMAC_SHA256(secret, t + \".\" + body)`) and is retried with backoff for 24 hours. The signing secret is shown once; rotate it with `POST /v1/webhooks/{id}/rotate`.\n\nCost: Free (never).",
        "tags": [
          "Account"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "externalDocs": {
          "url": "https://dizo.ai/docs/webhooks"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "id": "wh_4Ks0",
                  "url": "https://example.com/hooks/dizo",
                  "events": [
                    "batch.completed",
                    "signal.job_change",
                    "billing.cap_warning"
                  ],
                  "secret": "whsec_…shown once…"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "description": "string. HTTPS endpoint."
                  },
                  "events": {
                    "description": "string[]. batch.completed, list.completed, monitor.new_results, signal.job_change, billing.refilled, billing.cap_warning, billing.cap_reached, billing.low_balance. Default all."
                  },
                  "description": {
                    "description": "string. Label."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "url": "https://example.com/hooks/dizo",
                "events": [
                  "batch.completed",
                  "signal.job_change",
                  "billing.cap_warning"
                ]
              }
            }
          }
        }
      }
    },
    "/suppression": {
      "post": {
        "operationId": "suppression",
        "summary": "Suppression list",
        "description": "Emails, domains or person ids that Dizo should never return to you: current customers, open opportunities and your own opt-outs. Suppressed records are dropped from every search, list and lookup before billing, so you never pay for contacts you already have or must not contact. Up to 1,000,000 entries per account. `DELETE /v1/suppression` with the same body removes entries.\n\nCost: Free (never).",
        "tags": [
          "Account"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "x-mcp-tool": "dizo_suppress",
        "externalDocs": {
          "url": "https://dizo.ai/docs/suppression"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "added": 2,
                  "total_entries": 18452
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "emails": {
                    "description": "string[]. Exact addresses."
                  },
                  "domains": {
                    "description": "string[]. Every person at these companies."
                  },
                  "person_ids": {
                    "description": "string[]. Dizo person ids."
                  },
                  "reason": {
                    "description": "string. customer, opportunity, opt_out, other."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "domains": [
                  "ourcustomer.com"
                ],
                "emails": [
                  "unsubscribed@example.com"
                ],
                "reason": "customer"
              }
            }
          }
        }
      }
    },
    "/feedback": {
      "post": {
        "operationId": "feedback",
        "summary": "Data feedback",
        "description": "Report a bounced email, a wrong number or an outdated job. Confirmed reports are credited back automatically. Send the `request_id` (from the `x-dizo-request-id` header) or the record, plus what was wrong. Reports within 30 days of purchase are checked and refunded to your balance, usually within an hour, and the correction is applied for everyone.\n\nCost: Free (refunds credits) (never).",
        "tags": [
          "Account"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free (refunds credits)",
          "charged_when": "Never"
        },
        "x-mcp-tool": "dizo_report_bad_data",
        "externalDocs": {
          "url": "https://dizo.ai/docs/feedback"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "status": "accepted",
                  "refund_credits": 1,
                  "expected_by": "2026-11-22T15:10:00Z"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_id": {
                    "description": "string. From x-dizo-request-id."
                  },
                  "record": {
                    "description": "object. e.g. {\"email\":\"…\"} if no request id."
                  },
                  "issue": {
                    "description": "string. bounced, wrong_person, disconnected, wrong_company, outdated_title."
                  },
                  "evidence": {
                    "description": "string. e.g. the bounce message."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "request_id": "req_8sk2",
                "issue": "bounced",
                "evidence": "550 5.1.1 user unknown"
              }
            }
          }
        }
      }
    },
    "/me": {
      "get": {
        "operationId": "me",
        "summary": "Key info",
        "description": "What this API key is allowed to do: scopes, endpoint allow-list, remaining budget and rate limits. Call it first in a new session. Free and safe for any key. Agents should call it once at start-up and plan within `budget.month_remaining_credits` and `max_credits_per_request`.\n\nCost: Free (never).",
        "tags": [
          "Account"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "x-mcp-tool": "dizo_whoami",
        "externalDocs": {
          "url": "https://dizo.ai/docs/me"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "key": {
                    "id": "key_5Nq",
                    "name": "sdr-agent",
                    "mode": "live",
                    "scopes": [
                      "data:read"
                    ],
                    "allowed_endpoints": [
                      "/v1/search",
                      "/v1/email/find"
                    ]
                  },
                  "budget": {
                    "max_credits_per_request": 500,
                    "day_remaining_credits": 1640,
                    "month_remaining_credits": 10600
                  },
                  "rate_limit": {
                    "per_second": 20,
                    "concurrent": 10
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/billing": {
      "get": {
        "operationId": "billing",
        "summary": "Balance & usage",
        "description": "Balance, this month's spend, cap, refill settings and per-key usage. Agents should check this before large jobs and stop if spend is near the cap.\n\nCost: Free (never).",
        "tags": [
          "Billing"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "x-mcp-tool": "dizo_balance",
        "externalDocs": {
          "url": "https://dizo.ai/docs/billing"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "balance_credits": 48211,
                  "month": {
                    "spent_usd": 640,
                    "cap_usd": 2000,
                    "credits_used": 51780
                  },
                  "auto_refill": {
                    "enabled": true,
                    "threshold_credits": 5000,
                    "amount_usd": 500
                  },
                  "keys": [
                    {
                      "name": "sdr-agent",
                      "month_credits_used": 9400,
                      "month_cap_credits": 20000
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/billing/topup": {
      "post": {
        "operationId": "billingTopup",
        "summary": "Top up",
        "description": "Buy credits now with the saved payment method. Requires the `billing:write` scope. The price per credit is set by `amount_usd`. Respects the monthly cap. Agents must get explicit human approval first.\n\nCost: Free (charges card on file) (never).",
        "tags": [
          "Billing"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free (charges card on file)",
          "charged_when": "Never"
        },
        "externalDocs": {
          "url": "https://dizo.ai/docs/billing-topup"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "charged_usd": 2000,
                  "credits_added": 117647,
                  "rate_usd": 0.017,
                  "tier": "Growth",
                  "balance_credits": 165858
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount_usd": {
                    "description": "number. Minimum 10."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "amount_usd": 2000
              }
            }
          }
        }
      }
    },
    "/billing/auto-refill": {
      "put": {
        "operationId": "billingRefill",
        "summary": "Auto-refill",
        "description": "When balance falls below a threshold, automatically buy a fixed dollar amount of credits. Refills are priced at the tier for `amount_usd` and never exceed the monthly cap.\n\nCost: Free (never).",
        "tags": [
          "Billing"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "externalDocs": {
          "url": "https://dizo.ai/docs/billing-refill"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "auto_refill": {
                    "enabled": true,
                    "threshold_credits": 5000,
                    "amount_usd": 500,
                    "rate_usd": 0.021
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "description": "boolean. Turn refill on or off."
                  },
                  "threshold_credits": {
                    "description": "integer. Refill when balance drops below this."
                  },
                  "amount_usd": {
                    "description": "number. Amount to charge per refill (min 10)."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "enabled": true,
                "threshold_credits": 5000,
                "amount_usd": 500
              }
            }
          }
        }
      }
    },
    "/billing/limits": {
      "put": {
        "operationId": "billingLimits",
        "summary": "Spend limits",
        "description": "Account-wide monthly cap in USD, alert thresholds and a lock. Set `monthly_cap_usd` to `null` for no cap. With `locked: true`, no API key can change billing settings.\n\nCost: Free (never).",
        "tags": [
          "Billing"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "externalDocs": {
          "url": "https://dizo.ai/docs/billing-limits"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "limits": {
                    "monthly_cap_usd": 2000,
                    "alerts_pct": [
                      50,
                      80,
                      100
                    ],
                    "locked": false
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "monthly_cap_usd": {
                    "description": "number | null. Hard monthly ceiling, refills included."
                  },
                  "daily_cap_credits": {
                    "description": "integer. Account daily credit limit."
                  },
                  "alerts_pct": {
                    "description": "integer[]. e.g. [50,80,100]."
                  },
                  "alert_emails": {
                    "description": "string[]. Who gets alerts."
                  },
                  "locked": {
                    "description": "boolean. Block API changes to billing."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "monthly_cap_usd": 2000,
                "alerts_pct": [
                  50,
                  80,
                  100
                ],
                "alert_emails": [
                  "finance@example.com"
                ],
                "locked": false
              }
            }
          }
        }
      }
    },
    "/keys": {
      "post": {
        "operationId": "keys",
        "summary": "API keys",
        "description": "Create a key for an agent or teammate with its own caps and endpoint allow-list. Requires `keys:write`. The secret is returned once.\n\nCost: Free (never).",
        "tags": [
          "Billing"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free",
          "charged_when": "Never"
        },
        "externalDocs": {
          "url": "https://dizo.ai/docs/keys"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "id": "key_5Nq",
                  "name": "sdr-agent",
                  "secret": "dz_live_…shown once…"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "string. Label."
                  },
                  "scopes": {
                    "description": "string[]. data:read, billing:read, billing:write, keys:write."
                  },
                  "daily_cap_credits": {
                    "description": "integer. Per-key caps."
                  },
                  "monthly_cap_credits": {
                    "description": "integer. Per-key caps."
                  },
                  "max_credits_per_request": {
                    "description": "integer. Per-request ceiling."
                  },
                  "allowed_endpoints": {
                    "description": "string[]. Allow-list of paths."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "name": "sdr-agent",
                "scopes": [
                  "data:read"
                ],
                "daily_cap_credits": 2000,
                "monthly_cap_credits": 20000,
                "max_credits_per_request": 500,
                "allowed_endpoints": [
                  "/v1/search",
                  "/v1/email/find"
                ]
              }
            }
          }
        }
      }
    },
    "/pricing": {
      "get": {
        "operationId": "pricing",
        "summary": "Pricing",
        "description": "Price tiers and per-endpoint credit costs. No authentication. Use it to budget before calling anything.\n\nCost: Free, no auth (never).",
        "tags": [
          "Meta"
        ],
        "x-dizo-cost": {
          "credits": 0,
          "label": "Free, no auth",
          "charged_when": "Never"
        },
        "externalDocs": {
          "url": "https://dizo.ai/docs/pricing"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "x-dizo-credits-used": {
                "schema": {
                  "type": "number"
                }
              },
              "x-dizo-credits-remaining": {
                "schema": {
                  "type": "number"
                }
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "tiers": [
                    {
                      "min_usd": 10,
                      "usd_per_credit": 0.025,
                      "name": "Pay as you go"
                    },
                    {
                      "min_usd": 500,
                      "usd_per_credit": 0.021,
                      "name": "Builder"
                    },
                    {
                      "min_usd": 2000,
                      "usd_per_credit": 0.017,
                      "name": "Growth"
                    },
                    {
                      "min_usd": 10000,
                      "usd_per_credit": 0.013,
                      "name": "Scale"
                    },
                    {
                      "min_usd": 50000,
                      "usd_per_credit": 0.01,
                      "name": "Enterprise"
                    }
                  ],
                  "costs": "…"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": []
      }
    }
  }
}