# Create a new asynchronous OSINT search

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/searches:
    post:
      summary: Create a new asynchronous OSINT search
      deprecated: false
      description: >
        Creates a new **asynchronous** OSINT search for a given identifier (for
        example, an email,

        domain or username). The search runs in the background; the response
        returns immediately

        with a `searchId` and status `processing`.


        Use `GET /v1/searches/{searchId}` to poll for status and results. For a
        single request that

        waits and returns results in the same response, use `POST
        /v1/searches/sync` (synchronous search).


        To Deep Research (Available on Email, Phone and Name search), include:

        "additional_modules": ["digital_accounts_expansion"]
      operationId: createSearchV1
      tags:
        - Searches
        - Searches
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSearchRequest'
            examples:
              '2':
                value:
                  type: email
                  value: someone@example.com
                summary: Email (Standard)
              '3':
                value:
                  type: name
                  value: John Doe
                summary: Name (Standard)
              emailSearch:
                value:
                  type: email
                  value: someone@example.com
                  additional_modules:
                    - digital_accounts_expansion
                summary: Email search (Deep Research)
      responses:
        '201':
          description: Asynchronous search job successfully created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSearchResponse'
              examples:
                created:
                  summary: Newly created search
                  value:
                    success: true
                    data:
                      searchId: f6f3b720-4f3a-4dcf-9d0e-6e5efc46f8c9
                      type: email
                      value: someone@example.com
                      status: processing
                      createdAt: '2025-01-01T12:00:00.000Z'
          headers: {}
          x-apidog-name: ''
        '400':
          description: >
            Validation error (missing fields, invalid type, or invalid
            additional_modules).

            Use errorCode INVALID_ADDITIONAL_MODULES when the request contains
            invalid module IDs.
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
          x-apidog-name: ''
        '401':
          description: The request is missing or has an invalid bearer token.
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
        '403':
          description: >
            Search is not allowed for the current user (for example, free‑tier
            restrictions).

            Use errorCode SEARCH_NOT_ALLOWED_FOR_FREE_USER when the search type
            or value

            is not permitted for free users.
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
        '422':
          description: >-
            The `value` does not match the expected format for the chosen
            `type`.
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
        '429':
          description: >
            The user has exceeded the allowed search limits or rate limit.

            Use errorCode SEARCH_LIMIT_EXCEEDED when search quota is exceeded,
            or

            RATE_LIMIT_EXCEEDED when request rate is too high.
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
        '500':
          description: Unexpected server error while creating the search.
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
      security:
        - bearerAuth: []
          x-apidog:
            schemeGroups:
              - id: JhAIKzKxYwQMfRtnqXauM
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: JhAIKzKxYwQMfRtnqXauM
            scopes:
              JhAIKzKxYwQMfRtnqXauM:
                bearerAuth: []
      x-apidog-folder: Searches
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1215492/apis/api-29465630-run
components:
  schemas:
    CreateSearchRequest:
      type: object
      properties:
        type:
          type: string
          description: Kind of search to perform.
          enum:
            - email
            - domain
            - ip
            - username
            - phone
            - cpf
            - cnpj
            - name
        value:
          type: string
          description: >
            Value to search for, whose expected format depends on the chosen
            `type`

            (for example, an email address, a domain name, a phone number,
            etc.).
        additional_modules:
          type: array
          items:
            type: string
          description: >
            Optional list of additional modules to expand the search. Each
            module consumes

            extra credits. Invalid module IDs return 400 with errorCode
            INVALID_ADDITIONAL_MODULES.
      required:
        - type
        - value
      x-apidog-orders:
        - type
        - value
        - additional_modules
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    CreateSearchResponse:
      type: object
      properties:
        success:
          type: boolean
          const: true
        data:
          type: object
          properties:
            searchId:
              type: string
            type:
              type: string
            value:
              type: string
            status:
              type: string
              enum:
                - processing
                - complete
            createdAt:
              type: string
              format: date-time
            balance:
              type: object
              properties:
                credits:
                  type: number
              x-apidog-orders:
                - credits
              required:
                - credits
              x-apidog-ignore-properties: []
          required:
            - searchId
            - type
            - value
            - status
            - createdAt
            - balance
          x-apidog-orders:
            - searchId
            - type
            - value
            - status
            - createdAt
            - balance
          x-apidog-ignore-properties: []
      required:
        - success
        - data
      x-apidog-orders:
        - success
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        errorCode:
          type: string
          description: >
            Stable error code for programmatic handling on the client side.

            Common codes: UNAUTHORIZED, METHOD_NOT_ALLOWED, VALIDATION_ERROR,
            RESOURCE_NOT_FOUND,

            INVALID_JSON, INVALID_VALUE_FORMAT, INVALID_ADDITIONAL_MODULES,
            SEARCH_LIMIT_EXCEEDED,

            RATE_LIMIT_EXCEEDED, SEARCH_NOT_ALLOWED_FOR_FREE_USER,
            DECRYPTION_ERROR,

            BLOCKCHAIN_ERROR, BLOCKCHAIN_NOT_AVAILABLE, PAYLOAD_TRUNCATED,
            WEBHOOKS_NOT_AVAILABLE,

            API_ACCESS_NOT_ALLOWED, INVALID_STRICT_SOURCES,
            INVALID_STRICT_ATTRIBUTES, INTERNAL_SERVER_ERROR.
        message:
          type: string
          description: Human‑readable description of what went wrong.
        details:
          type: object
          additionalProperties: true
          description: Optional extra context (e.g. invalidModules, searchType, reason).
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
          nullable: true
      required:
        - success
        - errorCode
        - message
      x-apidog-orders:
        - success
        - errorCode
        - message
        - details
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
servers:
  - url: https://api.sherlockeye.io
    description: Production
security: []

```
