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

# Search the knowledge base

> Flat 2p per request, debited from your prepaid balance.



## OpenAPI

````yaml api/openapi.json POST /search
openapi: 3.1.0
info:
  title: Amoreg Regulatory Knowledge API
  version: 1.0.0
  description: >-
    Hybrid semantic + keyword search over Amoreg's regulatory knowledge base,
    scoped to the jurisdictions enabled for your organisation. Prepaid credits
    in GBP: 2p per search, 2p per screening keyword.
servers:
  - url: https://app.amoreg.com/api/v1
security:
  - apiKey: []
paths:
  /search:
    post:
      summary: Hybrid search the regulatory knowledge base
      description: Flat 2p per request, debited from your prepaid balance.
      operationId: search
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                  maxLength: 1000
                jurisdictions:
                  type: array
                  items:
                    type: string
                  description: >-
                    Jurisdiction slugs. Defaults to every jurisdiction enabled
                    for your organisation.
                topK:
                  type: integer
                  minimum: 1
                  maximum: 50
                  default: 10
              required:
                - query
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                type: object
                properties:
                  requestId:
                    type: string
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/SearchMatch'
                  creditsChargedPence:
                    type: integer
                  availablePence:
                    type: integer
        '402':
          description: Insufficient credit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SearchMatch:
      type: object
      properties:
        content:
          type: string
        score:
          type: number
        source:
          type: string
        citationPath:
          type: string
        jurisdictionSlugs:
          type: array
          items:
            type: string
      required:
        - content
        - score
    Error:
      type: object
      properties:
        error:
          type: string
        details:
          type: string
      required:
        - error
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        Organisation API key created in the dashboard (format: amrg_live_…).
        Sent as `Authorization: Bearer amrg_live_…`.

````