Skip to content

List Supplier Contacts

This endpoint returns a page of supplier contacts for the authenticated account.

GET /v1/supplier-contacts/supplier-contacts

Include your API key in the x-api-key header. See Authentication.

supplier-contacts:read
ParameterTypeRequiredDescription
supplierIdstringNoReturn only contacts of this supplier.
archived"true" | "false"NoWhen "true", return only archived contacts. Any other value returns only active contacts. Defaults to active contacts.
all"true" | "false"NoWhen "true", return archived and active contacts together. archived is then ignored.
pagenumberNoZero-based page index. Defaults to 0.
pageSizenumberNoNumber of contacts per page. Defaults to 25.
sortCol"contactName" | "contactDescription" | "contactEmail" | "createdAt" | "updatedAt" | "Suppliers.supplier_name"NoSort column. Suppliers.supplier_name sorts by the supplier’s name. Must be sent with a valid sortDir.
sortDir"asc" | "desc"NoSort direction. Must be sent with a valid sortCol.

See Pagination for paging and sorting rules.

This endpoint does not accept a request body.

Terminal window
curl "https://api.crewsum.com/v1/supplier-contacts/supplier-contacts?supplierId=supplier-stu123vwx4567890&page=0&pageSize=25" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK.

{
"message": "Successfully fetched supplier contacts",
"data": {
"contacts": [
{
"id": "suppliercontact-vwx123yza4567890",
"supplierId": "supplier-stu123vwx4567890",
"supplierName": "Supplier Name",
"name": "Supplier Contact Name",
"description": "A brief description of the supplier contact",
"email": "placeholder@example.com",
"isArchived": false,
"createdAt": "2023-01-01T00:00:00.000Z",
"updatedAt": null,
"isDeleted": false
}
],
"count": 1
}
}
  • count is the total number of matching contacts, not the number on this page.
  • Deleted contacts are never returned, even with all=true.
  • If sortCol or sortDir is missing or invalid, the API ignores both and sorts by updatedAt descending, then createdAt descending.
  • updatedAt is null until the contact is updated for the first time.
StatusMeaning
500Crewsum could not fetch supplier contacts. Message: Error fetching supplier contacts.

Authentication and scope failures are described in Errors.

This endpoint does not trigger a webhook.