v1.0
Jivox API Documentation

API Requests & Responses

The APIs are defined on a custom BASE_DOMAIN. All paths mentioned across all API Endpoint categories will be available on this domain. Eg: If BASE_DOMAIN is demo.api.jivox.com, then create accounts are available on POST https://demo.api.jivox.com/v2/accounts.

Jivox programmable personal API is built on Open API specification and is a REST based API request set, with GET, PUT, POST, DELETE methods supported over an HTTPS connection. The description of these methods are listed below:

Method TypeDescription
GETTo fetch data from the system
PUTTo update existing data in the system
POSTTo insert new data into the system
DELETETo delete existing data in the system

The request and responses are made available in JSON formats. In order to make the API request, we get the requests authenticated through from the API backend. This is done by using an API key that’s added as part of the API request header before the request is sent.

API Key as Header

The API key has be added under the header jvx_apikey

The security on the API key behaves as a password authentication, and the API key the user receives is like a password. For every API request made, the API key has to be attached to the request as a header. This API key helps to find out the accounts the user has access to and the ads and campaigns used.

The header name to use is jvx_apikey

For example:

Javascript
Copy

Some of the GET methods support the following optional parameters that can be input as part of the API request URL:

Parameter NameDescription
limitMax number of items to return as part of the API response body. Default value is 100.
offsetStarting offset of pagination of data. Default value is 0.
fieldsList of fields, comma separated, that the API requester wants to be returned. By default, all the values are returned.
filters

The value for the filters parameter will be a comma separated string. Each part has to be of the format Field(Operator)Value (the parenthesis are optional but help in parsing the input).

Field will be the same as the fields query parameter.

Valid operators are =,<>,<,>,<=,>=,like,in. < and > are only supported for int field types.

By default, all filters are combined with AND operator. So, API only returns data that matches all the filters. Adding :or at the end of a filter string will mark that filter as optional.

A sample request and response to showcase the usage of filters is added below:

Sample Request

Javascript
Copy

Alternatively, filters can also be used like this:

Javascript
Copy

Sample Response

Javascript
Copy

Parameter Types

The API request parameters are of the following types:

ParameterDescription
Header Parameters

Parameters that are included in the API request header.

Example: An API key that’s used for authorization of the API request)

Path ParametersParameters that appear within the path of the request endpoint but before the query string, before the ‘?’ symbol on the path.
Query ParametersParameters that appear in the query string of the endpoint, after the ‘?’ symbol on the path.
Request Body ParametersParameters that are submit as part of the API request body (usually for POST and PUT requests).

Data Types

The API request parameters are of the following data types:

Data TypeDescription
stringA sequence of letters and/or numbers.
integerA whole number
arrayA set of values of similar type (eg :an integer array will be a set of integer values)

HTTP Status Codes

The following HTTP Status Codes are returned by the system under various scenarios:

HTTP Status CodeDescription
200Request was processed successfully.
400Request schema is incorrect.
401Unauthorized request. Credentials or session is invalid
403Forbidden. Access permissions are not there for the client calling the method
404API method not found.
429Too many API method requests made
500Internal Error
503Service Unavailable