{
  "openapi": "3.1.0",
  "info": {
    "title": "Hyre-Inc public API",
    "version": "1.0.0",
    "description": "The public endpoints of Hyre-Inc, the AI hiring platform. Starting a free trial needs no key. Everything inside a company's workspace is reached through the MCP server at https://app.hyre-inc.com/api/mcp with a personal access key (see https://hyre-inc.com/.well-known/mcp/server-card.json).",
    "contact": { "name": "Hyre-Inc", "url": "https://hyre-inc.com/request-access" }
  },
  "externalDocs": { "url": "https://hyre-inc.com/agents.md" },
  "servers": [{ "url": "https://hyre-inc.com" }],
  "paths": {
    "/api/v1/signup": {
      "post": {
        "operationId": "startFreeTrial",
        "summary": "Start a 24-hour free trial",
        "description": "Emails a one-time link to the given company address. The trial starts when that person clicks it, and lasts 24 hours: 1 live round, 100 candidate profiles, 10 AI interviews, no credit card. Personal addresses (gmail.com and similar) are refused, and each company domain gets one trial. Only send an address the person asked you to use. If the company already uses Hyre, the email explains how to join it instead.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["email"],
                "properties": { "email": { "type": "string", "format": "email", "description": "The person's work email at their company's own domain." } }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "The link was sent (or, if the company already uses Hyre, the right next step was emailed).", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" } } } } } },
          "422": { "description": "Not a valid company email, or the company already had its trial. The message is meant for the person.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "429": { "description": "Too many requests. Try again later.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "operationId": "health",
        "summary": "Service status",
        "servers": [{ "url": "https://app.hyre-inc.com" }],
        "responses": {
          "200": { "description": "The app and database are up.", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" } } } } } },
          "503": { "description": "The database is not responding." }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": { "type": "object", "properties": { "error": { "type": "string" }, "code": { "type": "string" } } }
    }
  }
}
