List all contractors
Returns a list of your contractors. The contractors are returned sorted by creation date, with the most recent contractors appearing first.
Query parameters
-
limit integer
A limit on the number of objects to be returned. Limit can range between
1
and100
, and the default is10
.Minimum value is
1
, maximum value is100
. Default value is10
. -
starting_after string
A cursor for use in pagination.
starting_after
is an contractor ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withcn_fOo123
, your subsequent call can includestarting_after=cn_fOo123
in order to fetch the next page of the list. -
ending_before string
A cursor for use in pagination.
ending_before
is an contractor ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withcn_bAr123
, your subsequent call can includeending_before=cn_bAr123
in order to fetch the previous page of the list. -
email string
A case-sensitive filter on the list based on the contractor's email attribute. The value must be a string.
curl \
-X GET https://api.1099policy.com/api/v1/contractors
[
{
"id": "cn_Zbe1qTc",
"email": "[email protected]",
"phone": "916-579-1243",
"address": {
"line1": "150 Wythe Ave",
"region": "NY",
"locality": "Brooklyn",
"postalcode": 11249
},
"created": 1646818364,
"last_name": "Moss",
"first_name": "Fredrick",
"company_name": "Mass Repair",
"custom_metadata": {
"campaign": "Volvo"
},
"withhold_premium": false
},
{
"id": "cn_Ehb3bYa",
"email": "[email protected]",
"phone": "415-474-9088",
"address": {
"line1": "1 Kearny St",
"region": "CA",
"locality": "San Francisco",
"postalcode": 94104
},
"created": 1646818384,
"last_name": "Parker",
"first_name": "Joe",
"company_name": "Acme Co.",
"custom_metadata": {
"campaign": "Red Bull"
},
"withhold_premium": false
}
]