> ## Documentation Index
> Fetch the complete documentation index at: https://docs.urantia.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Text and Its Chapters

> Returns the corpus facts and its divisions (chapters, or books for the Analects), each with its first and last reference. The corpus accepts its id, slug, or ref prefix: `bhagavad-gita`, `bg`, and `bhagavad-gita-besant-1922` all work.



## OpenAPI

````yaml GET /scriptures/{corpus}
openapi: 3.1.0
info:
  title: Urantia Papers API
  version: 1.0.0
  description: >-
    A developer and AI-agent friendly API for the Urantia Papers. Provides
    full-text search, structured content access, and audio URLs for all 17,000+
    paragraphs across 197 papers.
servers:
  - url: https://api.urantia.dev
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
paths:
  /scriptures/{corpus}:
    get:
      tags:
        - Scriptures
      summary: Get one text and its chapters
      description: >-
        Returns the corpus facts and its divisions (chapters, or books for the
        Analects), each with its first and last reference. The corpus accepts
        its id, slug, or ref prefix: `bhagavad-gita`, `bg`, and
        `bhagavad-gita-besant-1922` all work.
      operationId: getScripture
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 64
            description: >-
              Corpus id, slug, or ref prefix, e.g. `bhagavad-gita`, `bg`, or
              `dhammapada`
          required: true
          description: >-
            Corpus id, slug, or ref prefix, e.g. `bhagavad-gita`, `bg`, or
            `dhammapada`
          name: corpus
          in: path
      responses:
        '200':
          description: The corpus
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      slug:
                        type: string
                      religion:
                        type: string
                      title:
                        type: string
                      translator:
                        type: string
                      year:
                        type: integer
                      refPrefix:
                        type: string
                      urantiaSection:
                        type:
                          - string
                          - 'null'
                        description: >-
                          The Paper 131 section headed with this religion, or
                          null when Paper 131 has no such heading
                      sourceUrl:
                        type: string
                      license:
                        type: string
                      divisionLabel:
                        type: string
                      unitLabel:
                        type: string
                      passageCount:
                        type: integer
                      refLevels:
                        type: integer
                        description: >-
                          Numbers in a full ref: 1 for `Dhp 183`, 2 for `BG
                          2.47`, 3 for `Epictetus 3.22.5`
                      notes:
                        type:
                          - string
                          - 'null'
                        description: How the text is numbered or selected
                      divisions:
                        type: array
                        items:
                          type: object
                          properties:
                            division:
                              type: integer
                            title:
                              type:
                                - string
                                - 'null'
                            firstRef:
                              type: string
                            lastRef:
                              type: string
                            passageCount:
                              type: integer
                          required:
                            - division
                            - title
                            - firstRef
                            - lastRef
                            - passageCount
                    required:
                      - id
                      - slug
                      - religion
                      - title
                      - translator
                      - year
                      - refPrefix
                      - urantiaSection
                      - sourceUrl
                      - license
                      - divisionLabel
                      - unitLabel
                      - passageCount
                      - refLevels
                      - notes
                      - divisions
                required:
                  - data
              example:
                data:
                  id: bhagavad-gita-besant-1922
                  slug: bhagavad-gita
                  religion: Hinduism
                  title: The Bhagavad Gita
                  translator: Annie Besant (4th edition)
                  year: 1922
                  refPrefix: BG
                  urantiaSection: '131:4'
                  sourceUrl: https://en.wikisource.org/wiki/Bhagavad-Gita_(Besant_4th)
                  license: Public domain in the United States
                  divisionLabel: chapter
                  unitLabel: verse
                  passageCount: 701
                  refLevels: 2
                  notes: null
                  divisions:
                    - division: 1
                      title: null
                      firstRef: BG 1.1
                      lastRef: BG 1.47
                      passageCount: 47
                    - division: 2
                      title: null
                      firstRef: BG 2.1
                      lastRef: BG 2.72
                      passageCount: 72
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '404':
          description: Corpus or passage not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '429':
          description: Too many requests
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
components:
  headers:
    X-RateLimit-Limit:
      description: The number of requests allowed in the current window.
      schema:
        type: integer
      example: 200
    X-RateLimit-Remaining:
      description: The number of requests left in the current window.
      schema:
        type: integer
      example: 199
    X-RateLimit-Reset:
      description: The time the window resets, in Unix seconds.
      schema:
        type: integer
      example: 1791152213
  schemas:
    ProblemDetails:
      type: object
      description: An RFC 9457 problem details object. Every error response uses it.
      properties:
        type:
          type: string
          format: uri
          description: A URI that names the error type.
        title:
          type: string
          description: The short name of the status.
        status:
          type: integer
          description: The HTTP status code.
        detail:
          type: string
          description: What went wrong in this request.
      required:
        - type
        - title
        - status
        - detail
      example:
        type: https://urantia.dev/errors/not-found
        title: Not Found
        status: 404
        detail: Paragraph not found

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.