GET /companies
Summary
List companies
URL Parameters
- None
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Page number (default 1) |
| limit | integer | No | Records per page (default 50, max 200) |
| status | enum(active, inactive) | No | Filter by company status |
| query | string | No | Case-insensitive search against company name |
| from | string | No | Created date filter start (YYYY-MM-DD) |
| to | string | No | Created date filter end (YYYY-MM-DD) |
| sortBy | enum(createdAt, updatedAt, name) | No | Sort field (default name) |
| sortOrder | enum(asc, desc) | No | Sort direction (default asc) |
| includeConfig | boolean | No | Include the company config object in each response row |
Request Body Fields
No request body is accepted for this endpoint.
Request Example
- cURL
- JavaScript
- Python
- Go
curl -X GET 'https://api.requidex.com/api/open/v1/companies' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Accept: application/json'
const response = await fetch("https://api.requidex.com/api/open/v1/companies", {
method: "GET",
headers: {
Authorization: "Bearer <API_KEY>",
Accept: "application/json",
},
});
const json = await response.json();
import requests
response = requests.request(
'GET',
'https://api.requidex.com/api/open/v1/companies',
headers={
'Authorization': 'Bearer <API_KEY>',
'Accept': 'application/json',
},
timeout=30,
)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.requidex.com/api/open/v1/companies", nil)
req.Header.Set("Authorization", "Bearer <API_KEY>")
req.Header.Set("Accept", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
payload, _ := io.ReadAll(resp.Body)
fmt.Println(string(payload))
}
Response Fields
| Field | Type | Description |
|---|---|---|
| id | string | Company id |
| name | string | Company name |
| prefix | string | Company prefix used for reference generation |
| string | Company contact email | |
| phone | object | Show child attributes
|
| companyNumber | string | Registered company number |
| active | boolean | Whether the company is active |
| projectCount | integer | Number of projects linked to this company |
| address | object | Show child attributes
|
| finance | object | Company finance object. Show child attributes
|
| config | object | Company config object. Only returned when includeConfig=true. Show child attributes
|
| industry | string | Industry sector |
| createdAt | string | Creation timestamp |
| updatedAt | string | Last update timestamp |
Response Example (200)
{
"success": true,
"data": [
{
"id": "67bc36db80a1616ec3f47001",
"name": "Requidex Construction Ltd",
"prefix": "RCL",
"email": "hello@requidex.com",
"phone": {
"countryCode": "+44",
"number": "1234567890"
},
"companyNumber": "12345678",
"active": true,
"projectCount": 12,
"address": {
"lineOne": "1 Builder Way",
"lineTwo": "Floor 2",
"city": "London",
"region": "Greater London",
"country": "United Kingdom",
"code": "EC1A 1BB",
"latitude": 51.5074,
"longitude": -0.1278
},
"finance": {
"vat": "GB123456789",
"accountName": "Requidex Construction Ltd",
"bankName": "Example Bank",
"accountNumber": "12345678",
"sortCode": "12-34-56",
"paymentTerms": {
"days": 30,
"term": "days"
}
},
"industry": "construction",
"createdAt": "2025-01-10T12:00:00.000Z",
"updatedAt": "2026-02-20T14:03:12.111Z"
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 1
}
}
Errors
| HTTP Status | Description |
|---|---|
| 401 | Missing, invalid, revoked, or expired API key |
| 403 | Forbidden due to scope or IP restrictions |
| 405 | Method not allowed on Open API routes |
| 429 | Rate limit exceeded |
| 500 | Unexpected internal error |