Skip to main content
POST
/
api
/
prospects
/
create_prospect_list
JavaScript
const apiKey = "your api key here" // update with your api_key

const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", `Bearer ${apiKey}`);

const raw = JSON.stringify({
  "filters": {
    "job_title": [
      {
        "v": "CEO",
        "s": "i"
      }
    ],
    "job_title_level": [
      "CXO"
    ],
    "job_role": [
      "finance"
    ],
    "location": [
      {
        "v": "Toronto, Ontario, Canada",
        "b": "city",
        "s": "i"
      }
    ],
    "company_location": [
      {
        "v": "Ontario, Canada",
        "b": "state",
        "s": "i"
      }
    ],
    "company_size": [
      "1-10",
      "11-50"
    ],
    "company_industry": [
      "financial services"
    ],
    "year_founded_start": "2010",
    "year_founded_end": "2024"
  },
  "list": {
    "name": "Test List",
    "max_profiles": 10
  }
});

const requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("https://wiza.co/api/prospects/create_prospect_list", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
{
  "status": {
    "code": 200,
    "message": "🧙 Wiza is working on it!"
  },
  "type": "list",
  "data": {
    "id": 15,
    "name": "VP of Sales in San Francisco",
    "status": "queued",
    "stats": {
      "people": 2,
      "credits": {
        "email_credits": 1,
        "phone_credits": 1,
        "export_credits": 1,
        "api_credits": {
          "email_credits": 2,
          "phone_credits": 5,
          "scrape_credits": 1,
          "total": 8
        }
      }
    },
    "finished_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "enrichment_level": "partial",
    "email_options": {
      "accept_work": true,
      "accept_personal": true,
      "accept_generic": true
    },
    "report_type": "people"
  }
}

Authorizations

Authorization
string
header
required

Enter your bearer token (your API key) in the Authorization header in the format Bearer {token}

Body

application/json
list
object
required
Example:
{
"name": "VP of Sales in San Francisco",
"max_profiles": 10,
"enrichment_level": "partial",
"email_options": {
"accept_work": true,
"accept_personal": true,
"accept_generic": true
}
}
filters
object
required

Response

successful

status
object
type
enum<string>
Available options:
list
Example:

"list"

data
object