MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_TOKEN_HERE}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Authentication

Get an authentication token

Example request:
curl --request POST \
    "https://api.biscred.com/auth/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"gbailey@example.net\",
    \"password\": \"|]|{+-\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/auth/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => 'gbailey@example.net',
            'password' => '|]|{+-',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "gbailey@example.net",
    "password": "|]|{+-"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "token": "bearer_token",
    "refresh_token": "refresh_token"
}
 

Request   

POST auth/login

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

email   string     

The email address of the user. Example: gbailey@example.net

password   string     

The password for the user. Example: |]|{+-

Response

Response Fields

token   string     

The token is only valid for 1 hour.

refresh_token   string     

The refresh token is only valid for 30 days.

Refresh the authentication token

requires authentication

Example request:
curl --request GET \
    --get "https://api.biscred.com/auth/refresh/token" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/auth/refresh/token';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/auth/refresh/token"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "token": "bearer_token"
}
 

Request   

GET auth/refresh/token

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Response

Response Fields

token   string     

The token is only valid for 1 hour.

Credits

Get the number of credits available

requires authentication

Example request:
curl --request GET \
    --get "https://api.biscred.com/v1/credits" \
    --header "Authorization: Bearer YOUR_BEARER_TOKEN" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/credits';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer YOUR_BEARER_TOKEN',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/credits"
);

const headers = {
    "Authorization": "Bearer YOUR_BEARER_TOKEN",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": "You have 1000 credits available.",
    "data": {
        "credits": 1000
    }
}
 

Request   

GET v1/credits

Headers

Authorization        

Example: Bearer YOUR_BEARER_TOKEN

Content-Type        

Example: application/json

Accept        

Example: application/json

Endpoints

Get the results from a search using a Biscred query string

requires authentication

Example request:
curl --request POST \
    "https://api.biscred.com/v1/search/query" \
    --header "Authorization: Bearer YOUR_BEARER_TOKEN" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"query\": \"eyJleGNsd..\",
    \"entity_type\": \"company\",
    \"page\": 1
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/search/query';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer YOUR_BEARER_TOKEN',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'query' => 'eyJleGNsd..',
            'entity_type' => 'company',
            'page' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/search/query"
);

const headers = {
    "Authorization": "Bearer YOUR_BEARER_TOKEN",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "query": "eyJleGNsd..",
    "entity_type": "company",
    "page": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request   

POST v1/search/query

Headers

Authorization        

Example: Bearer YOUR_BEARER_TOKEN

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

query   string     

The Biscred query string, after query=, in the url Example: eyJleGNsd..

entity_type   string     

The type of entity the query is for. Example: company

Must be one of:
  • company
  • contact
page   integer  optional    

The page of results to return, default: 1 Example: 1

Request research on a contact or company not found in the system

requires authentication

Example request:
curl --request POST \
    "https://api.biscred.com/v1/research" \
    --header "Authorization: Bearer YOUR_BEARER_TOKEN" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"url\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/research';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer YOUR_BEARER_TOKEN',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'url' => 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/research"
);

const headers = {
    "Authorization": "Bearer YOUR_BEARER_TOKEN",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "url": "http:\/\/www.bailey.biz\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "success": "true",
    "message": "Your request for research has been accepted.",
    "data": "null"
}
 

Request   

POST v1/research

Headers

Authorization        

Example: Bearer YOUR_BEARER_TOKEN

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

url   string     

A company website, company LinkedIn url or a contact LinkedIn url Example: http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html

A listing of currently available metro areas

requires authentication

Example request:
curl --request GET \
    --get "https://api.biscred.com/v1/metros" \
    --header "Authorization: Bearer YOUR_BEARER_TOKEN" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/metros';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer YOUR_BEARER_TOKEN',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/metros"
);

const headers = {
    "Authorization": "Bearer YOUR_BEARER_TOKEN",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "success": "true",
    "message": "",
    "data": [
        "New York Metro",
        "Los Angeles Metro",
        "..."
    ]
}
 

Request   

GET v1/metros

Headers

Authorization        

Example: Bearer YOUR_BEARER_TOKEN

Content-Type        

Example: application/json

Accept        

Example: application/json

Search for companies

requires authentication

Search for companies using any combination of the supported fields.
If multiple fields are provided, the results will include companies that match any of the fields unless "grouped" is set to true.
The meta field in the response includes a next-page-token that can be used to fetch the next page of results.
A maximum of 1,000 records will be returned in a single request.
Send the next_page_token in the next request to fetch additional records.
Use the "best_match" parameter to limit results to the top N most relevant matches (default: 1). When enabled, results are sorted by relevance score and pagination is disabled.

Example request:
curl --request POST \
    "https://api.biscred.com/v1/search/company" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"linkedin\": \"https:\\/\\/www.linkedin.com\\/company\\/biscred\",
    \"company_id\": [
        \"364e3006-aed3-4466-81fb-c16c3b6207f0\"
    ],
    \"domain\": \"biscred.com, without subdomains\",
    \"name\": \"biscred\",
    \"phone_number\": \"555-555-5555\",
    \"metro\": \"New York Metro\",
    \"keywords\": \"engineering structural\",
    \"hq_only\": true,
    \"grouped\": true,
    \"count_only\": true,
    \"preview\": true,
    \"similar\": true,
    \"best_match\": 5
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/search/company';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'linkedin' => 'https://www.linkedin.com/company/biscred',
            'company_id' => [
                '364e3006-aed3-4466-81fb-c16c3b6207f0',
            ],
            'domain' => 'biscred.com, without subdomains',
            'name' => 'biscred',
            'phone_number' => '555-555-5555',
            'metro' => 'New York Metro',
            'keywords' => 'engineering structural',
            'hq_only' => true,
            'grouped' => true,
            'count_only' => true,
            'preview' => true,
            'similar' => true,
            'best_match' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/search/company"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "linkedin": "https:\/\/www.linkedin.com\/company\/biscred",
    "company_id": [
        "364e3006-aed3-4466-81fb-c16c3b6207f0"
    ],
    "domain": "biscred.com, without subdomains",
    "name": "biscred",
    "phone_number": "555-555-5555",
    "metro": "New York Metro",
    "keywords": "engineering structural",
    "hq_only": true,
    "grouped": true,
    "count_only": true,
    "preview": true,
    "similar": true,
    "best_match": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": "Companies found.",
    "data": [
        {
            "id": "d8f13837-4f7f-407d-bddf-b9e5202dd760",
            "name": "Koch-Mante",
            "legal_name": "Koch-Mante Legal",
            "company_aliases": [
                "Monahan-O'Keefe"
            ],
            "location": [
                {
                    "city": "North Leatha",
                    "region": "Iowa",
                    "street": "669 Terry Street Lane, Suite 902",
                    "country": "US",
                    "postal_code": "83416-6364",
                    "type": "Headquarters"
                }
            ],
            "linkedin": [
                "https://www.linkedin.com/company/koch-mante"
            ],
            "websites": [
                "http://www.spinka.com//doloribus"
            ],
            "phones": [
                {
                    "number": "+12812165247",
                    "country": "US",
                    "area_code": "281",
                    "extension": null
                }
            ],
            "asset_classes": [
                "Retail"
            ],
            "industries": []
        }
    ],
    "meta": {
        "total_records": 1,
        "next_page_token": "WzMuNTA2NTU4LCIzOCJd",
        "has_more": false
    }
}
 

Example response (200):


{
    "success": true,
    "message": "",
    "data": {
        "count": 5
    }
}
 

Example response (200, Preview mode - returns UUIDs only, no credits charged):


{
    "success": true,
    "message": "Company UUIDs found.",
    "data": [
        "d8f13837-4f7f-407d-bddf-b9e5202dd760",
        "364e3006-aed3-4466-81fb-c16c3b6207f0"
    ],
    "meta": {
        "total_records": 2,
        "next_page_token": null,
        "has_more": false
    }
}
 

Example response (404, Companies not found):


{
    "success": false,
    "message": "Company not found",
    "data": null
}
 

Request   

POST v1/search/company

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

linkedin   string     

A LinkedIn company url Example: https://www.linkedin.com/company/biscred

company_id   string[]     

One or more company ids. Accepts an array or a comma-separated string. When similar is true, only a single id may be provided.

domain   string     

A website domain Example: biscred.com, without subdomains

name   string     

A company name Example: biscred

phone_number   string     

A phone number to search for Example: 555-555-5555

metro   string     

A metro area. Note: A list of available metros is available using the metros endpoint Example: New York Metro

keywords   string     

Keywords seperated by a space Example: engineering structural

hq_only   boolean  optional    

Search only metros where the company has a headquarters Example: true

grouped   boolean  optional    

If true, only records that match all requested fields will be returned Example: true

count_only   boolean  optional    

If true, only the count of the records found will be returned Example: true

preview   boolean  optional    

If true, returns only UUIDs of matching records without spending credits Example: true

similar   boolean  optional    

If true, return records that are similar to the included company_id Example: true

best_match   integer  optional    

Limit results to the top N most relevant matches (1-100). Pass true as shorthand for 1. When set, results are sorted by relevance score (descending) and pagination is disabled. The meta.total_records field reflects the truncated returned count; the top-level count field still carries the full match count. Example: 5

Search for contacts

requires authentication

Search for contacts using any combination of the supported fields.
If multiple fields are provided, the results will include contacts that match any of the fields unless "grouped" is set to true.
The meta field in the response includes a next-page-token that can be used to fetch the next page of results.
A maximum of 1,000 records will be returned in a single request.
Send the next_page_token in the next request to fetch additional records.
Use the "best_match" parameter to limit results to the top N most relevant matches (default: 1). When enabled, results are sorted by relevance score and pagination is disabled.

Example request:
curl --request POST \
    "https://api.biscred.com/v1/search/contact" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"contact_id\": [
        \"364e3006-aed3-4466-81fb-c16c3b6207f0\"
    ],
    \"linkedin\": \"https:\\/\\/www.linkedin.com\\/in\\/test-user\",
    \"email\": \"support@biscred.com\",
    \"first_name\": \"architecto\",
    \"last_name\": \"architecto\",
    \"company_name\": \"architecto\",
    \"company_id\": [
        \"364e3006-aed3-4466-81fb-c16c3b6207f0\"
    ],
    \"job_title\": \"Chief Executive Officer\",
    \"phone_number\": \"555-555-5555\",
    \"grouped\": true,
    \"count_only\": true,
    \"preview\": true,
    \"best_match\": 5
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/search/contact';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'contact_id' => [
                '364e3006-aed3-4466-81fb-c16c3b6207f0',
            ],
            'linkedin' => 'https://www.linkedin.com/in/test-user',
            'email' => 'support@biscred.com',
            'first_name' => 'architecto',
            'last_name' => 'architecto',
            'company_name' => 'architecto',
            'company_id' => [
                '364e3006-aed3-4466-81fb-c16c3b6207f0',
            ],
            'job_title' => 'Chief Executive Officer',
            'phone_number' => '555-555-5555',
            'grouped' => true,
            'count_only' => true,
            'preview' => true,
            'best_match' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/search/contact"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "contact_id": [
        "364e3006-aed3-4466-81fb-c16c3b6207f0"
    ],
    "linkedin": "https:\/\/www.linkedin.com\/in\/test-user",
    "email": "support@biscred.com",
    "first_name": "architecto",
    "last_name": "architecto",
    "company_name": "architecto",
    "company_id": [
        "364e3006-aed3-4466-81fb-c16c3b6207f0"
    ],
    "job_title": "Chief Executive Officer",
    "phone_number": "555-555-5555",
    "grouped": true,
    "count_only": true,
    "preview": true,
    "best_match": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": "Contacts found",
    "data": [
        {
            "id": "2f1880c3-d338-4fb5-80b5-b8921a182023",
            "name": "Luis Dicki",
            "first_name": "Luis",
            "last_name": "Dicki",
            "emails": [
                "hester.von@example.net"
            ],
            "linkedin": [
                "https://www.linkedin.com/in/luis-dicki"
            ],
            "metro": null,
            "location": {
                "city": "East Kiannaburgh",
                "region": "Missouri",
                "street": "5931 Hunter Extension Harbors",
                "country": "US",
                "postal_code": "73585"
            },
            "phones": [
                {
                    "number": "+14171477191",
                    "country": "US",
                    "area_code": "417",
                    "extension": null,
                    "type": "work"
                }
            ],
            "employments": [
                {
                    "company_id": "e6b3f693-bd0b-4bb3-85d2-4dbc3c186f36",
                    "company_name": "Stark-Parisian",
                    "primary": true,
                    "job_title": "Food Tobacco Roasting Eligibility Interviewer",
                    "start_date": null,
                    "end_date": null,
                    "asset_classes": [
                        "Data Center"
                    ],
                    "job_classifications": [
                        "General Manager"
                    ]
                },
                {
                    "company_id": "f0519679-0a9e-42c2-9825-f7ac29ed1f48",
                    "company_name": "Luettgen PLC",
                    "primary": false,
                    "job_title": "Electrolytic Plating Machine Operator Claims Taker",
                    "start_date": null,
                    "end_date": null,
                    "asset_classes": [
                        "Land"
                    ],
                    "job_classifications": [
                        "General Manager"
                    ]
                }
            ]
        }
    ],
    "meta": {
        "total_records": 1,
        "next_page_token": "WzIuNjM5MDU3NCwiMiJd",
        "has_more": false
    }
}
 

Example response (200):


{
    "success": true,
    "message": "",
    "data": {
        "count": 5
    }
}
 

Example response (200, Preview mode - returns UUIDs only, no credits charged):


{
    "success": true,
    "message": "Contact UUIDs found.",
    "data": [
        "2f1880c3-d338-4fb5-80b5-b8921a182023",
        "364e3006-aed3-4466-81fb-c16c3b6207f0"
    ],
    "meta": {
        "total_records": 2,
        "next_page_token": null,
        "has_more": false
    }
}
 

Example response (404, Contacts not found):


{
    "success": false,
    "message": "Contacts not found",
    "data": null
}
 

Request   

POST v1/search/contact

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

contact_id   string[]  optional    

One or more contact ids. Accepts an array or a comma-separated string.

linkedin   string  optional    

A contacts LinkedIn url Example: https://www.linkedin.com/in/test-user

email   string  optional    

A valid email address Example: support@biscred.com

first_name   string  optional    

A contact first name Example: architecto

last_name   string  optional    

A contact last name Example: architecto

company_name   string  optional    

A company name Example: architecto

company_id   string[]  optional    

One or more company ids to use for searching. Accepts an array or a comma-separated string.

job_title   string     

The job title to search for Example: Chief Executive Officer

phone_number   string     

A phone number to search for Example: 555-555-5555

grouped   boolean  optional    

If true, only records that match all requested fields will be returned Example: true

count_only   boolean  optional    

If true, only the count of the records found will be returned Example: true

preview   boolean  optional    

If true, returns only UUIDs of matching records without spending credits Example: true

best_match   integer  optional    

Limit results to the top N most relevant matches (1-100). Pass true as shorthand for 1. When set, results are sorted by relevance score (descending) and pagination is disabled. The meta.total_records field reflects the truncated returned count; the top-level count field still carries the full match count. Example: 5

Search for buildings

requires authentication

Search for buildings using any combination of the supported fields.
If multiple fields are provided, the results will include buildings that match any of the fields unless "grouped" is set to true.
The meta field in the response includes a next-page-token that can be used to fetch the next page of results.
A maximum of 1,000 records will be returned in a single request.
Send the next_page_token in the next request to fetch additional records.

Example request:
curl --request POST \
    "https://api.biscred.com/v1/search/building" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"building_id\": [
        \"27c5f37b-fd8e-45c5-a169-7d8329c94c05\",
        \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"
    ],
    \"city\": [
        \"New York\",
        \"Los Angeles\"
    ],
    \"region\": [
        \"NY\",
        \"CA\"
    ],
    \"postal_code\": [
        \"10001\",
        \"90001\"
    ],
    \"metro\": [
        \"New York Metro\",
        \"Los Angeles Metro\"
    ],
    \"units\": {
        \"min\": 10,
        \"max\": 100
    },
    \"stories\": {
        \"min\": 1,
        \"max\": 10
    },
    \"footprint\": {
        \"min\": 1000,
        \"max\": 50000
    },
    \"zoning_type\": [
        \"Commercial\",
        \"Residential\"
    ],
    \"company_id\": [
        \"fdf96b58-1b10-4f67-9fa5-3fd3d1a67e08\"
    ],
    \"grouped\": true,
    \"count_only\": true,
    \"next_page_token\": \"WzMuNTA2NTU4LCIzOCJd\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/search/building';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'building_id' => [
                '27c5f37b-fd8e-45c5-a169-7d8329c94c05',
                'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
            ],
            'city' => [
                'New York',
                'Los Angeles',
            ],
            'region' => [
                'NY',
                'CA',
            ],
            'postal_code' => [
                '10001',
                '90001',
            ],
            'metro' => [
                'New York Metro',
                'Los Angeles Metro',
            ],
            'units' => [
                'min' => 10,
                'max' => 100,
            ],
            'stories' => [
                'min' => 1,
                'max' => 10,
            ],
            'footprint' => [
                'min' => 1000,
                'max' => 50000,
            ],
            'zoning_type' => [
                'Commercial',
                'Residential',
            ],
            'company_id' => [
                'fdf96b58-1b10-4f67-9fa5-3fd3d1a67e08',
            ],
            'grouped' => true,
            'count_only' => true,
            'next_page_token' => 'WzMuNTA2NTU4LCIzOCJd',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/search/building"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "building_id": [
        "27c5f37b-fd8e-45c5-a169-7d8329c94c05",
        "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    ],
    "city": [
        "New York",
        "Los Angeles"
    ],
    "region": [
        "NY",
        "CA"
    ],
    "postal_code": [
        "10001",
        "90001"
    ],
    "metro": [
        "New York Metro",
        "Los Angeles Metro"
    ],
    "units": {
        "min": 10,
        "max": 100
    },
    "stories": {
        "min": 1,
        "max": 10
    },
    "footprint": {
        "min": 1000,
        "max": 50000
    },
    "zoning_type": [
        "Commercial",
        "Residential"
    ],
    "company_id": [
        "fdf96b58-1b10-4f67-9fa5-3fd3d1a67e08"
    ],
    "grouped": true,
    "count_only": true,
    "next_page_token": "WzMuNTA2NTU4LCIzOCJd"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": "Buildings found",
    "data": [
        {
            "id": "27c5f37b-fd8e-45c5-a169-7d8329c94c05",
            "name": "Satterfield, Conroy and Altenwerth Building",
            "location": {
                "street": "243 Reilly Crescent",
                "city": "Gleasonshire",
                "region": "Connecticut",
                "postal_code": "58565-4690",
                "country": "US",
                "metro": "Gleasonshire Metro Area",
                "latitude": 30.123083,
                "longitude": -99.031307
            },
            "units": 485,
            "stories": 18.47,
            "footprint_sqft": 95057,
            "zoning_type": "Multi",
            "zoning_subtype": "Office",
            "year_built": "2021",
            "parcel_acres": 44.044,
            "parcel_sqft": 12447,
            "population_density": 11044,
            "population_growth_past_5_years": -0.12,
            "housing_affordability_index": 54,
            "median_household_income": 111000.11,
            "household_income_growth_next_5_years": 2.84,
            "sale_price": 356125.6,
            "sale_date": "2023-05-15",
            "tax_amount": 8841.23,
            "tax_year": "2023",
            "county": "gleasonshire",
            "mail_zip": "58565",
            "companies": [
                "278cca9f-5ec8-473e-9801-0a553ff30ac4",
                "fdf96b58-1b10-4f67-9fa5-3fd3d1a67e08",
                "5113c86d-a669-4751-b023-1a414e7ad84d",
                "54627165-a00e-4baf-9e2c-8829919e1959",
                "a66ec3df-c23f-4db1-a76a-36a652df072a",
                "057a425f-d3f8-4942-8f2e-e1f26bdfe0c2",
                "b1160216-d6fe-4eeb-8527-4644e578f949",
                "81bc79bf-cfb1-4230-ba72-7eaf12a54014",
                "51c1f5d3-37b9-416d-8f72-fd14710c18a7",
                "731b7e8b-556f-470c-bba7-84a7813ac838",
                "ceb51b63-fb90-40c8-bcf9-c611386ef051",
                "bc334366-3552-4fbc-a96c-eb68e4913926",
                "35ccaeb4-50ae-483f-aa62-e3b6d6411e55",
                "fff40bde-5e89-440a-9f45-a9f33e2712b3",
                "c78c8de6-a981-46ec-926c-6eefd8e66705",
                "128ef298-2fcc-4581-845d-356df0b48a8b",
                "9c0447a6-b83d-463b-bcb7-b99fcf8bc2bd",
                "144588ec-3025-4ede-be0b-2842b6e6b5e0",
                "235c0d57-8a49-4e1b-8d33-04d879aeba30",
                "ded85133-c7f5-476e-85e8-5a92b1b5c411",
                "3ab44fdd-81a9-44ac-b6cf-abf964642830",
                "6b721296-8e52-4f70-8cbf-cb2c5c620ea4"
            ]
        }
    ],
    "meta": {
        "total_records": 1,
        "next_page_token": "WzEsIjI3YzVmMzdiLWZkOGUtNDVjNS1hMTY5LTdkODMyOWM5NGMwNSJd",
        "has_more": false
    }
}
 

Example response (200):


{
    "success": true,
    "message": "",
    "data": {
        "count": 5
    }
}
 

Example response (404, Buildings not found):


{
    "success": false,
    "message": "Building not found",
    "data": null
}
 

Request   

POST v1/search/building

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

building_id   string[]  optional    

A list of building ids

city   string[]  optional    

A list of city names

region   string[]  optional    

A list of states or regions

postal_code   string[]  optional    

A list of postal or zip codes

metro   string[]  optional    

A list of metro areas. Note: A list of available metros is available using the metros endpoint

units   object  optional    

Number of units range filter Example: {"min": 10, "max": 100}

min   integer  optional    

Minimum number of units Example: 10

max   integer  optional    

Maximum number of units Example: 100

stories   object  optional    

Number of stories range filter Example: {"min": 1, "max": 10}

min   integer  optional    

Minimum number of stories Example: 1

max   integer  optional    

Maximum number of stories Example: 10

footprint   object  optional    

Building footprint in square feet range filter Example: {"min": 1000, "max": 50000}

min   integer  optional    

Minimum footprint in square feet Example: 1000

max   integer  optional    

Maximum footprint in square feet Example: 50000

zoning_type   string[]  optional    

A list of zoning classifications

company_id   string[]  optional    

A list of company ids associated with the building

grouped   boolean  optional    

If true, only records that match all requested fields will be returned Example: true

count_only   boolean  optional    

If true, only the count of the records found will be returned Example: true

next_page_token   string  optional    

Token to fetch the next page of results Example: WzMuNTA2NTU4LCIzOCJd

Get zoning types

requires authentication

A list of currently available zoning types

Example request:
curl --request GET \
    --get "https://api.biscred.com/v1/zoning-types" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/zoning-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/zoning-types"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):



      {
        "success": true,
        "message": "",
        "data": [
          "Commercial",
          "Residential",
          "Industrial",
          "Planned",
          "Special",
          "Mixed",
          "Agriculture",
          "Overlay",
        ]
      }
 

Request   

GET v1/zoning-types

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Lists

Get the users lists saved in Biscred

requires authentication

Example request:
curl --request GET \
    --get "https://api.biscred.com/v1/user/lists" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/user/lists';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/user/lists"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": null,
    "data": [
        {
            "id": 1,
            "name": "List Name"
        }
    ],
    "meta": null
}
 

Example response (500, Server error):


{
    "success": false,
    "message": "Unable to retrieve the users lists.",
    "data": null
}
 

Request   

GET v1/user/lists

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Get list details

requires authentication

Example request:
curl --request GET \
    --get "https://api.biscred.com/v1/user/list/1" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/user/list/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/user/list/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": null,
    "data": {
        "id": 1,
        "name": "List Name",
        "public": true,
        "list_type": "App\\Models\\PublishedCompany",
        "index_count": 100,
        "created_at": "2024-01-01T00:00:00+00:00",
        "updated_at": "2024-01-01T00:00:00+00:00"
    },
    "meta": null
}
 

Example response (404, List not found):


{
    "success": false,
    "message": "List not found.",
    "data": null
}
 

Request   

GET v1/user/list/{id}

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The id of the list Example: 1

Get items in a list

requires authentication

Example request:
curl --request GET \
    --get "https://api.biscred.com/v1/user/list/1/items?page=1&per_page=100" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/user/list/1/items';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'per_page' => '100',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/user/list/1/items"
);

const params = {
    "page": "1",
    "per_page": "100",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": null,
    "data": [
        "00000000-0000-0000-0000-000000000000"
    ],
    "meta": {
        "current_page": 1,
        "last_page": 1,
        "per_page": 100,
        "total": 100,
        "next_page_url": null,
        "prev_page_url": null
    }
}
 

Example response (404, List not found):


{
    "success": false,
    "message": "List not found.",
    "data": null
}
 

Request   

GET v1/user/list/{id}/items

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The id of the list Example: 1

Query Parameters

page   integer  optional    

The page number Example: 1

per_page   integer  optional    

Number of items per page (max 500) Example: 100

Add a company or contact to a list

requires authentication

Example request:
curl --request POST \
    "https://api.biscred.com/v1/user/list" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"list_id\": 1,
    \"entity_type\": \"company\",
    \"entity_ids\": [
        \"architecto\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/user/list';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'list_id' => 1,
            'entity_type' => 'company',
            'entity_ids' => [
                'architecto',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/user/list"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "list_id": 1,
    "entity_type": "company",
    "entity_ids": [
        "architecto"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": null,
    "data": [],
    "meta": null
}
 

Example response (404, List not found):


{
    "success": false,
    "message": "List not found.",
    "data": null
}
 

Example response (422, Entity type does not match the list type):


{
    "success": false,
    "message": "Entity type and list type must match.",
    "data": null
}
 

Request   

POST v1/user/list

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

list_id   integer     

The id of the list to add the entity Example: 1

entity_type   string     

The type of entity to add to the list. Example: company

Must be one of:
  • company
  • contact
entity_ids   string[]     

An array of entity uuids to add to the list

Remove entities from a list

requires authentication

Example request:
curl --request POST \
    "https://api.biscred.com/v1/user/list/remove" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"list_id\": 1,
    \"entity_type\": \"company\",
    \"entity_ids\": [
        \"architecto\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/user/list/remove';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'list_id' => 1,
            'entity_type' => 'company',
            'entity_ids' => [
                'architecto',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/user/list/remove"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "list_id": 1,
    "entity_type": "company",
    "entity_ids": [
        "architecto"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": null,
    "data": [],
    "meta": null
}
 

Example response (404, List not found):


{
    "success": false,
    "message": "List not found.",
    "data": null
}
 

Example response (422, Entity type does not match the list type):


{
    "success": false,
    "message": "Entity type and list type must match.",
    "data": null
}
 

Request   

POST v1/user/list/remove

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

list_id   integer     

The id of the list to remove entities from Example: 1

entity_type   string     

The type of entity to remove from the list. Example: company

Must be one of:
  • company
  • contact
entity_ids   string[]     

An array of entity uuids to remove from the list

Upload a CSV file to create a list

requires authentication

Example request:
curl --request POST \
    "https://api.biscred.com/v1/user/list/upload" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"list_name\": \"My New List\",
    \"public\": false,
    \"list_type\": \"company\",
    \"file\": null
}"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/user/list/upload';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'list_name' => 'My New List',
            'public' => false,
            'list_type' => 'company',
            'file' => null,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/user/list/upload"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "list_name": "My New List",
    "public": false,
    "list_type": "company",
    "file": null
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": null,
    "data": [],
    "meta": null
}
 

Request   

POST v1/user/list/upload

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

list_name   string     

The name of the list to create Example: My New List

public   boolean  optional    

Should the list should be public Example: false

list_type   string     

The type of entity to add to the list. Example: company

Must be one of:
  • company
  • contact
file   csv     

The CSV file to upload, use the following template file list_template.csv

Delete a list

requires authentication

Example request:
curl --request DELETE \
    "https://api.biscred.com/v1/user/list/1" \
    --header "Authorization: Bearer {YOUR_TOKEN_HERE}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://api.biscred.com/v1/user/list/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_TOKEN_HERE}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://api.biscred.com/v1/user/list/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_TOKEN_HERE}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200):


{
    "success": true,
    "message": null,
    "data": [],
    "meta": null
}
 

Example response (404, List not found):


{
    "success": false,
    "message": "List not found.",
    "data": null
}
 

Request   

DELETE v1/user/list/{id}

Headers

Authorization        

Example: Bearer {YOUR_TOKEN_HERE}

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The id of the list Example: 1