List Procore companies
import requests
url = "https://api.datagrid.com/v1/procore/companies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/procore/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/procore/companies \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"id": "<string>",
"name": "<string>"
}
],
"has_more": true,
"next_page": 123
}{
"status_code": 123,
"error": "procore_not_connected",
"message": "<string>"
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Procore
List Procore companies
Lists the Procore companies the authenticated user’s own Procore session can access. Procore authorizes the call with the user’s token, so the result matches what the user can see in Procore. Pages with page / per_page, mirroring Procore’s own paging.
GET
/
procore
/
companies
List Procore companies
import requests
url = "https://api.datagrid.com/v1/procore/companies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/procore/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/procore/companies \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"id": "<string>",
"name": "<string>"
}
],
"has_more": true,
"next_page": 123
}{
"status_code": 123,
"error": "procore_not_connected",
"message": "<string>"
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
1-based page number. Values below 1 are treated as 1.
Required range:
x >= 1Items per page. Values above 100 are clamped to 100.
Required range:
1 <= x <= 100