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

# Enrich

> Enrich a single place live



## OpenAPI

````yaml https://api.reprompt.io/v2/openapi.json post /enrich
openapi: 3.1.0
info:
  title: Reprompt API v2
  version: '2.0'
servers:
  - url: https://api.reprompt.io/v2
    description: V2 API server
security: []
tags:
  - name: Enrichments
    description: Use AI to enrich place data with various attributes
  - name: Places
    description: Find, match, and check existence of places
paths:
  /enrich:
    post:
      tags:
        - Enrichments
      summary: Enrich
      description: Enrich a single place live
      operationId: enrich_enrich_post
      parameters:
        - name: org_slug
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Org Slug
        - name: apiKey
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Apikey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2EnrichRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2EnrichRequest:
      properties:
        inputs:
          $ref: '#/components/schemas/EnrichInputObject'
          description: Input data for the enrichment (keys depend on attribute_key).
          example:
            full_address: 7 Carmine St, New York, NY 10014
            latitude: 40.7359
            longitude: -73.9911
            name: Joe's Pizza
        attribute_key:
          type: string
          title: Attribute Key
          description: >-
            Key identifying the enrichment to run. See `GET /v2/attributes` for
            the full list of available keys and their required inputs.
        version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Version
          description: >-
            Optional saved agent version to run. Defaults to the active version
            when omitted.
      type: object
      required:
        - inputs
        - attribute_key
      title: V2EnrichRequest
      description: Main enrichment request
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EnrichInputObject:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Name of the place.
          example: Joe's Pizza
        latitude:
          anyOf:
            - type: number
            - type: 'null'
          title: Latitude
          description: Latitude coordinate.
          example: 40.7359
        longitude:
          anyOf:
            - type: number
            - type: 'null'
          title: Longitude
          description: Longitude coordinate.
          example: -73.9911
        full_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Full Address
          description: Full address of the place.
          example: 7 Carmine St, New York, NY 10014
      additionalProperties: true
      type: object
      title: EnrichInputObject
      description: >-
        Typed input object for the /enrich endpoint.


        Explicit fields generate named properties in the OpenAPI schema so that

        Mintlify (and other playgrounds) can render and prefill form fields.

        ``extra="allow"`` lets callers pass arbitrary additional keys (e.g.

        ``test_query``, ``simulate_error``) required by other enrichment types.


        All fields are Optional because different attribute_keys require
        different

        subsets (e.g. reverse_geocode needs only lat/lng, forward_geocode needs

        name+address).  Per-attribute validation is enforced downstream via

        ATTRIBUTE_INPUT_REQUIREMENTS and build_required_inputs_model().
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer token in the format: Bearer YOUR_API_KEY'

````