---
updatedAt: 2026-05-12T09:57:32.000Z
agentTools:
  projectIndex: https://developers.sefaria.org/llms.txt
---

# Passages

Maps each requested ref to the canonical passage that contains it. Particularly useful for Talmud sugyot — a single amud ref is mapped to the full sugya boundary. Also works for Tanakh, where a verse maps to its parasha-style passage. Pass a pipe-delimited list of refs.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Sefaria API",
    "version": "1.0.0",
    "description": "The Sefaria API endpoints grant live access to Sefaria's structured database of Jewish texts and their interconnections.",
    "contact": {
      "url": "https://www.sefaria.org",
      "email": "developers@sefaria.org"
    },
    "license": {
      "name": "GNU AGPLv3",
      "url": "https://www.gnu.org/licenses/agpl.txt"
    }
  },
  "servers": [
    {
      "url": "https://www.sefaria.org",
      "description": ""
    }
  ],
  "tags": [
    {
      "name": "Text",
      "description": "Operations related to retrieving texts"
    }
  ],
  "paths": {
    "/api/passages/{refs}": {
      "summary": "Passages",
      "description": "Maps each requested ref to the canonical passage that contains it. Particularly useful for Talmud sugyot — a single amud ref is mapped to the full sugya boundary. Also works for Tanakh, where a verse maps to its parasha-style passage. Pass a pipe-delimited list of refs.",
      "get": {
        "operationId": "get-passages",
        "tags": [
          "Text"
        ],
        "parameters": [
          {
            "name": "refs",
            "description": "A pipe-delimited list of Sefaria refs. A Sefaria ref is a human-readable text citation, e.g. `Genesis 1:1`, `Berakhot 2a`, or `Rashi on Genesis 1:1`. Use dots for section separators in the URL, e.g. `Berakhot.2a|Genesis.1.1`.",
            "schema": {
              "type": "string",
              "default": "Genesis.1.1"
            },
            "in": "path",
            "required": true,
            "examples": {
              "Genesis 1:1": {
                "value": "Genesis.1.1"
              }
            }
          }
        ],
        "description": "Maps each requested ref to the canonical passage that contains it. Particularly useful for Talmud sugyot — a single amud ref is mapped to the full sugya boundary. Also works for Tanakh, where a verse maps to its parasha-style passage. Pass a pipe-delimited list of refs.",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PassagesJSON"
                },
                "examples": {
                  "Genesis 1:1": {
                    "value": {
                      "Genesis.1.1": "Genesis 1:1-3"
                    }
                  }
                }
              }
            },
            "description": "Successful Response"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PassagesJSON": {
        "title": "Root Type for PassagesJSON",
        "description": "A map keyed by the requested Sefaria ref. Each value is the canonical passage ref that contains it — for Tanakh a parasha-style passage, for Mishnah a chapter passage, for Talmud a full sugya boundary.",
        "type": "object",
        "additionalProperties": {
          "type": "string",
          "description": "The canonical passage ref that contains the input ref."
        }
      }
    }
  }
}
```