{
  "openapi": "3.1.0",
  "info": {
    "title": "Recoon Verifier API",
    "version": "10.27.1",
    "description": "Verify email addresses down to the mailbox without sending a message. 1 credit per address; Unknown results are free. Create an API key in Dashboard → API & keys.",
    "contact": {
      "url": "https://recoonverifier.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://recoonverifier.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "A Recoon API key (rv_live_…) with the Verify permission"
      }
    },
    "schemas": {
      "Result": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "safe",
              "invalid",
              "disabled",
              "catch_all",
              "disposable",
              "role",
              "spamtrap",
              "inbox_full",
              "unknown"
            ]
          },
          "score": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "safe_to_send": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "catch_all": {
            "type": "boolean"
          },
          "role": {
            "type": "boolean"
          },
          "disposable": {
            "type": "boolean"
          },
          "free_provider": {
            "type": "boolean"
          },
          "provider": {
            "type": "string"
          },
          "credits_used": {
            "type": "integer"
          }
        }
      }
    }
  },
  "paths": {
    "/api/verify": {
      "post": {
        "operationId": "verifyEmail",
        "summary": "Verify one email address",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The address to check"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verification result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    },
    "/api/bulk": {
      "post": {
        "operationId": "verifyEmails",
        "summary": "Verify up to 500 addresses and wait for the results",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "emails"
                ],
                "properties": {
                  "emails": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 500
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Summary and one result per address",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "summary": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      }
                    },
                    "credits_used": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Result"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/jobs": {
      "post": {
        "operationId": "startBulkJob",
        "summary": "Start a large list in the background",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "emails"
                ],
                "properties": {
                  "emails": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "callback_url": {
                    "type": "string",
                    "description": "Optional webhook called when the job finishes"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Job started",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/jobs/{id}/results": {
      "get": {
        "operationId": "getBulkResults",
        "summary": "Results of a background job",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job status and results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "done": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Result"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/me": {
      "get": {
        "operationId": "getAccount",
        "summary": "Credit balance and key details",
        "responses": {
          "200": {
            "description": "Account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}