Skip to main content

Get All Legal pages

This endpoint retrieves all legal pages.

info

This operation does not require authentication. If the user is authenticated the 'ack' field will be added to the response with the user's ack status for that document.

HTTP Request

GET /api/v2/legal_page/

Parameters

NameInTypeRequiredDescription
limitqueryintegerfalseNumber of results to return per page
offsetqueryintegerfalseThe initial index from which to return the results
searchquerystringfalseA search term
valid_fromquerystringfalsevalid_from
valid_toquerystringfalsevalid_to
orderingquerystringfalseWhich field to use when ordering the results

Example Request


const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/legal_page/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» countintegerfalsenoneTotal results count
» nextstring(uri)¦nullfalsenoneNext page url
» previousstring(uri)¦nullfalsenonePrevious page url
» resultslist(Legal Page)falsenoneList of results

Example responses

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [{Legal Page}]
}