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

# Ashtakavarga reductions



## OpenAPI

````yaml /openapi.public.json post /api/v3/vedic/ashtakavarga
openapi: 3.1.0
info:
  title: AstroM8 Public API
  version: 1.1.0
  description: >-
    Astrology calculations, reports, customer delivery, and enterprise
    workflows. Each operation declares whether it uses an API key or a customer
    session bearer token.
servers:
  - url: https://api.astrom8.com
    description: Production
security: []
tags:
  - name: Western
    description: Natal, relationship, return, progression, and transit calculations.
  - name: Vedic
    description: Lahiri sidereal Vedic calculations, matching, timing, and remedies.
  - name: Thai Astrology
    description: Thai calendar, auspicious timing, lunar, festival, and wheel tools.
  - name: Chinese & Korean
    description: BaZi, Qi Men Dun Jia, and Saju calculations.
  - name: Horoscopes
    description: Published daily and range horoscope content.
  - name: Reports
    description: Branded report generation and asynchronous job polling.
  - name: Tarot & Numerology
    description: Tarot spreads and Pythagorean numerology.
  - name: Uranian
    description: Uranian charts, midpoints, and planetary pictures.
  - name: Developer workflow
    description: Preflight capability eligibility and credit estimates.
  - name: Customer reports
    description: Session-authenticated report jobs and reusable brand profiles.
  - name: Customer delivery
    description: Session-authenticated webhooks and scheduled horoscope delivery.
  - name: Cultural Intelligence
    description: >-
      Enterprise API-key workflows for encrypted profiles, teams, and campaign
      content.
paths:
  /api/v3/vedic/ashtakavarga:
    post:
      tags:
        - Vedic
      summary: Ashtakavarga reductions
      operationId: createVedicAshtakavarga
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BirthSubjectInput'
      responses:
        '200':
          description: Ashtakavarga score distribution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VedicAshtakavargaResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          description: Pro tier required.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BirthSubjectInput:
      type: object
      required:
        - date
        - time
        - latitude
        - longitude
        - timezoneOffsetMinutes
      properties:
        ayanamsa:
          type: string
          enum:
            - lahiri
          default: lahiri
        date:
          type: string
          format: date
          examples:
            - '1992-04-15'
        time:
          type: string
          pattern: ^\d{2}:\d{2}(:\d{2})?$
          examples:
            - '08:30:00'
        latitude:
          type: number
          minimum: -90
          maximum: 90
        longitude:
          type: number
          minimum: -180
          maximum: 180
        timezoneOffsetMinutes:
          type: integer
          minimum: -840
          maximum: 840
    VedicAshtakavargaResponse:
      type: object
      required:
        - system
        - ayanamsa
        - method
        - total_bindus
        - positions
        - bhinna
        - sarva
        - reductions
        - average_sarva_per_sign
        - strongest_signs
        - weakest_signs
        - notes
      properties:
        system:
          type: string
          enum:
            - vedic
        ayanamsa:
          type: string
        method:
          type: string
          enum:
            - parashari_bhinna_sarva_trikona_ekadhipatya
        total_bindus:
          type: integer
          enum:
            - 337
        positions:
          type: object
        bhinna:
          type: array
          items:
            type: object
            required:
              - planet
              - bindus
              - total
        sarva:
          type: array
          minItems: 12
          maxItems: 12
          items:
            type: object
            required:
              - sign_index
              - sign
              - sign_th
              - bindus
        reductions:
          type: object
          required:
            - trikona_bhinna
            - trikona_sarva
            - trikona_total
            - ekadhipatya_bhinna
            - ekadhipatya_sarva
            - ekadhipatya_total
          properties:
            trikona_bhinna:
              type: array
              items:
                type: object
                required:
                  - planet
                  - bindus
                  - total
            trikona_sarva:
              type: array
              minItems: 12
              maxItems: 12
              items:
                type: object
                required:
                  - sign_index
                  - sign
                  - sign_th
                  - bindus
            trikona_total:
              type: integer
              minimum: 0
              maximum: 337
            ekadhipatya_bhinna:
              type: array
              items:
                type: object
                required:
                  - planet
                  - bindus
                  - total
            ekadhipatya_sarva:
              type: array
              minItems: 12
              maxItems: 12
              items:
                type: object
                required:
                  - sign_index
                  - sign
                  - sign_th
                  - bindus
            ekadhipatya_total:
              type: integer
              minimum: 0
              maximum: 337
        average_sarva_per_sign:
          type: number
        strongest_signs:
          type: array
        weakest_signs:
          type: array
        notes:
          type: string
    JsonError:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: >-
            Stable slug (e.g. unauthorized, payment_required,
            internal_server_error).
        message:
          type: string
          description: Human-readable message safe for clients.
        code:
          type: string
          description: Optional provider-specific code.
        request_id:
          type: string
          description: Correlation id when middleware sets it.
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/JsonError'
          example:
            error: unauthorized
            message: Invalid API key
            code: '401'
            request_id: 01HQXYZ...
    PaymentRequired:
      description: >-
        Insufficient credits (checked before work where applicable; deduction is
        atomic)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/JsonError'
          example:
            error: payment_required
            message: Insufficient credits for this request
            code: '402'
            request_id: 01HQXYZ...
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: Use the raw API key as the Bearer token, or send X-API-Key instead.

````