[POST] - Enrich Job

  • Updated

Use the Enrich Job endpoint to submit a bulk of Enrich queries.  It creates an asynchronous job on InsideView servers. See Using the Bulk APIs for more details.

Endpoint

POST https://api.insideview.com/api/v1/enrich/job

Request

HTTP Headers

Header Name Type Required Description
accessToken String Yes Valid access token.
See Authentication and Authorization Overview for more details.
Accept String No Selects the response's content type.  
Valid values are application/json and application/xml (default).
Accept-Language String No Select the response's language and locale.
Default value: en-en
See Internationalization Support for more details.
Content-Type String No Input content type.
Valid values are application/octet-stream and text/plain

Query Parameters

Parameter Name Type Required Description
webhook String No URL for receiving Job status

Request Body

The CSV input data should be submitted in the request body.  The request can contain up to 10,000 lines. See Using the Bulk APIs for more details.

The input data should contain exactly the columns specified below, in the specified order.  The data should not contain a row describing the columns.

Column Order Description
id 1 Your row identifier.  Will be part of the output.
city 2 Company address's city.
companyName 3 Company name
country 4 Company address's country name (e.g. United States, France).
email 5 Contact's email address
firstName 6 Contact's first name.
lastName 7 Contact's last name.
state 8 Company address's state.
street 9 Company address's street.
ticker 10 Company address's stock exchange symbol.
title 11 Contact's title.
url 12 Company web site.
zip 13 Company address's zip code.
confidenceScore 14 Confidence score threshold for returning a match
isContactRequired 15 Returns only if contact is matched
isPhoneRequired 16 Returns only matched contacts if they have a phone number
(If contact doesn't have phone number, company's phone number is considered)
isEmailRequired 17 Returns only if contact has an email address
fullName 18 Contact's Full name 
contactMatching 19 "active" (Default), "all", "inactive" 

Example input data

myid-1,,Google Inc,,,,,,,,,google.com,,50,True,,False
myid-2,,,,umberto@insideview.com,,,,,,,,45,,,
myid-3,Palo Alto,Apple,,,,,,,,,,,

Responses

Here are the major responses the API may return.

For details on the errors, see API Error Codes.

HTTP 200

An HTTP 200 status means the data have been accepted and a job have been queued.

Name type Description

businessStructure

String

The organizational structure of a company (globalParent, uncategorized, subsidiary, group, branch, independent) 

companyStatusV2

String

Company status (operating, non-Operating, acquired, liquidating, outOfBusiness, unassigned

companyTypeV2

String

Company type (public, private, government, organization, unknown)

siteCount

String

Number of company sites

siteLocationCount

String

Number of company sites that has site related information

siteTypes

String

Type of a site

 

Type: application/json

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "/",
  "type": "object",
  "properties": {
    "jobId": {
      "id": "jobId",
      "type": "string"
    },
    "status": {
      "id": "status",
      "type": "string"
    },
    "type": {
      "id": "type",
      "type": "string"
    }
  }
}

Example

{
  "jobId": "hu3vc294p1tigrmneavm",
  "status": "accepted",
  "type": "enrich"
}

Type: application/xml

Schema

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:element name="BulkJobStatus" type="BulkJobStatusDTO"/>

    <xs:complexType name="BulkJobStatusDTO">
        <xs:sequence>
            <xs:element name="jobId" type="xs:string" />
            <xs:element name="status" type="xs:string" />
            <xs:element name="type" type="xs:string" />     
        </xs:sequence>
    </xs:complexType>
</xs:schema>

Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BulkJobStatus>
    <jobId>81g8d74jjo8s4grarkii</jobId>
    <status>accepted</status>
    <type>enrich</type>
</BulkJobStatus>

HTTP 400

An HTTP 400 error code may have several causes:

  • Validation of input file failed
  • Insufficient transaction quota available
  • Too many job submitted to the processing queue
  • etc.

Use the error number provided to review the error cause and actions you may take in API Error Codes.

HTTP 401

Unauthorized Error - Cannot use API's without setting a valid accessToken in header.

HTTP 405

Method Not Allowed - Your are not allowed to access this API.

HTTP 415

The Content-Type mandatory header is not provided.

HTTP 429

Request is throttled.