VeriSmart Agent API Documentation V1

This documentation is intended for software developers to allow them to query the VeriSmart booking database within their own applications.

Changelog

The Agent API stays at V1. Entries are dated, newest first, and each one links to the section that describes it.

26 November 2026

24 November 2026

Introduction

The VeriSmart Agent API (Referred to as just "API" hereafter) currently has two endpoints available.

The "Provisioning" API allows a developer to fetch and store the credentials needed in JSON format using the Agents username and password.

The "Booking" API allows you to use these credentials to fetch, and insert data in JSON format from our database.

Conventions

All responses include a field of "response_status".

Response of 1 means the query is successful, and 0 means failure. If failed, the only other field will be "error", which contains the reason for failure.

All submitted data should be URL Encoded.

All responses will be JSON encoded.

All endpoints use SSL, and will not work over a normal http:// transport.

Endpoints

The API is served at app.verismart.co.uk. A request to www.verismart.co.uk does not reach it.

Provisioning

https://app.verismart.co.uk/dcal/api/v1/provisioning/

Booking

https://app.verismart.co.uk/dcal/api/v1/booking/

Provisioning API

The Provisioning API allows you to fetch the apikey and secret.

Three fields are submitted, either via POST or GET

"devkey" - your developers key, supplied separately
"username" - Agents calendar username, usually an email address
"password" - Agents calendar password

All GET requests should be URL Encoded.

As all of our Agents currently login to the calendar and should know their login details, the recommended flow is to request their login details and use them to query the Provisioning API.

V2 of the Provisioning API will use the OAuth, or a similar system as yet to be decided.

Return Data

JSON-encoded string with request_status, apikey and secret.

Line breaks added for clarity

{
"request_status":"1",
"apikey":"D15AD8F8015989F637EF53E8A1458YHR4C444B58",
"secret":"OTc2ZDg3ODFlMmU4MzRjNzBjODgwZWFmZGI4YjZFgrrtgGMyODc4MWE1NTk5Njg0NGY4ZjQxNzVjNWMxODJiZA%3D%3D"
}

You will need both the apikey and the secret to interact with the Booking API.

Booking API

The booking API uses signed query strings to authenticate the request. The querystring will be signed using the secret, which is then appended to the URL before the GET request is made.

Building a signed URL

We will be signing just the query string, which contains the apikey and our requests and/or data.

An simple example query string, showing all bookings for today:

apikey=D15AD8F8015989F637EF53E8A1458YHR4C444B58&mode=show

Now we take that string, and and hash it with sha512 to produce our signature string.

In PHP:

$signature = hash_hmac("sha512", $query_string, $secret);

This signature can now be appended as "signature" to the url

In PHP:

$query_string = $query_string . '&signature=' . $signature;

And this URL can be used to query the API. The signature tells VeriSmart that this request is correctly authed, and SSL ensures the request data remains private.

A full PHP example:

        $request_data = array(
        'apikey' => $apikey,
        'mode' => 'show'
        );

        $query_string = http_build_query($request_data);

        $signature = hash_hmac("sha512", $query_string, $secret);

        $query_string = $query_string . '&signature=' . $signature;

        $result = file_get_contents($apiurl . '?' . $query_string);

Booking API Query Types

The Booking API currently supports querying on specific bookings, bookings on a specific day, bookings in a specific month, and bookings on a specific property.

We will start with the most useful query type, specific property.

Fetch bookings by specific property

The mode is "property", and we are basically querying the VeriSmart database with a search.

The search fields available are

property_name - This is the building name, eg Heron Court
property_flatno - Can be numbers, letters or mixed
property_houseno - Can be numbers, letters or mixed
property_address1 - Address Line 1, traditionally the street address
property_address2 - Address Line 2, rarely used
property_town - The postal town
property_county - The postal county
property_postcode - REQUIRED

The property search will find a single property that matches the criteria, and return all of it's bookings for the authed customer. Most fields are optional, but using more data will ensure more accurate results.

Example url, linebreaks added for clarity:

?apikey=APIKEY&mode=property&property_flatno=98
&property_houseno=99&property_name=Bakewell%20Mansions
&property_address1=Bobby%20Tables%20Street&property_postcode=BH11XX&signature=SIGNATURE
A Note on Postcodes

All spaces in submitted postcodes are ignored, so feel free to submit with or without spaces.

Fetch bookings on specific day

To select all bookings from a specific day, the mode is "show" and you supply three fields.

The fields are:

day - numeric, 1..31
month - Month name, January...December
year - four digits, 2013

Example url:

?apikey=APIKEY&mode=show&month=April&year=2013&day=9&signature=SIGNATURE

Fetch Bookings on specific month

To select all bookings from a specific month, the mode is "show" and you supply two fields.

The fields are:

month - Month name, January...December
year - four digits, 2013

Example url:

?apikey=APIKEY&mode=show&month=April&year=2013&signature=SIGNATURE

Fetch available time slots on a specific day

To select available slots, the mode is "slots" and you supply three fields.

The fields are

day - 1...31, day number without leading zeroes
month - Month name, January...December
year - four digits, eg 2013

Example url:

?apikey=APIKEY&mode=slots&day=8&month=April&year=2013&signature=SIGNATURE

Successful Return:

{
  "request_status": "1",
  "0": {
"teamid": "1506",
"team_name": "Deans Test Inventory Clerk",
"available": 1,
"status": "Available",
"available_slots": [
  "Anytime",
  "Morning",
  "Afternoon",
  "TBA",
  "09:00",
  "09:30",
  "12:30",
  "16:30",
  "17:00"
]
  }
}

Note that certain logins scope with more than one "team" within the VeriSmart booking system. As you can see from the json returned,this API call can return multiple teams availability.

The following fields are returned for each team record:

teamid: Unique ID for that team
team_name: Business name for that team
available: Boolean, if "0" then that team is not available that day
status: "Available" or an explanation of why the team is not available, eg "Day is full"
available_slots: an array of available slots. Slot names can be used as-is during API calls when creating bookings

Use this when the address in the CRM does not already sit in VeriSmart's address boxes. All three calls are on the booking endpoint. A create call that still sends an address and omits property_id is unchanged.

Sign the query string the same way as every other booking call. The examples below show signature=SIGNATURE for that value.

1. Find the property this login already has

Filter mode=properties by postcode. While has_more is 1, call again with after_property_id set to next_after_property_id and send the same postcode.

https://app.verismart.co.uk/dcal/api/v1/booking/?apikey=APIKEY&mode=properties&postcode=BH15+1AB&per_page=50&signature=SIGNATURE
{
  "request_status": "1",
  "per_page": 50,
  "has_more": 0,
  "next_after_property_id": "",
  "properties": [
    {
      "property_id": "1001",
      "vendorid": "STREET-1",
      "property_flatno": "2",
      "property_houseno": "10",
      "property_address1": "High Street",
      "property_town": "Poole",
      "property_postcode": "BH15 1AB",
      "booking_count": 4,
      "last_service_date": "2024-06-01",
      "last_assignment": "INVENTORY"
    },
    {
      "property_id": "1008",
      "vendorid": "",
      "property_flatno": "",
      "property_houseno": "",
      "property_address1": "High Street",
      "property_town": "Poole",
      "property_postcode": "BH15 1AB",
      "booking_count": 0,
      "last_service_date": "",
      "last_assignment": ""
    }
  ]
}

Two rows can share a postcode. Keep 1001. It has the visits, and the last one was an inventory. Store 1001 on the CRM property and go to step 3.

address1, town, flat_no, house_no, property_name and vendorid can be added to the same call. Those match the stored text exactly, including capitals. postcode ignores spaces and capitals.

2. Create a property id when nothing matches

An empty properties array is a successful response. It means this login has no row for that filter. Call mode=property_create with the street, town and postcode.

https://app.verismart.co.uk/dcal/api/v1/booking/?apikey=APIKEY&mode=property_create&flat_no=2&house_no=10&address1=High+Street&town=Poole&postcode=BH15+1AB&vendorid=STREET-1&signature=SIGNATURE
{"request_status":"1","property_id":"1002","created":"1"}

created "1" is a new row. created "0" means this login already had that exact address, and property_id is that existing row. Store the id. A matching address that only another customer has used is not reused.

3. Book with the property id

Send mode=create with property_id and the visit. Leave out the street, town, postcode, bedrooms and furnishing. The stored property stays as it is, and the task is attached to that row.

https://app.verismart.co.uk/dcal/api/v1/booking/?apikey=APIKEY&mode=create&property_id=1001&assignment=INVENTORY&day=10&month=December&year=2026&service_time=Anytime&key_location=Agent&comments=CRM+order&signature=SIGNATURE
{"request_status":"1","taskid":79172}

Later orders for the same CRM property send that stored property_id again. An oversight login also sends oversight_team or teamid for the office. A property_id this login has neither booked nor created is rejected, and no task is created.

Field by field detail is in List a customer's properties, Create a property and Create New Booking.

List a customer's properties

The mode is "properties".

The property database is shared by every customer. This call returns the properties this login has booked, including archived bookings, and properties this login has created with mode=property_create. It does not return another customer's properties.

An oversight key includes properties for the parent login and its linked offices. A multiagent login has one key pair per calendar. Page each key to list that calendar.

The fields are:

after_property_id - Optional. Property id returned as next_after_property_id. Omit on the first page
per_page - Optional. Default 50, maximum 100
flat_no - Optional filter. Exact match on the stored flat number
house_no - Optional filter. Exact match on the stored house number
property_name - Optional filter. Exact match on the stored property name
address1 - Optional filter. Exact match on the stored first address line
address2 - Optional filter. Exact match on the stored second address line
town - Optional filter. Exact match on the stored town
county - Optional filter. Exact match on the stored county
postcode - Optional filter. Spaces and capital letters are ignored
vendorid - Optional filter. Exact match on the stored vendor id

Send any combination. A field you leave out is not used as a filter. The result is still only this login's properties. Text filters match the stored value exactly, including capital letters. postcode matches BH15 1AB, BH151AB and bh15 1ab as the same postcode.

Properties are ordered by property_id ascending inside that filter. Keep calling while has_more is 1, passing next_after_property_id back as after_property_id, and send the same filters again. When the filter changes, omit after_property_id and start from the first page.

Example url:

?apikey=APIKEY&mode=properties&postcode=BH15+1AB&address1=High+Street&per_page=50&signature=SIGNATURE

Successful return:

{
  "request_status": "1",
  "per_page": 50,
  "has_more": 0,
  "next_after_property_id": "",
  "properties": [
    {
      "property_id": "1001",
      "vendorid": "STREET-1",
      "property_name": "Heron Court",
      "property_flatno": "2",
      "property_houseno": "10",
      "property_address1": "High Street",
      "property_address2": "",
      "property_town": "Poole",
      "property_county": "Dorset",
      "property_postcode": "BH15 1AB",
      "property_size": "3",
      "property_type": "FURNISHED",
      "booking_count": 4,
      "last_service_date": "2024-06-01",
      "last_assignment": "INVENTORY"
    }
  ]
}

booking_count counts live and archived bookings for this login. last_service_date is YYYY-MM-DD and is empty when the property has no booking yet. last_assignment is the service on that latest visit. Duplicate address rows are returned as separate properties. booking_count and last_assignment show which row holds the earlier visits.

An empty history is a successful response with an empty properties array.

Create a property

The mode is "property_create".

Use this for a CRM property that did not match a row from mode=properties. The call returns a VeriSmart property_id that can be stored against the CRM property and sent on later orders.

Required fields are marked with an asterisk.

flat_no - Flat Number/Letter
house_no - House Number
property_name - Property Name
* address1 - First line of address, usually street name
address2 - Second line of address
* town - Name of town
county - Name of County
* postcode - Postcode of property
bedrooms - Number of bedrooms. Stored as the property size
furnishings - UNFURNISHED, FURNISHED or PART-FURNISHED
garden - Yes, No, Unknown
outhouse - Yes, No, Unknown
garage - Yes, No, Unknown
vendorid - Optional. The agent's own property reference

Example url:

?apikey=APIKEY&mode=property_create&address1=High+Street&town=Poole&postcode=BH15+1AB&vendorid=STREET-9&signature=SIGNATURE

Successful return:

{"request_status":"1","property_id":"1002","created":"1"}

created is "1" when a new property row was inserted and "0" when this login already had the same flat, house, property name, address lines, town and postcode. Postcode spaces and letter case are ignored for that check. County, bedrooms and furnishing are not part of it. Sending the same request again returns the same property_id.

A matching address that only another customer has used is not reused. The call inserts a new property and returns that id.

vendorid is saved on a new property, when the stored reference is empty, or when this customer is the only one with bookings on the property. A different reference already stored on a shared property is left unchanged.

Create New Booking

The mode for creation is "create".

The following fields are accepted. Required fields are marked with an asterisk. Address, bedrooms and furnishing stay required when property_id is omitted. When property_id is sent, those fields are not required and are not written onto the property.

    flat_no - Flat Number/Letter
house_no - House Number
property_name - Property Name
* address1 - First line of address, usually street name
address2 - Second line of address, generic
* town - Name of town
county - Name of County
* postcode - Postcode of property
* bedrooms - Number of bedrooms in property
* furnishings - UNFURNISHED, FURNISHED or PART-FURNISHED
garden - Yes, No, Unknown
outhouse - Yes, No, Unknown
garage - Yes, No, Unknown
property_id - Optional. VeriSmart property id from mode=properties or mode=property_create. When sent, the booking is attached to that property and the address, size and furnishing already stored on it are left unchanged
* assignment - Service name from your pricelist, for example INVENTORY, CHECK-IN, INTERIM, CHECK-OUT, UPDATE, or a combined booking such as INVENTORY + CHECK-IN
* day - Day of the month, eg 1 or 16
* month - Textual month name, eg January, May
* year - Four-digit format, eg 2013, 2015
* service_time - Same as slots data, 24-format eg 09:00, 14:00
* key_location - Where are the keys, One of: Agent, Tenant, Landlord, Property, Other
contact - Contact name/number if meeting anyone
branch_id - Not used yet
comments - Free text field for any extra information
tenant_name - Required for Paperless
tenant_mobile - Required for Paperless
tenant_email - Required for Paperless
landlord_email - Optional for Paperless
ondelivery_hook_url - A full URL which the system will POST json data to, on report delivery, see below for details

This is not a breaking change. All current create calls still work, including assignment values INVENTORY, CHECK-IN, INTERIM, CHECK-OUT and UPDATE. Calls that omit property_id keep the existing address match and the same response (request_status and taskid).

property_id is accepted when this login, or a linked oversight office, already has a booking on that property, or when this login created it with mode=property_create. Any other id returns an error and does not create a booking. The confirmation email still prices the visit from the size and furnishing stored on the property.

Send the service name from your pricelist. The examples above are the usual visits. A custom service is sent the same way. Teams join a combined booking with " + ", " & ", " and " or " AND ". The confirmation email prices the booking from your pricelist using the service, the property size and the furnishing. A service that already has a price is still priced from that row. A combined service is also priced when one of the other three spellings has the price.

Please note, VeriSmart Tenant Delivery is optional, but all three tenant_ fields are required if you do wish to have us deliver to the Tenant.

Example url:

https://app.verismart.co.uk/dcal/api/v1/booking/?apikey=APIKEY&mode=create&flat_no=9&house_no=23
&address1=bellington+gardens&town=bournemouth
&postcode=BH1+1XX&bedrooms=3&furnishings=UNFURNISHED&assignment=INVENTORY&
day=26&month=May&year=2013&service_time=Anytime&key_location=Tenant&contact=07854123456&
comments=Mind+the+dog&tenant_name=Dean+Owen&tenant_mobile=07854123456
&tenant_email=dean%40de4n.co.uk&landlord_email=noone%40surrounded.org.uk&signature=SIGNATURE

Returns

Status code, unique VeriSmart reference number

{"request_status":"1","taskid":79172}

ondelivery_hook_url

When the supplier has uploaded the report (which sends the report as a link via email), the system will POST the following data, in json format -

taskid - Unique reference number
report_url - URL to download the report PDF

Please note your URL can include query string information, but this will be converted to JSON and included within the payload.

The POST will contain a single parameter, called "payload", which will contain the JSON data, plus a field called "custom_data" which will contain any query string data included in the hook url.

Please note, the report may be uploaded multiple times, therefore this event may fire multiple times.

Example Data

{
  "taskid": "123456",
  "report_url": "http:\/\/ivcn.saveatree.co.uk\/333872_79564.pdf",
  "custom_data": {
    "mode": "new_upload",
    "data": "myinternalref"
  }
}