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

# Enrich selected results

> Enrich only the requested 1-based result numbers from a completed search made with this API key. Pass its request_id to select that search; omission uses the latest completed search. After a people search, choose exactly one field: email, phone, or university. After a company search, omit field. Repeat the same request to continue work that is still running.

Use the `request_id` returned by the search and choose up to 25 unique 1-based positions. For people, choose exactly one field: `email`, `phone`, or `university`. For companies, omit `field`.

If `done` is false, retain the reference and exact selection to continue the same work. A successful HTTP response alone does not mean every selected result was found. Inspect each result's status and the overall `status`.

[Search and enrich walkthrough](https://docs.vsyble.com/guides/search-and-enrich.md)


## OpenAPI

````yaml openapi.json POST /v1/enrich
openapi: 3.1.0
info:
  title: Vsyble API
  version: 1.0.0
  description: >-
    Search for people and companies, enrich selected results, and manage
    outreach through scoped credentials. Requests and responses use JSON, and
    every operation requires a revocable Vsyble API key.
servers:
  - url: https://api.vsyble.com
    description: Production
security:
  - VsybleApiKey: []
tags:
  - name: Search
    description: Find people or companies from public sources.
  - name: Enrichment
    description: >-
      Enrich explicitly selected, 1-based result numbers from a completed search
      made with this credential.
externalDocs:
  description: Vsyble API documentation
  url: https://vsyble.com/docs/api
paths:
  /v1/enrich:
    post:
      tags:
        - Enrichment
      summary: Enrich selected search results
      description: >-
        Enrich only the requested 1-based result numbers from a completed search
        made with this API key. Pass its request_id to select that search;
        omission uses the latest completed search. After a people search, choose
        exactly one field: email, phone, or university. After a company search,
        omit field. Repeat the same request to continue work that is still
        running.
      operationId: enrichSearchResults
      requestBody:
        required: true
        description: >-
          Selected result numbers and, for people only, the single field to
          enrich.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnrichmentRequest'
            example:
              request_id: 11111111-1111-4111-8111-111111111111
              result_numbers:
                - 1
                - 3
              field: email
      responses:
        '200':
          description: >-
            The current enrichment state. A running response can be continued by
            repeating the same request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrichmentResponse'
              example:
                request_id: 11111111-1111-4111-8111-111111111111
                tool: people_search
                entity_type: person
                status: completed
                done: true
                result_count: 2
                enriched_count: 2
                results:
                  - result_position: 0
                    result_number: 1
                    status: completed
                    result:
                      name: Jordan Lee
                      email: jordan.lee@example.com
                  - result_position: 2
                    result_number: 3
                    status: completed
                    result:
                      name: Taylor Morgan
                      email: taylor.morgan@example.com
        '400':
          description: The JSON body or one of its fields is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: invalid_request
                  message: limit must be an integer between 1 and 100
                  retry_after_seconds: 0
        '401':
          description: The API key is missing, malformed, expired, revoked, or unknown.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: invalid_api_key
                  message: Missing or invalid API key
        '403':
          description: The API key or account cannot use this operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: insufficient_scope
                  message: API key does not have the required permission
                  retry_after_seconds: 0
        '404':
          description: No completed search exists for this API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: search_not_found
                  message: Run a people or company search before enriching
                  retry_after_seconds: 0
        '405':
          description: The route only accepts POST requests.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: method_not_allowed
                  message: Only POST is supported
        '409':
          description: A selected result number is not available in the selected search.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: invalid_result_number
                  message: Result 3 is not in the selected search
                  retry_after_seconds: 0
        '413':
          description: The request body exceeds 16 KiB.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: request_too_large
                  message: Request body is too large
        '429':
          description: >-
            An edge rate limit, account quota, or credential spend limit was
            reached.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: api_rate_limit_exceeded
                  message: Too many Vsyble API requests
                  retry_after_seconds: 60
          headers:
            Retry-After:
              description: Seconds to wait before retrying, when available.
              schema:
                type: integer
                minimum: 0
        '500':
          description: >-
            The enrichment failed unexpectedly. The response remains safe for
            callers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: internal_error
                  message: The enrichment could not be completed
                  retry_after_seconds: 0
        '503':
          description: >-
            The gateway, credential verifier, quota service, or another required
            dependency is temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: api_unavailable
                  message: The Vsyble API is temporarily unavailable
components:
  schemas:
    EnrichmentRequest:
      type: object
      additionalProperties: false
      required:
        - result_numbers
      properties:
        request_id:
          type: string
          format: uuid
          description: >-
            request_id returned by the completed search to enrich, made with
            this credential. Omit to use its latest completed search. Repeat the
            same ID when continuing enrichment.
        result_numbers:
          type: array
          minItems: 1
          maxItems: 25
          uniqueItems: true
          items:
            type: integer
            minimum: 1
            maximum: 100
          description: >-
            Explicit 1-based result numbers from the selected search made with
            this API key.
          example:
            - 1
            - 3
        field:
          type: string
          enum:
            - email
            - phone
            - university
          description: >-
            Required after a people search and omitted after a company search.
            Only the selected category is requested from the provider.
          example: email
    EnrichmentResponse:
      type: object
      additionalProperties: false
      required:
        - request_id
        - tool
        - entity_type
        - status
        - done
        - result_count
        - enriched_count
        - results
      properties:
        request_id:
          type: string
          format: uuid
          description: Request ID of the source search being enriched.
        tool:
          type: string
          enum:
            - people_search
            - company_search
        entity_type:
          type: string
          enum:
            - person
            - company
        status:
          type: string
          enum:
            - running
            - completed
            - partial
            - not_found
            - failed
        done:
          type: boolean
          description: Whether every selected result reached a terminal state.
        result_count:
          type: integer
          minimum: 0
          description: Number of selected results in this response.
        enriched_count:
          type: integer
          minimum: 0
          description: Number of selected results enriched successfully.
        results:
          type: array
          items:
            $ref: '#/components/schemas/EnrichmentResult'
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Stable machine-readable error code.
            message:
              type: string
              description: Concise, caller-safe description of the outcome.
            request_id:
              type: string
              format: uuid
              description: Request identifier, when available.
            retry_after_seconds:
              type: number
              minimum: 0
              description: Recommended retry delay, when applicable.
    EnrichmentResult:
      type: object
      additionalProperties: false
      required:
        - result_position
        - result_number
        - status
        - result
      properties:
        result_position:
          type: integer
          minimum: 0
          maximum: 99
          description: Zero-based stored position of the source result.
        result_number:
          type: integer
          minimum: 1
          maximum: 100
          description: One-based result number used in API requests.
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - not_found
            - failed
        result:
          anyOf:
            - $ref: '#/components/schemas/PublicResult'
            - type: 'null'
          description: Sanitized enrichment data when completed, otherwise null.
    PublicResult:
      type: object
      additionalProperties: true
      description: >-
        A sanitized public-source result. Available fields vary with the entity
        and evidence returned.
  securitySchemes:
    VsybleApiKey:
      type: apiKey
      in: header
      name: X-Vsyble-Api-Key
      description: >-
        Create and revoke scoped API keys at https://app.vsyble.com/mcp. Keep
        each key outside source control and use a separate key per application
        or environment.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.