GET /sites/{id}
Summary
Get site
URL Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Site identifier |
Query Parameters
- None
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/sites/{id}' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Accept: application/json'
const response = await fetch('https://api.requidex.com/api/open/v1/sites/{id}', {
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/sites/{id}',
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/sites/{id}", 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 | Site id |
| nanoid | string | Short site id |
| name | string | Site name |
| project | object | Show child attributes
|
| company | object | Show child attributes
|
| active | boolean | Whether site is active |
| string | Site contact email | |
| phone | object | Show child attributes
|
| address | object | Site address details Show child attributes
|
| createdAt | string | Creation timestamp |
| updatedAt | string | Last update timestamp |
Response Example (200)
{
"success": true,
"data": {
"id": "67bc36db80a1616ec3f47055",
"nanoid": "site12abcd",
"name": "Manchester Central",
"project": {
"id": "67bc36db80a1616ec3f47011",
"name": "Northern Rail Electrification"
},
"company": {
"id": "67bc36db80a1616ec3f47001",
"name": "Requidex Construction Ltd"
},
"active": true,
"email": "site.manager@requidex.com",
"phone": {
"countryCode": "+44",
"number": "1234567891"
},
"address": {
"line1": "1 Station Approach",
"city": "Manchester",
"postcode": "M1 1AA"
},
"createdAt": "2025-02-01T09:00:00.000Z",
"updatedAt": "2026-02-20T14:03:12.111Z"
}
}
Errors
| HTTP Status | Description |
|---|---|
| 401 | Missing, invalid, revoked, or expired API key |
| 403 | Forbidden due to scope or IP restrictions |
| 404 | Site not found |
| 405 | Method not allowed on Open API routes |
| 429 | Rate limit exceeded |
| 500 | Unexpected internal error |