{"id":219,"date":"2023-08-06T11:43:12","date_gmt":"2023-08-06T08:43:12","guid":{"rendered":"https:\/\/smsalert.mobi\/blog\/?p=219"},"modified":"2023-12-05T10:24:26","modified_gmt":"2023-12-05T08:24:26","slug":"rest-api-v-2-2","status":"publish","type":"post","link":"https:\/\/smsalert.mobi\/blog\/en\/rest-api-v-2-2\/","title":{"rendered":"REST API Version 2"},"content":{"rendered":"\n<p>Welcome everyone, although we are on a holiday we are keen to announce a new REST API. This one although shares quite a lot of similarities with the old API most of the work has been in the backend to streamline response speed which is now up to 3 times faster, and the way calls to the API are made has been standardised.<\/p>\n\n\n\n<p>Below is a list of the changes made, but we recommend that you consult the documentation.<\/p>\n\n\n\n<p>We have increased its security by including the user and API KEY in the special Authorization header instead of a parameter in the URL.<\/p>\n\n\n\n<p>All POST calls will send BODY JSON instead of AJAX-FORM.<\/p>\n\n\n\n<p>The response has also been standardized and improved to handle errors much better on the implementer side.<\/p>\n\n\n\n<p>BULK messages will automatically create an instant campaign, this way messages will be sent in a controlled way and avoid blocking by operators.<\/p>\n\n\n\n<p>We are guiding customers to start implementing the new API, the old one will stop working on 1 January 2024.<\/p>\n\n\n\n<p>All our modules will also be updated in the next period.<\/p>\n\n\n\n<p>We take this opportunity to announce that the platform is in a constant improvement process, and the last 3 months we have focused on optimizing response speed and fixing bugs.<\/p>\n\n\n\n<p>Thank you, have a pleasant and fast communication with your customers!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome everyone, although we are on a holiday we are keen to announce a new REST API. This one although shares quite a lot of similarities with the old API most of the work has been in the backend to streamline response speed which is now up to 3 times faster, and the way calls &#8230; <a title=\"REST API Version 2\" class=\"read-more\" href=\"https:\/\/smsalert.mobi\/blog\/en\/rest-api-v-2-2\/\" aria-label=\"More on REST API Version 2\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":217,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-219","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":3,"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions\/281"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/media\/217"}],"wp:attachment":[{"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smsalert.mobi\/blog\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}