GET
/
subcontractors
/
{id}
/
projects
cURL
curl --request GET \
  --url https://api.buildpass.global/subcontractors/{id}/projects \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "proj_clgbsb90b001qjy0f0eo1hspp",
      "status": "UPCOMING",
      "createdAt": "2023-10-03T23:19:35.771Z",
      "updatedAt": "2023-10-03T23:19:35.771Z",
      "name": "Downtown Mall Construction",
      "integrations": [
        {
          "type": "PROCORE",
          "sourceId": "1234567890",
          "companyId": "1234567890"
        }
      ]
    }
  ],
  "meta": {
    "totalCount": 100,
    "totalPages": 4,
    "offset": 0,
    "limit": 25
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required
Example:

"sub_clgbsb90b001qjy0f0eo1hspp"

Query Parameters

offset
integer
default:0
required

The number of items to skip before starting to collect the result set

Example:

0

limit
integer
default:25
required

The number of items to return.

Example:

25

Response

200 - application/json

A list of projects

The response is of type object.