Check whether a Procore project is connected to Procore AI
import requests
url = "https://api.datagrid.com/v1/procore/companies/{company_id}/projects/{project_id}/connection"
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/{company_id}/projects/{project_id}/connection', 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/{company_id}/projects/{project_id}/connection \
--header 'Authorization: Bearer <token>'{
"object": "procore_project_connection",
"company_id": "<string>",
"project_id": "<string>",
"connected": true
}{
"status_code": 123,
"error": "<string>",
"message": "<string>",
"details": {
"reason": "<string>",
"unresolved": [
{
"token": "<string>",
"reason": "not-found"
}
]
}
}{
"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
Check whether a Procore project is connected to Procore AI
Reports whether Procore AI has a Datagrid teamspace bound to one Procore project. The caller must be able to open the project in Procore. connected uses the same rule as the project list: true when a non-deleted teamspace under the company’s Datagrid account is bound to the project, false when the project is visible and no such teamspace exists.
GET
/
procore
/
companies
/
{company_id}
/
projects
/
{project_id}
/
connection
Check whether a Procore project is connected to Procore AI
import requests
url = "https://api.datagrid.com/v1/procore/companies/{company_id}/projects/{project_id}/connection"
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/{company_id}/projects/{project_id}/connection', 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/{company_id}/projects/{project_id}/connection \
--header 'Authorization: Bearer <token>'{
"object": "procore_project_connection",
"company_id": "<string>",
"project_id": "<string>",
"connected": true
}{
"status_code": 123,
"error": "<string>",
"message": "<string>",
"details": {
"reason": "<string>",
"unresolved": [
{
"token": "<string>",
"reason": "not-found"
}
]
}
}{
"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.
Path Parameters
The Procore company ID (digits only).
Pattern:
^[0-9]+$The Procore project ID (digits only).
Pattern:
^[0-9]+$