Skip to main content

Get Agency

Description: To get current agency information a HTTP GET request is made to the URL with the session token.

Method: GET

URI: /agency/

Headers: Authorization: Third party based authorization header

Returns

FieldTypeDescription
agencyAgencyAn agency object.

Example

Request
curl https://app-api.reiformslive.com.au/agency \
--request GET \
--header "Authorization: Basic YTlkOWIwYItNGY4Yi1hYTQxLTI5NzZmMTcyZmEyMQ=="
Response
{
"id": 1,
"name": "Example Agency",
"address": "123 Example Ave",
"address2": "",
"suburb": "Adelaide",
"state": "SA",
"postcode": "5000",
"phone": "00 0000 0000",
"fax": "",
"email": "ExampleAgency@example.com",
"credits": 15895,
"active": true,
"approved": true,
"member_number": "4830484",
"licencee_name": "Example Agency Realty Ltd Pty",
"licencee_number": "000000",
"gst": true,
"abn": "00 0000 0000",
"logo": "8c42e4a4-4e2c-4288-b86a-2247bd47ba59",
"created": 1347418493,
"updated": 1354661735,
"active_subscription": true,
"subscription_expiry": 1385557200,
"subscription_type": "ALL",
"admin": true,
"forms_created": 173
}