Skip to content

List Associations

This endpoint returns the project-to-contact associations for one project or one contact.

GET /v1/associations/associations

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

associations:read
ParameterTypeRequiredDescription
projectIdstringNoReturn the associations for this project.
contactIdstringNoReturn the associations for this contact. Ignored when projectId is also sent.

Send projectId or contactId. If you send both, the API uses projectId and ignores contactId. If you send neither, the API returns 400.

This endpoint does not accept a request body.

Terminal window
curl "https://api.crewsum.com/v1/associations/associations?projectId=project-mno123pqr4567890" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK.

{
"message": "Successfully fetched associations",
"data": {
"associations": [
{
"projectId": "project-mno123pqr4567890",
"projectName": "Project Name",
"contactId": "contact-jkl123mno4567890",
"contactName": "Contact Name",
"contactType": "MANAGER",
"notificationLevel": "COPY_ONLY",
"projectEndCustomer": "End Customer Name"
}
]
}
}
  • The response is not paginated and has no count. It contains every matching association.
  • Associations removed by a project or contact delete are not returned.
  • If nothing matches, associations is an empty array.
  • projectEndCustomer is the name of the project’s end customer, or null.
StatusMeaning
400Neither projectId nor contactId was supplied. The message is Either a projectId or contactId must be supplied.
500Crewsum could not fetch associations. The message is Error fetching associations.

Authentication and scope failures are described in Errors.

This endpoint does not trigger a webhook.