{
	"info": {
		"_postman_id": "1b74d521-fd5d-4466-8463-df4305fcd71d",
		"name": "PRODA",
		"description": "**API Documentation**\n\nFull PRODA API documentation is available at: [https://docs.proda.ai/](https://docs.proda.ai/)\n\nGuidance on Machine to Machine Authentication is available at: [https://docs.proda.ai/machine-to-machine-auth.html](https://docs.proda.ai/machine-to-machine-auth.html)\n\nPRODA API endpoints and OpenAPI specification is available at: [https://docs.proda.ai/docs.html](https://docs.proda.ai/docs.html)\n\n**Webhooks**\n\nPRODA's API also supports webhook events. Guidance on using webhook events is available at: [https://docs.proda.ai/webhook-guide.html](https://docs.proda.ai/webhook-guide.html)\n\nPostman isn't typically used as a long-running server to handle webhook events so these have been excluded from the Postman collection.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "13098725"
	},
	"item": [
		{
			"name": "M2M authentication",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"let jsonData = pm.response.json();\r",
							"pm.globals.set(\"proda-token\", jsonData.access_token);"
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "audience",
							"value": "https://app.proda.ai/thirdparty/",
							"type": "text"
						},
						{
							"key": "grant_type",
							"value": "client_credentials",
							"type": "text"
						},
						{
							"key": "client_id",
							"value": "YOUR_CLIENT_ID",
							"type": "text"
						},
						{
							"key": "client_secret",
							"value": "YOUR_CLIENT_SECRET",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://proda.eu.auth0.com/oauth/token",
					"protocol": "https",
					"host": [
						"proda",
						"eu",
						"auth0",
						"com"
					],
					"path": [
						"oauth",
						"token"
					]
				}
			},
			"response": []
		},
		{
			"name": "column-list",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{proda-token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://app.proda.ai/thirdparty/column-list",
					"protocol": "https",
					"host": [
						"app",
						"proda",
						"ai"
					],
					"path": [
						"thirdparty",
						"column-list"
					]
				}
			},
			"response": []
		},
		{
			"name": "databases-list",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{proda-token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://app.proda.ai/thirdparty/databases-list",
					"protocol": "https",
					"host": [
						"app",
						"proda",
						"ai"
					],
					"path": [
						"thirdparty",
						"databases-list"
					]
				}
			},
			"response": []
		},
		{
			"name": "properties",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{proda-token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "X-company-databases",
						"value": "101,102",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://app.proda.ai/thirdparty/properties",
					"protocol": "https",
					"host": [
						"app",
						"proda",
						"ai"
					],
					"path": [
						"thirdparty",
						"properties"
					],
					"query": [
						{
							"key": "",
							"value": "",
							"disabled": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "properties/rentrolls",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{proda-token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "X-company-databases",
						"value": "101,102",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://app.proda.ai/thirdparty/properties/rentrolls",
					"protocol": "https",
					"host": [
						"app",
						"proda",
						"ai"
					],
					"path": [
						"thirdparty",
						"properties",
						"rentrolls"
					]
				}
			},
			"response": []
		},
		{
			"name": "query",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{proda-token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					},
					{
						"key": "X-company-databases",
						"value": "101,102",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"columns\":[\"actual_lettable_area_sqm\", \"occupied\", \"tenant_name\", \"contracted_rent_pa\", \"last_completed_at\", \"rentroll_date\", \"persistent_unit_id\",\"property_name\"],\"rentrolls\":\"latest\", \"fxCurrency\":\"GBP\", \"fxDate\":\"2024-06-01\", \"filter\": { \"and\": [{\"column\":\"actual_lettable_area_sqm\", \"gte\": 50} , {\"column\":\"occupied\", \"eq\":true}]}}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://app.proda.ai/thirdparty/query",
					"protocol": "https",
					"host": [
						"app",
						"proda",
						"ai"
					],
					"path": [
						"thirdparty",
						"query"
					]
				}
			},
			"response": []
		},
		{
			"name": "users",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{proda-token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://app.proda.ai/thirdparty/users",
					"protocol": "https",
					"host": [
						"app",
						"proda",
						"ai"
					],
					"path": [
						"thirdparty",
						"users"
					]
				}
			},
			"response": []
		}
	]
}