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

# SCJN Tesis

> Retrieve one tesis by its registro digital (`registration_number`), including the full text, citation (clave, época, localización), subjects, precedent notes, and linked ruling ids.



## OpenAPI

````yaml /api-reference/openapi.json post /mx/scjn/tesis/v1
openapi: 3.1.0
info:
  title: Croma Marketplace API
  version: 1.0.0
  description: >-
    Government-data APIs for Colombia, Peru, Mexico, and global web search.
    Croma normalizes public-sector data into structured JSON for product teams
    and AI agents.
servers:
  - url: https://api.croma.run
security: []
paths:
  /mx/scjn/tesis/v1:
    post:
      tags:
        - Mexico
        - SCJN
      summary: SCJN Tesis
      description: >-
        Retrieve one tesis by its registro digital (`registration_number`),
        including the full text, citation (clave, época, localización),
        subjects, precedent notes, and linked ruling ids.
      operationId: scjn_tesis
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - registration_number
              properties:
                registration_number:
                  type: string
                  pattern: ^\d{4,10}$
                  description: >-
                    Registro digital of the tesis (`registration_number` from
                    search).
              additionalProperties: false
            example:
              registration_number: '2001360'
      responses:
        '200':
          description: Successful response
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left before you are throttled.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: ISO 8601 timestamp when the window resets.
              schema:
                type: string
                format: date-time
            X-Cache:
              description: HIT or MISS. Cached hits still count against your quota.
              schema:
                type: string
                enum:
                  - HIT
                  - MISS
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScjnTesisResponse'
        '400':
          description: Invalid request body
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Missing or invalid API key
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left before you are throttled.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: ISO 8601 timestamp when the window resets.
              schema:
                type: string
                format: date-time
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '502':
          description: Upstream source returned an error
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
      externalDocs:
        description: Interactive documentation and examples
        url: https://docs.usecroma.com/guides/mexico/scjn
components:
  schemas:
    ScjnTesisResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - found
            - registration_number
            - tesis
          properties:
            found:
              type: boolean
            registration_number:
              type: string
            tesis:
              oneOf:
                - $ref: '#/components/schemas/ScjnTesis'
                - type: 'null'
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              description: >-
                Broad category: invalid_request_error, authentication_error,
                not_found_error, rate_limit_error, upstream_error, api_error.
            code:
              type: string
              description: Machine-readable specific code.
            message:
              type: string
              description: Human-readable explanation, safe to surface in UI.
            param:
              type: string
              description: Field that triggered the error. Present on validation errors.
            details:
              type: object
              description: Free-form structured detail.
    ScjnTesis:
      type: object
      required:
        - registration_number
        - title
        - subtitle
        - type
        - citation
        - epoch
        - instance
        - circuit
        - court
        - source
        - subjects
        - location
        - text
        - notes
        - precedent_notes
        - linked_case_registrations
        - linked_vote_registrations
        - formation
        - issue
        - publication_date
        - binding_date
        - fingerprint
        - official_url
      properties:
        registration_number:
          type: string
        title:
          type: string
        subtitle:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
          enum:
            - jurisprudencia
            - aislada
            - null
        citation:
          type:
            - string
            - 'null'
        epoch:
          type:
            - string
            - 'null'
        instance:
          type:
            - string
            - 'null'
        circuit:
          type:
            - string
            - 'null'
        court:
          type:
            - string
            - 'null'
        source:
          type:
            - string
            - 'null'
        subjects:
          type: array
          items:
            type: string
        location:
          oneOf:
            - $ref: '#/components/schemas/ScjnTesisLocation'
            - type: 'null'
        text:
          type:
            - string
            - 'null'
          description: Full text of the tesis.
        notes:
          type:
            - string
            - 'null'
        precedent_notes:
          type: array
          items:
            type: string
        linked_case_registrations:
          type: array
          items:
            type: string
          description: Registro digital ids of the rulings this tesis derives from.
        linked_vote_registrations:
          type: array
          items:
            type: string
          description: Registro digital ids of published votes linked to this tesis.
        formation:
          type:
            - string
            - 'null'
          description: How the criterion was formed (e.g. Contradicción de criterios).
        issue:
          type:
            - string
            - 'null'
          description: Semanario issue, e.g. `Libro 28, Agosto de 2023`.
        publication_date:
          type:
            - string
            - 'null'
          format: date
          description: Published in the Semanario; null on pre-Gaceta tesis.
        binding_date:
          type:
            - string
            - 'null'
          format: date
          description: Date the criterion became obligatory; null on pre-Gaceta tesis.
        fingerprint:
          type:
            - string
            - 'null'
        official_url:
          type: string
          format: uri
    ScjnTesisLocation:
      type: object
      required:
        - book
        - volume
        - page
        - month
        - year
      description: Where the tesis was published inside the Semanario Judicial.
      properties:
        book:
          type:
            - string
            - 'null'
        volume:
          type:
            - string
            - 'null'
        page:
          type:
            - integer
            - 'null'
        month:
          type:
            - integer
            - 'null'
        year:
          type:
            - integer
            - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````