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

# Enrich Contact

> Processes various types of input data to enrich contact information



## OpenAPI

````yaml POST /public-api/contacts/{id}/enrich
openapi: 3.0.0
info:
  title: Agents Public API
  version: '1.0'
  description: REST API for managing contacts, campaigns, and conversations
  termsOfService: https://agents.nineteen58.co.za/terms
  contact:
    name: API Support
    url: https://agents.nineteen58.co.za/support
    email: support@nineteen58.co.za
servers:
  - url: https://agents.nineteen58.co.za
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /public-api/contacts/{id}/enrich:
    post:
      tags:
        - Contacts
      summary: Enrich contact data
      description: Processes various types of input data to enrich contact information
      operationId: postpublicapicontactsidenrich
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
          description: The contact ID
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - text
                    - json
                    - pdf
                    - image
                  description: Type of input data
                data:
                  type: string
                  description: The input data or file content
                prompt:
                  type: string
                  description: Enrichment prompt or instructions
      responses:
        '200':
          description: Contact enriched successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  identifier:
                    type: string
                  name:
                    type: string
                  email:
                    type: string
                    nullable: true
                  channel:
                    type: string
                  personal_context:
                    type: string
                    nullable: true
                  notes:
                    type: string
                    nullable: true
                  relevant_information:
                    type: string
                    nullable: true
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: Contact not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````