CMS Tool API

CMS Tool API schema

Public API version 1.4.51.

Directory Listing

Manage directory listings

Endpoint URL

https://api.cms-tool.net/api/directoryListing

/api/directoryListing

Read and update directory listings.

GET

List listings, or retrieve one by appending its ID to the path. Needs the directoryListing:read scope.

Query parameters

NameTypeExampleNotes
idint123Filter results by id.
pageint123Filter results by page.
classidint123Filter results to listings filed under this classification in any of the five classification columns.
statusint123Filter results by listing status: -1 archived, 0 new, 100 live, 101 to 109 priority levels, 200 top.
minStatusint123Filter results to listings with this status or higher.
maxStatusint123Filter results to listings with this status or lower.
keywordstextexampleFilter results by keywords.
nametextexampleFilter results by name.
alphaidtextbay-cafeFilter results to the listing with this SEO filename.
emailtextcustomer@example.comFilter results by email.
citytextexampleFilter results by city.
postcodetextABC123Filter results by postcode.
countrytextNZFilter results by country.
mbr_idint123Filter results by mbr id.
region_idint123Filter results by region id.
createdAfterdate2026-09-24Filter results by created after.
createdBeforedate2026-09-24Filter results by created before.
updatedAfterdate2026-09-24T14:30:00+12:00Filter results by updated after.
updatedBeforedate2026-09-24T14:30:00+12:00Filter results by updated before.
orderBytextexampleChoose a supported sort field for this endpoint.
orderDirectiontextexampleUse reverse to reverse the selected sort order.
offsetint123Skip this many matching records before returning results.
pageSizeint123Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise.

POST

Create or update a listing from a JSON object. Needs the directoryListing:write scope.

Request content type: application/json

Request body fields

NameTypeExampleNotes
idint123Set the id value.
pageint123Set the page value.
nametextexampleSet the name value.
brieftextexampleShort advert for the listing, shown in lists and search results.
keywordstextexampleSet the keywords value.
alphaidtextbay-cafeUnique SEO filename of the listing, used in its web address. Spaces become dashes.
contacttextexampleSet the contact value.
emailtextcustomer@example.comSet the email value.
urltexthttps://www.example.com/Set the url value.
phonetextexampleSet the phone value.
citytextexampleSet the city value.
countrytextNZSet the country value.
classidint123The classification the listing is filed under first.
classid2int123A second classification the listing is filed under.
statusint123Listing status: -1 archived, 0 new, 100 live, 101 to 109 priority levels, 200 top.
mbr_idint123Set the mbr id value.

Data definitions

FieldTypeDescriptionFormatExample
countrytextCountry of the physical address.
num_max_occupancyintMaximum occupancy, for accommodation and venue listings.
madelivetimestampDate and time the listing was made live.2025-12-31 23:59:59
keywordstextKeywords the listing can be found by.
cost_daily_highdecimalDaily rate at peak times.
widgetcodetextWidget or script code shown on the listing page, for example a booking widget.
mbr_idintID of the member (login) that owns the listing. 0 when it is not linked to a member.
phone2textSecond phone number.
poststatetextState or province of the postal address.
social6_urltextAddress of another social network page, 6.
logo_srctextPath of the listing's logo image.
linkedin_usernametextLinkedIn username.
posttextPostal address.
url2textAnother web link for the listing.
contacttextName of the manager or contact person.
longadverttextLong advert: the full description shown on the listing page.
pricing_infotextPricing information: rates, accommodation or venue costs.
statetextState or province of the physical address.
alphaidtextUnique SEO filename of the listing, used in its web address. Spaces become dashes. A leading slash makes it a published filename.
num_bedroomsintNumber of bedrooms, for accommodation listings.
social5_urltextAddress of another social network page, 5.
posttowntextTown or city of the postal address.
social9_urltextAddress of another social network page, 9.
createdtimestampDate and time the listing was created.2025-12-31 23:59:59
region_idintID of the region the listing is in.
postcodetextZip or postal code of the physical address.
postpostcodetextZip or postal code of the postal address.
social8_urltextAddress of another social network page, 8.
phonetextPhone number.
nametextOrganisation name of the listing.
after_hourstextAfter hours contact number.
failedreasontextWhy the last email to the listing's address failed.
social7_urltextAddress of another social network page, 7.
classid2intID of a second classification the listing is filed under. -1 means none.
pageintDirectory page that the listing belongs to.123456
updatedtimestampDate and time the listing was last changed.2025-12-31 23:59:59
place_latitudedecimalMap latitude of the listing, from -90 to 90.
statusint2Listing status: -1 archived, 0 new, 100 live, 101 to 109 live with a higher priority, 200 top priority. A higher status sorts earlier in the directory, and archived listings are not counted in their classifications.
hits_linkintNumber of times the listing has been viewed.
othertextOther contact details: any other methods of contact.
classid4intID of a fourth classification the listing is filed under. -1 means none.
lastconfirmemailsenttimestampDate and time the last email was sent asking the business to confirm that its listing and email address are still correct. A listing that is not confirmed can go stale and, depending on the website's settings, is archived automatically.2025-12-31 23:59:59
citytextTown or city of the physical address.
classid3intID of a third classification the listing is filed under. -1 means none.
classid5intID of a fifth classification the listing is filed under. -1 means none.
facebook_usernametextFacebook username.
twitter_usernametextX (Twitter) username.
social2_urltextAddress of another social network page, 2.
url_instant_redirectboolTrue to send visitors straight to the listing's website instead of showing its listing page.
floor_area_sqmintFloor size in square metres.
streettextStreet address (physical address).
mobile2textSecond mobile phone number.
social1_urltextAddress of another social network page, 1.
dirhiddenreferencetextThe merchant's own reference for the listing, visible to the listing's owner.
faileddatetimestampDate the system last failed to deliver an email to the listing's address. Cleared when the status is changed.2025-12-31 23:59:59
cost_daily_lowdecimalDaily rate off peak.
emailtextContact email address of the listing.
brieftextShort advert for the listing, shown in lists and search results.
hourstextOpening hours, or club meeting hours.
youtube_usernametextYouTube username.
place_longitudedecimalMap longitude of the listing, from -180 to 180.
mobiletextMobile phone number.
json_featuresjsonFeatures of the listing as a JSON object, with a key Feature followed by the ID of each feature that is set, for example Feature3.
urltextWebsite address of the listing.
social4_urltextAddress of another social network page, 4.
renewedtimestampDate and time the listing was last renewed.2025-12-31 23:59:59
classidintID of the first classification the listing is filed under. -1 or 0 means none.
deletedtimestampDate and time the listing was archived by the system, if it was.2025-12-31 23:59:59
suburbtextSuburb of the physical address.
social3_urltextAddress of another social network page, 3.

Machine-readable documentation

This documentation is also available as JSON or Markdown at the same URL. Request JSON with Accept: application/json or Markdown with Accept: text/markdown.