# Recent Enquiries

You can retrieve the recent lead emails and names by using the recent enquiries API call.

This data only shows data for the last 24 hours.

# Endpoint

  • /enquiries

# Required Params

  • api_token - String: Your API token

# Optional Params

  • office_id - Integer: The office you wish to get completed form data for. Leaving this empty will retrieve data for all offices.

# Example Request

  • cURL
  • PHP
  • Ruby
## Completed Forms Duplicate
curl "https://app.agentresponse.co.uk/api/completed-forms?api_token=YOUR_API_TOKEN" \
	 -H 'Content-Type: application/json' \
	 -H 'Accept: application/json'

# Example Response

[
  {
    "id": 1234,
    "name": "Fred Bloggs",
    "email": "f.bloggs@example.org",
    "portal": "Right Move",
    "enquiry_type": "Letting",
    "created_at": "2021-03-25T15:25:52.000000Z"
  },
  {
    "id": 1235,
    "name": null,
    "email": "j.smith@example.org",
    "portal": "On The Market",
    "enquiry_type": "Sale",
    "created_at": "2021-03-25T15:25:52.000000Z"
  }
]