{
  "info": {
    "name": "Fern Ask Fern API",
    "description": "Fern's hosted public REST API for the AI-powered 'Ask Fern' documentation search. Index a documentation website, poll indexing status, and query indexed content for grounded answers. Base URL: https://fai.buildwithfern.com. Authenticated with a Bearer token generated by the `fern token` CLI command; available on Team and Enterprise plans. The website index/status endpoints are grounded in Fern's published reference; the /ask query endpoint shape is modeled and should be reconciled against the live reference. Fern's SDK generation and docs generation run through the open-source `fern` CLI, not this API.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      { "key": "token", "value": "{{bearerToken}}", "type": "string" }
    ]
  },
  "variable": [
    { "key": "baseUrl", "value": "https://fai.buildwithfern.com", "type": "string" },
    { "key": "bearerToken", "value": "", "type": "string" }
  ],
  "item": [
    {
      "name": "Website Sources",
      "item": [
        {
          "name": "Index a documentation website",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"base_url\": \"https://docs.example.com\"\n}" },
            "url": { "raw": "{{baseUrl}}/sources/website/:domain/index", "host": ["{{baseUrl}}"], "path": ["sources", "website", ":domain", "index"], "variable": [{ "key": "domain", "value": "docs.example.com" }] },
            "description": "Start an indexing job that crawls and indexes a documentation website. Returns a job_id. (Modeled endpoint - reconcile against the live reference.)"
          }
        },
        {
          "name": "Get website indexing status",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{baseUrl}}/sources/website/:domain/status?job_id=", "host": ["{{baseUrl}}"], "path": ["sources", "website", ":domain", "status"], "query": [{ "key": "job_id", "value": "", "description": "The job ID returned from the index endpoint." }], "variable": [{ "key": "domain", "value": "docs.example.com" }] },
            "description": "Return the status of a website indexing job, including pages_indexed and pages_failed. (Confirmed endpoint.)"
          }
        }
      ]
    },
    {
      "name": "Ask",
      "item": [
        {
          "name": "Ask a question",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{baseUrl}}/ask?q=", "host": ["{{baseUrl}}"], "path": ["ask"], "query": [{ "key": "q", "value": "", "description": "URI-encoded natural-language question." }] },
            "description": "Submit a natural-language question and receive an AI-generated answer grounded in the indexed documentation. (Modeled endpoint shape - reconcile against the live reference.)"
          }
        }
      ]
    }
  ]
}
