Latest News: MIDAS v4.26 Now Available | COVID-19 Support


A number of API settings are available via MIDAS Admin Options → Manage Addons → API Access.

MIDAS API Settings
Enable API access?Enables/Disables API access. If disabled, all API calls will return:
{"error":"not enabled"}
Read Only access?With this setting enabled, the API will operate in "read-only" mode and will be prevented from making any changes to your MIDAS. If you only intend to read data from MIDAS, and not write/make changes using the API, you should select this option.
Allow GET (as well as POST) method?By default, only http POST requests to the API are permitted, and http GET requests are automatically rejected. Enabling this setting will permit either GET or POST http requests to be made to the API
Enable JSONP support?Enables/Disables returning JSONP data in API responses
Enable logging of all calls?
(Only available to self-hosted editions of MIDAS)
When enabled, all API calls will be logged to an api_log.dat file (located in your MIDAS directory). The format of each line of this file is as follows:

timestamp   IP_address   api_command

This can be used to log/monitor calls to your API. It should only be enabled for debugging purposes as it will reduce performance of the API, and may lead to a very large api_log.dat file if left enabled for a long of time.
API actions appear in Recent Activity log?By default when a user performs an action in MIDAS (such as adding a booking), the action is recorded in the Recent Activity log. This setting controls whether actions performed through the API that result in changes to data within MIDAS should also be included in the Recent Activity log.
Allowed ReferrersRestricts calls to your API to only those originating from certain domains/IP addresses. If left blank, API calls will be allowed from any referrer. For calls from banned referrers, the API will return:
{"error":"referrer not allowed"}