Skip to main content

Get Company Access Control Rules

GET/companies/{id}/access-control-rules
Agency-scoped keys

This endpoint is not available for agency-scoped API keys.

Summary​

Returns a paginated list of access control rules for a company within the API key scope. Requires read:companies.

Company-level rules only; excludes project, agency and user overrides. This is configuration, not a user’s effective permissions.

URL Parameters​

NameTypeRequiredDescription
idstringYesCompany ObjectId or reference

Query Parameters​

NameTypeRequiredDescription
pageintegerNoPage number (default 1)
limitintegerNoRecords per page (default 50, max 200)
querystringNoCase-insensitive search against feature, key, label and description
sortBystringNocreatedAt, updatedAt, feature, key, label; default feature
sortOrderstringNoasc or desc; default asc
fieldsstringNoComma-separated response fields or nested dot paths

Request Example​

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

Response Fields​

Each item in data contains the following fields. meta contains page, limit and total; the total counts matching records before pagination.

FieldTypeDescription
idstringAccess control rule ObjectId
companystringCompany ObjectId
featurestringAllowed values: Workers, Rates, Billing, Agencies
keystringConfiguration key
labelstringRule label
descriptionstringRule description
itemsstring[]Restricted items; agency ObjectIds for the Agencies feature
subItemsstring[]Restricted sub-items
restrictedActionsstring[]Restricted agency actions
restrictionBasisstringAllowed values: role, user
restrictedRolesstring[]Base role names or companyRole:<ObjectId> custom role tokens
exemptUsersstring[]Exempt user ObjectIds
restrictedUsersstring[]Restricted user ObjectIds
createdAtstringcreatedAt
updatedAtstringupdatedAt

Response Example (200)​

{
"success": true,
"data": [
{
"id": "507f1f77bcf86cd799439019",
"company": "507f1f77bcf86cd799439011",
"feature": "Rates",
"key": "RATES",
"label": "",
"description": "Restrict rate visibility",
"items": [],
"subItems": [],
"restrictedActions": [],
"restrictionBasis": "role",
"restrictedRoles": ["projectRequestor"],
"exemptUsers": [],
"restrictedUsers": [],
"createdAt": "2026-01-10T12:00:00.000Z",
"updatedAt": "2026-01-10T12:00:00.000Z"
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 1
}
}

MCP Tool​

The MCP server exposes this operation as open_api_list_company_access_control_rules with inputs id, page, limit, query, sortBy, sortOrder and fields.

Errors​

HTTP StatusDescription
400Invalid filters or parameters
401Missing, invalid, revoked, or expired API key
403Missing scope, IP restriction, or agency-scoped key
404Company not found within the key scope
405Method not allowed on Open API routes
429Rate limit exceeded
500Failed to fetch company access control rules