{
  "openapi": "3.1.0",
  "info": {
    "title": "Tano Public API",
    "version": "1.0.0",
    "summary": "Public HTTP API for Tano — the AI-native influencer marketing agency.",
    "description": "Tano is an AI-native influencer marketing agency that manages end-to-end creator partnership ad campaigns on TikTok and Instagram (creator sourcing, contracts, payments, content rights, whitelisting, and ad-ready asset delivery).\n\nThis OpenAPI document describes the public-facing HTTP endpoints available on https://tano.ai. These endpoints are unauthenticated form-submission endpoints intended for marketing site signups, contact requests, content-gate signups (e.g., playbook downloads), creator onboarding, and webinar registrations.\n\nThere is no authenticated/programmatic API for managing live creator campaigns — campaign management is delivered as a managed service via a dedicated account manager. To build a campaign integration, contact hello@tano.ai or book a call at https://tano.ai.\n\nAll endpoints accept and return JSON, and CORS is enabled for browser-based and agent-driven submissions.",
    "contact": {
      "name": "Tano",
      "url": "https://tano.ai",
      "email": "hello@tano.ai"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://tano.ai/privacy-policy"
    },
    "termsOfService": "https://tano.ai/privacy-policy"
  },
  "servers": [
    {
      "url": "https://tano.ai",
      "description": "Production"
    }
  ],
  "externalDocs": {
    "description": "Tano product documentation for AI agents (llms-full.txt)",
    "url": "https://tano.ai/llms-full.txt"
  },
  "tags": [
    {
      "name": "Contact",
      "description": "Contact form submissions and updates."
    },
    {
      "name": "Brand Signups",
      "description": "Brand signups for product offerings (Creator Partnership Ads, Content Analysis Framework, Creator Discovery Guide, USA waitlist)."
    },
    {
      "name": "Creator Signups",
      "description": "Creator-side signups."
    },
    {
      "name": "Events",
      "description": "Webinar and event registrations."
    },
    {
      "name": "Discovery",
      "description": "Static discovery files for AI agents (llms.txt, manifests, sitemap)."
    }
  ],
  "paths": {
    "/api/contact": {
      "post": {
        "tags": ["Contact"],
        "summary": "Submit a contact request",
        "description": "Submit a contact request to start a conversation with Tano about creator partnership ads, gifting, affiliate management, or general enquiries. Used by AI agents and humans to introduce a brand and request a follow-up.",
        "operationId": "submitContact",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/ContactRequest" },
              "examples": {
                "brand_enquiry": {
                  "summary": "Brand enquiry for creator partnership ads",
                  "value": {
                    "name": "Jane Doe",
                    "email": "jane@brand.com",
                    "userType": "brand",
                    "message": "Interested in running a 50-creator TikTok campaign next quarter."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contact recorded",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ContactResponse" }
              }
            }
          },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "405": { "$ref": "#/components/responses/MethodNotAllowed" },
          "500": { "$ref": "#/components/responses/ServerError" }
        }
      }
    },
    "/api/contact-update": {
      "patch": {
        "tags": ["Contact"],
        "summary": "Update an existing contact (or create if missing)",
        "description": "Upsert contact details by email. Used by the pricing calculator and onboarding flows to enrich a contact record with budget, plan, and influencer-program metadata.",
        "operationId": "updateContact",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/ContactUpdateRequest" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contact updated or created",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ContactUpdateResponse" }
              }
            }
          },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "405": { "$ref": "#/components/responses/MethodNotAllowed" },
          "500": { "$ref": "#/components/responses/ServerError" }
        }
      }
    },
    "/api/cpa-signup": {
      "post": {
        "tags": ["Brand Signups"],
        "summary": "Sign up for Creator Partnership Ads (CPA)",
        "description": "Register interest in Tano's Creator Partnership Ads service. Requires a work (non-personal) email.",
        "operationId": "cpaSignup",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/WorkEmailSignupRequest" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signup recorded",
            "content": {
              "application/json": { "schema": { "$ref": "#/components/schemas/SignupResponse" } }
            }
          },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "405": { "$ref": "#/components/responses/MethodNotAllowed" },
          "500": { "$ref": "#/components/responses/ServerError" }
        }
      }
    },
    "/api/caf-signup": {
      "post": {
        "tags": ["Brand Signups"],
        "summary": "Sign up for the Content Analysis Framework (CAF)",
        "description": "Register interest in / download Tano's Content Analysis Framework. Requires a work (non-personal) email.",
        "operationId": "cafSignup",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/WorkEmailSignupRequest" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signup recorded",
            "content": {
              "application/json": { "schema": { "$ref": "#/components/schemas/SignupResponse" } }
            }
          },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "405": { "$ref": "#/components/responses/MethodNotAllowed" },
          "500": { "$ref": "#/components/responses/ServerError" }
        }
      }
    },
    "/api/cdg-signup": {
      "post": {
        "tags": ["Brand Signups"],
        "summary": "Sign up for the Creator Discovery Guide (CDG)",
        "description": "Register interest in / download Tano's Creator Discovery Guide. Requires a work (non-personal) email.",
        "operationId": "cdgSignup",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/WorkEmailSignupRequest" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signup recorded",
            "content": {
              "application/json": { "schema": { "$ref": "#/components/schemas/SignupResponse" } }
            }
          },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "405": { "$ref": "#/components/responses/MethodNotAllowed" },
          "500": { "$ref": "#/components/responses/ServerError" }
        }
      }
    },
    "/api/usa-signup": {
      "post": {
        "tags": ["Brand Signups"],
        "summary": "USA waitlist / signup",
        "description": "Sign up for the Tano USA program waitlist.",
        "operationId": "usaSignup",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/UsaSignupRequest" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signup recorded",
            "content": {
              "application/json": { "schema": { "$ref": "#/components/schemas/SignupResponse" } }
            }
          },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "405": { "$ref": "#/components/responses/MethodNotAllowed" },
          "500": { "$ref": "#/components/responses/ServerError" }
        }
      }
    },
    "/api/creator-signup": {
      "post": {
        "tags": ["Creator Signups"],
        "summary": "Creator signup",
        "description": "Submit a creator signup with social handles. Used by content creators who want to be considered for partnership ad campaigns.",
        "operationId": "creatorSignup",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/CreatorSignupRequest" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Creator signup recorded",
            "content": {
              "application/json": { "schema": { "$ref": "#/components/schemas/SignupResponse" } }
            }
          },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "405": { "$ref": "#/components/responses/MethodNotAllowed" },
          "500": { "$ref": "#/components/responses/ServerError" }
        }
      }
    },
    "/api/runna-webinar": {
      "post": {
        "tags": ["Events"],
        "summary": "Register for the Runna webinar",
        "description": "Register for a Tano-hosted webinar. Requires a work email.",
        "operationId": "runnaWebinarSignup",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/RunnaWebinarRequest" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webinar registration recorded",
            "content": {
              "application/json": { "schema": { "$ref": "#/components/schemas/SignupResponse" } }
            }
          },
          "400": { "$ref": "#/components/responses/BadRequest" },
          "405": { "$ref": "#/components/responses/MethodNotAllowed" },
          "500": { "$ref": "#/components/responses/ServerError" }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Product overview for LLMs",
        "description": "Plain-text product summary, services, pricing, proof points, and key links — formatted for consumption by LLMs and AI agents.",
        "operationId": "getLlmsTxt",
        "responses": {
          "200": {
            "description": "OK",
            "content": { "text/plain": {} }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Full product documentation for LLMs",
        "description": "Comprehensive plain-text documentation including pricing, services, how-it-works, playbooks, and contact info.",
        "operationId": "getLlmsFullTxt",
        "responses": {
          "200": {
            "description": "OK",
            "content": { "text/plain": {} }
          }
        }
      }
    },
    "/pricing.md": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Pricing details (Markdown)",
        "description": "Detailed pricing tables for Creator Partnership Ads, Product Gifting, and Affiliate Programme Management.",
        "operationId": "getPricingMd",
        "responses": {
          "200": {
            "description": "OK",
            "content": { "text/markdown": {} }
          }
        }
      }
    },
    "/.well-known/agent-card.json": {
      "get": {
        "tags": ["Discovery"],
        "summary": "A2A agent card",
        "operationId": "getAgentCard",
        "responses": {
          "200": {
            "description": "OK",
            "content": { "application/json": {} }
          }
        }
      }
    },
    "/.well-known/agent-skills/index.json": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Agent skills with when-to-use guidance",
        "operationId": "getAgentSkills",
        "responses": {
          "200": {
            "description": "OK",
            "content": { "application/json": {} }
          }
        }
      }
    },
    "/.well-known/mcp/manifest.json": {
      "get": {
        "tags": ["Discovery"],
        "summary": "MCP manifest",
        "operationId": "getMcpManifest",
        "responses": {
          "200": {
            "description": "OK",
            "content": { "application/json": {} }
          }
        }
      }
    },
    "/agents.md": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Agent integration & authentication guide",
        "description": "Step-by-step guide for AI agents on how to discover, authenticate (where applicable), and call Tano endpoints.",
        "operationId": "getAgentsMd",
        "responses": {
          "200": {
            "description": "OK",
            "content": { "text/markdown": {} }
          }
        }
      }
    },
    "/api/mcp": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Tano MCP server (Streamable HTTP) descriptor",
        "description": "Returns a small JSON descriptor for the Tano MCP server (transport, supported protocol versions, and serverInfo). Use POST with a JSON-RPC 2.0 envelope to start an MCP session.",
        "operationId": "getMcpDescriptor",
        "responses": {
          "200": {
            "description": "MCP server descriptor",
            "content": { "application/json": {} }
          }
        }
      },
      "post": {
        "tags": ["Discovery"],
        "summary": "Tano MCP server (Streamable HTTP) JSON-RPC endpoint",
        "description": "Model Context Protocol server using Streamable HTTP transport. Accepts JSON-RPC 2.0 requests for `initialize`, `tools/list`, `tools/call`, `resources/list`, `resources/read`, `prompts/list`, and `ping`. No authentication required.",
        "operationId": "callMcp",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method"],
                "properties": {
                  "jsonrpc": { "type": "string", "enum": ["2.0"] },
                  "id": { "oneOf": [{ "type": "string" }, { "type": "integer" }, { "type": "null" }] },
                  "method": { "type": "string" },
                  "params": { "type": "object" }
                }
              },
              "examples": {
                "initialize": {
                  "summary": "MCP handshake",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "initialize",
                    "params": {
                      "protocolVersion": "2025-03-26",
                      "capabilities": {},
                      "clientInfo": { "name": "ExampleClient", "version": "1.0.0" }
                    }
                  }
                },
                "tools_list": {
                  "summary": "List MCP tools",
                  "value": { "jsonrpc": "2.0", "id": 2, "method": "tools/list" }
                },
                "get_pricing": {
                  "summary": "Call get_pricing tool",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 3,
                    "method": "tools/call",
                    "params": { "name": "get_pricing", "arguments": { "tier": "micro", "creators": 30 } }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response",
            "content": { "application/json": {} }
          },
          "202": {
            "description": "Notification accepted (no response body)"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ContactRequest": {
        "type": "object",
        "required": ["email"],
        "properties": {
          "name": { "type": "string", "description": "Full name of the person submitting the form." },
          "email": { "type": "string", "format": "email", "description": "Email address. Required." },
          "phoneNumber": { "type": "string" },
          "userType": {
            "type": "string",
            "description": "Type of user submitting the form (e.g., brand, creator, agency)."
          },
          "message": { "type": "string" },
          "affiliatesPerMonth": { "type": "string" }
        }
      },
      "ContactResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean" },
          "message": { "type": "string" },
          "recordId": { "type": "string" },
          "isWorkEmail": { "type": "boolean" }
        }
      },
      "ContactUpdateRequest": {
        "type": "object",
        "required": ["email"],
        "properties": {
          "name": { "type": "string" },
          "email": { "type": "string", "format": "email" },
          "phoneNumber": { "type": "string" },
          "message": { "type": "string" },
          "usingInfluencers": { "oneOf": [{ "type": "boolean" }, { "type": "string" }] },
          "influencersPerMonth": { "oneOf": [{ "type": "integer" }, { "type": "string" }] },
          "monthlyBudget": { "type": "string" },
          "planOnUsingInfluencers": { "oneOf": [{ "type": "boolean" }, { "type": "string" }] },
          "pricingTier": {
            "type": "string",
            "description": "Tier the brand selected in the pricing calculator (e.g., nano, micro, mid, macro)."
          },
          "sourcePage": { "type": "string" },
          "calculatorSummary": { "type": "string" }
        }
      },
      "ContactUpdateResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean" },
          "message": { "type": "string" },
          "recordId": { "type": "string" },
          "updated": { "type": "boolean" }
        }
      },
      "WorkEmailSignupRequest": {
        "type": "object",
        "required": ["email"],
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "Work email address. Personal-domain emails (gmail.com, yahoo.com, etc.) are rejected."
          },
          "phoneNumber": { "type": "string" }
        }
      },
      "UsaSignupRequest": {
        "type": "object",
        "required": ["email"],
        "properties": {
          "name": { "type": "string" },
          "email": { "type": "string", "format": "email" },
          "gifted_or_allowlisted": {
            "type": "string",
            "description": "Whether the brand has run gifted or allowlisted creator campaigns."
          },
          "already_working_with_influencers": {
            "type": "boolean",
            "description": "Whether the brand is already running influencer programs."
          }
        }
      },
      "CreatorSignupRequest": {
        "type": "object",
        "required": ["email"],
        "properties": {
          "name": { "type": "string" },
          "email": { "type": "string", "format": "email" },
          "instagram": { "type": "string", "description": "Instagram handle or URL." },
          "tiktok": { "type": "string", "description": "TikTok handle or URL." },
          "youtube": { "type": "string", "description": "YouTube channel handle or URL." },
          "x": { "type": "string", "description": "X (Twitter) handle or URL." },
          "whatsappNumber": { "type": "string" }
        }
      },
      "RunnaWebinarRequest": {
        "type": "object",
        "required": ["fullName", "workEmail"],
        "properties": {
          "fullName": { "type": "string" },
          "workEmail": {
            "type": "string",
            "format": "email",
            "description": "Work email address (personal-domain emails are rejected)."
          },
          "questions": { "type": "string" }
        }
      },
      "SignupResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean" },
          "message": { "type": "string" },
          "recordId": { "type": "string" }
        }
      },
      "Error": {
        "type": "object",
        "description": "Structured JSON error response. All Tano endpoints return JSON for errors, never HTML.",
        "properties": {
          "error": { "type": "string", "description": "Short error code or message." },
          "code": { "type": "string", "description": "Machine-readable error code (e.g., 'API_ENDPOINT_NOT_FOUND', 'INVALID_EMAIL')." },
          "message": { "type": "string", "description": "Human-readable error message with resolution hints." },
          "documentation": { "type": "string", "format": "uri", "description": "Link to documentation that explains how to fix the error." }
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Validation error (missing required field, invalid email, or non-work email). Returned as JSON.",
        "content": {
          "application/json": { "schema": { "$ref": "#/components/schemas/Error" } }
        }
      },
      "NotFound": {
        "description": "Unknown API endpoint. Returned as JSON with a `code: API_ENDPOINT_NOT_FOUND` and a documentation link.",
        "content": {
          "application/json": { "schema": { "$ref": "#/components/schemas/Error" } }
        }
      },
      "MethodNotAllowed": {
        "description": "HTTP method not supported for this endpoint. Returned as JSON.",
        "content": {
          "application/json": { "schema": { "$ref": "#/components/schemas/Error" } }
        }
      },
      "ServerError": {
        "description": "Server error. Retry with exponential backoff. Returned as JSON.",
        "content": {
          "application/json": { "schema": { "$ref": "#/components/schemas/Error" } }
        }
      }
    }
  },
  "x-agent-instructions": {
    "primary_use_cases": [
      "Submit a brand enquiry on behalf of a user via /api/contact.",
      "Sign up for a downloadable playbook via /api/caf-signup, /api/cdg-signup, or /api/cpa-signup.",
      "Discover Tano's services, pricing, and proof points via /llms.txt and /llms-full.txt.",
      "Resolve agent integration questions via /agents.md (auth guide for AI agents)."
    ],
    "auth": "All endpoints documented here are unauthenticated public endpoints. There is no API key or OAuth flow. See /agents.md for the full agent authentication policy.",
    "rate_limits": "No documented rate limits, but agents should retry 5xx with exponential backoff and avoid duplicate submissions for the same email.",
    "contact": "For programmatic/managed-service integrations beyond these public endpoints, contact hello@tano.ai."
  }
}
