Articles in this section

How do I create Custom API Integrations with CivilPro API?

Please note, this article is only for users with a strong technical background, typically this is something you may want to make your internal IT team aware of. We do not recommend making custom integrations unless you have undertaken similar projects before. 

If you want to refer to a more comprehensive guide on API integrations, see User Guide to The API with Postman Scripts. 

 

API URL and Docs

You can interact directly with you API using normal http requests. Your API URL is https://{{company}}.civilpro.com

You can see the docs for your API at 

https://{{company}}.civilpro.com/swagger/index.html

You can see the public example of this at https://demo.civilpro.com/swagger/index.html

We set up our API to use swagger definitions so it is compatible with NSwag studio auto code generation. You can find NSwag Studio download and info here. https://github.com/RicoSuter/NSwag/wiki/NSwagStudio  This is the same tool that our internal development team uses. 

Please note, we do not maintain or make public old versions of our API. If we make a change to a public method the easiest way to integrate that change into your custom application will be to use the code generation tool above. 

Authentication

The main method of authenticating with our API is using the /api/Account/Authenticate method. It is the first method listed in the API documentation. 

It requires a username and password. The password must be base64 encoded. ie if your password is 'password', then the expected input would be cGFzc3dvcmQ=. Here is a quick tool to help you https://www.base64encode.org/

The authenticate method will return a Bearer token that will then be used to identify you. The token must then be included in the authorization header of your http request. It should be included in the format -

Bearer {{token}} 

(See Below)

mceclip0.png

 

Following Authentication, to access project resources, review article 'How to I use the API with Postman Scripts?

Please reach out to our Support Team if you need any further information about Custom Integrations and getting some assistance from our development team. 

 

 

Was this article helpful?
0 out of 0 found this helpful

More Resources

  • Watch Demo

    See how CivilPro supports smarter, more efficient Project and QA management

  • Contact Hours:

    8:30am - 5pm AEST Monday to Friday; Closed on Saturday and Sunday

  • Follow Us

    Stay connected - follow us on LinkedIn for updates, tips and announcements