Parcha EnrichCompany API

The EnrichCompany API from Parcha — 2 operation(s) for enrichcompany.

OpenAPI Specification

parcha-enrichcompany-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Parcha Admin EnrichCompany API
  version: 1.0.0
  description: API for managing Parcha jobs and checks
servers:
- url: https://api.parcha.ai/api/v1
  description: Agent Hub API server
- url: https://demo.parcha.ai/api/v1
  description: Sandbox API server
- url: https://us1.parcha.ai/api/v1
  description: Legacy API server
- url: http://{your-company-domain}.parcha.ai/api/v1
  description: Custom Enterpris server (your company's API server)
security:
- bearerAuth: []
tags:
- name: EnrichCompany
paths:
  /enrichCompany:
    post:
      security:
      - bearerAuth: []
      summary: Enrich company data
      description: Enrich company data using People Data Labs API
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                website:
                  type: string
                ticker:
                  type: string
                profile:
                  type: string
      responses:
        '200':
          description: Company enrichment successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - success
                    - error
                    - not_found
                  data:
                    type: object
                  error:
                    type: string
                  source:
                    type: string
        '500':
          description: Enrichment failed
      tags:
      - EnrichCompany
  /api/v1/enrichCompany:
    post:
      summary: Enrich Company
      description: "Enrich Company Data\n\nThis endpoint enriches company data using the People Data Labs (PDL) API.\nIt takes a company name, website, ticker, or profile URL and returns enriched\ncompany information including industry, size, location, social profiles, etc.\n\nArgs:\n    enrichment_request: Request containing company identifiers\n\nReturns:\n    CompanyEnrichmentResponse: Enriched company data or error information"
      operationId: enrich_company_api_v1_enrichCompany_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyEnrichmentRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyEnrichmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - EnrichCompany
components:
  schemas:
    CompanyEnrichmentResponse:
      properties:
        status:
          type: string
          title: Status
          description: Status of the enrichment request (success, error, not_found)
        data:
          anyOf:
          - type: object
          - type: 'null'
          title: Data
          description: Enriched company data from PDL
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
          description: Error message if enrichment failed
        source:
          type: string
          title: Source
          description: Data source used for enrichment
          default: PeopleDataLabs
      type: object
      required:
      - status
      title: CompanyEnrichmentResponse
      description: Response model for company enrichment
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CompanyEnrichmentRequest:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
          description: Company name
        website:
          anyOf:
          - type: string
          - type: 'null'
          title: Website
          description: Company website URL
        ticker:
          anyOf:
          - type: string
          - type: 'null'
          title: Ticker
          description: Stock ticker symbol
        profile:
          anyOf:
          - type: string
          - type: 'null'
          title: Profile
          description: Social profile URL (e.g., LinkedIn company page)
      type: object
      title: CompanyEnrichmentRequest
      description: Request model for company enrichment
    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: API key obtained from your Parcha account settings. Include as Bearer token in the Authorization header.