Skip to main content
GET
/
subcontractors
/
{id}
/
inductions
cURL
curl --request GET \
  --url https://api.buildpass.global/subcontractors/{id}/inductions \
  --header 'Authorization: Bearer <token>' \
  --header 'X-BuildPass-Api-Version: <x-buildpass-api-version>'
{
  "data": [
    {
      "id": "ind_clgbsb90b001qjy0f0eo1hspp",
      "identifier": 1,
      "createdAt": "2023-10-03T23:19:35.771Z",
      "updatedAt": "2023-10-03T23:19:35.771Z",
      "type": "PROJECT_INDUCTION",
      "status": "WAITING_REVIEW",
      "project": {
        "id": "prj_clgbsb90b001qjy0f0eo1hspp",
        "name": "Downtown Mall Construction"
      },
      "worker": {
        "id": "wkr_clgbsb90b001qjy0f0eo1hspp",
        "fullName": "John Doe"
      },
      "subcontractor": {
        "id": "sub_clgbsb90b001qjy0f0eo1hspp",
        "name": "ABC Contractors"
      }
    }
  ],
  "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.

Headers

X-BuildPass-Api-Version
enum<string>
default:v1
required

What API version to use.

Available options:
v1
Example:

"v1"

Path Parameters

id
string
required

The ID of the subcontractor

Example:

"sub_clgbsb90b001qjy0f0eo1hspp"

Query Parameters

projectId
string

Filter by project ID

Example:

"prj_clgbsb90b001qjy0f0eo1hspp"

status
enum<string>

Filter by induction status

Available options:
REVIEWED,
WAITING_REVIEW,
CHANGES_REQUESTED
Example:

"WAITING_REVIEW"

offset
integer
default:0

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

Example:

0

limit
integer
default:100

The number of items to return

Example:

100

Response

A paginated list of inductions

data
object[]
meta
object