Working with Multiple Procore Zones (MPZ)
As part of an ongoing infrastructure improvement initiative, we've started to establish Multiple Procore Zones (MPZ) in our network topology. MPZ allows us to distribute our customer load across a larger pool of infrastructure to provide better scalability, durability, and security. With MPZ in place, we can distribute our infrastructure over multiple geographical locations. With the rollout of MPZ, you will need to adhere to specific implementation requirements and best practices when building solutions with the Procore API. These requirements and best practices are presented in the following sections.
The following diagram serves to illustrate the new MPZ architecture. The connections between the components are sequentially numbered and are annotated with the relevant attributes of the API requests/responses involved in obtaining an access token (steps 1-4) and using that access token to subsequently make a call to a Procore resource (steps 5-8).
In order for your application to be compliant with the new MPZ architecure, you will need to implement a number of changes as described below.
- New Base Domain for OAuth 2.0 Authentication Requests - The base domain for OAuth 2.0 Authentication endpoints has been changed from
login.procore.com. As a result, all authentication-related requests (i.e., requesting an authorization code, retrieving an access token, and refreshing an access token) must use
login.procore.comas their base domain.
- New Base Domain for Procore API Endpoints - The base domain for Procore API endpoints has been changed from
api.procore.com. As a result, you will need to ensure that all the Procore API calls you make from your application to the production Procore environment use this new base domain.
- New Request Header Requirement - Each call your application makes to the Procore API must contain a request header that includes the
Procore-Company-Idfield. This request header field specifies the id of the company into which you are making the call. Here is a cURL example showing a call to the List Projects endpoint.
curl -H "Authorization: Bearer <access token>” -H "Procore-Company-Id: xxxxxxxxx" -X GET https://api.procore.com/vapid/projects?company_id=xxxxxxxxx
In this example, we use -H flags to specify the
Procore-Company-Idrequest header fields. It is important to note that even though an endpoint might require the
company_idas a path or query parameter, MPZ still requires you to include the
Procore-Company-Idfield in the request header.
Note: The following Procore API endpoints do not require a request header containing the
Actions Required / Timeline
- To continue serving existing Procore customers, you will need to make the above described changes by June 30, 2019, beyond which your apps and integrations may not work.
- To onboard new Procore customers, you will need to make these changes by October 31, 2018.
Frequently Asked Questions
Do I need to make all these changes to my application immediately?
Answer: No. Though we plan to complete the infrastructure changes for MPZ by October 31, 2018, non-compliant applications will continue to function as expected for existing Procore Customers until June 30, 2019. However, you will not be able to access data from new Procore customers.
What happens if I never make these changes to my application?
Answer: It depends on your particular scenario:
|Developer Persona / Scenario||MPZ Impact|
|Existing Procore Customer w/ custom integration||Assuming the customer is in zone US01 (the default zone), they will not experience any adverse effects until June 30, 2019 unless they are requested to migrate to a different zone prior to that time.|
|New Procore Customer w/ custom integration||New customers would not be able to access their company data without implementing the
|System Integrator||Integrations built by system integrators will continue to work for existing Procore users in zone US01 until June 30, 2019. However, they will not be able to build integrations for new users without implementing the
||Procore Technology Partner||Marketplace Apps built by Procore Technology Partners will continue to work for their existing Procore users in zone US01 until June 30, 2019. However, their integrations will not support any new Procore users who are placed in a zone other than US01 until the
Will the MPZ architecture changes impact my sandbox envionments?
Answer: No. You will not see any changes in the way you interact with your sandbox environments.
Need Additional Information?
If you have any questions or need help in determining the impacts of MPZ on your application codebase, please contact our Technical Services team for assistance.