Skip to main content

GET /companies/{id}/competency-matrix

Summary

Get company competency matrix

Agency-scoped API keys can retrieve the matrix for a company connected to their agency. Supply projectId to retrieve the effective matrix for a specific project.

URL Parameters

NameTypeRequiredDescription
idstringYesCompany identifier

Query Parameters

NameTypeRequiredDescription
projectIdstringNoProject identifier. When supplied, returns the effective competency matrix for that project. Additive project requirements are combined with the project's sector or company matrix; replacement project requirements are returned on their own.

Request Example

curl -X GET 'https://api.requidex.com/api/open/v1/companies/{id}/competency-matrix' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Accept: application/json'

To retrieve the effective matrix for a project, pass projectId:

curl -X GET 'https://api.requidex.com/api/open/v1/companies/{id}/competency-matrix?projectId={projectId}' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Accept: application/json'

Response Fields

FieldTypeDescription
companyobjectCompany reference with id and name
projectobjectProject reference with id and name. Returned when projectId is supplied.
entriesarrayCompetency matrix entries for the company, or effective project entries when projectId is supplied

Each entry includes:

  • trade, project, sector, source, requirements
  • trade contains id and name
  • project is populated when the entry is a project override, otherwise null
  • source is project, sector, or company to show which scope supplied the entry
  • requirements is an array of rule objects with items and grouped items, each containing qualification name only

Response Example (200)

{
"success": true,
"data": {
"company": {
"id": "67bc36db80a1616ec3f47001",
"name": "Requidex Construction Ltd"
},
"project": {
"id": "67bc36db80a1616ec3f47055",
"name": "Project Alpha"
},
"entries": [
{
"trade": {
"id": "67bc36db80a1616ec3f47031",
"name": "Electrician"
},
"project": {
"id": "67bc36db80a1616ec3f47055",
"name": "Project Alpha"
},
"sector": null,
"source": "project",
"requirements": [
{
"rule": "mandatory",
"items": [
{
"name": "ECS Gold Card"
}
],
"groups": []
}
]
}
]
}
}

Errors

HTTP StatusDescription
400Invalid or missing company id
401Missing, invalid, revoked, or expired API key
403Forbidden due to scope, IP restrictions, or company access
404Company not found
405Method not allowed on Open API routes
429Rate limit exceeded
500Unexpected internal error