Skip to main content
POST
Reference example

Request contract

  • Method and path: POST /apis/v1/trade/leads/find
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/trade/leads/find
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Published reference price: $0.04 USD per billable unit. Default request estimate: $0.04 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
hs_code
string
required
Required string length: 6 - 10
Pattern: ^[0-9]{6,10}$
role
enum<string>
required
Available options:
exporter,
importer
contacts_per_company
enum<integer>
default:1
Available options:
1
Required range: 0 <= x <= 9223372036854776000
cursor
string
Required string length: 1 - 200
department
enum<string>[]
Required array length: 1 - 11 elements
Available options:
engineering,
finance,
hr,
it,
legal,
management,
marketing,
operations,
purchasing,
quality,
sales
exclude_forwarders
boolean
default:true
exporter_country
string
Required string length: 2 - 80
importer_country
string
Required string length: 2 - 80
limit
integer
default:5
Required range: 1 <= x <= 10
min_email_status
enum<string>
default:verified
Available options:
risky,
verified
product
string
Required string length: 2 - 100
require
enum<string>
default:person_email
Available options:
any_contact,
person_email
seniority
enum<string>[]
Required array length: 1 - 6 elements
Available options:
c_level,
executive,
manager,
owner,
senior,
staff
since
string
Required string length: 10
Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
sort
enum<string>
default:shipments
Available options:
recorded_value,
shipments
trading_with
string
Required string length: 2 - 200
until
string
Required string length: 10
Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$

Response

Normalized successful response

data
object[]
required

The leads, in the order of the ranked list.

has_more
boolean
required

Whether the ranked list goes on after the last company looked at.

next_cursor
string | null
required

Pass it as cursor to go on after the last company that was looked at.

notice
string | null
required

A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.

query
object
required

The request as it was understood, with the default dates filled in. scanned says how many companies were looked at for this page, passed_over why the ones without a lead gave none, and data_through how recent the records are.

total
integer
required

How many companies the ranked list has in all.