You are here: Script Service API > Getting Started > Accepted Inputs

Accepted Inputs

The input and output format for the Script Service API is JSON. Each incoming request must contain a JSON content-type header:

Content-Type: application/json; charset: utf-8

Due to same origin limitations with client-side scripts, it is expected that this API will be called using JSONP Ajax requests. The easiest way to create this type of request is to use the jQuery.ajax() function included with the jQuery JavaScript library. These types of requests are limited to HTTP GET. Other requests like POST, PUT, and DELETE are not possible. This means that the length of the request is limited by the browser. The limit to the length of the request is browser dependent, but is generally 2000 characters. It is important that client-side validation is added, to limit the length of the request and thereby prevent the request from failing due to length.

 

Was this page helpful? Can't find what you need? Let us know