List sites
Returns the sites registered on the installation. Results are paginated, and unless another order is requested they are sorted by domain in ascending order.
Sorting is available on pk, name and domain. Filtering by field value is not available on this endpoint.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The page number to return.
1The number of items to return per page.
10Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.
-idA paginated list of sites.
A paginated list of sites.
Total number of sites matching the request.
URL of the next page, or null if this is the last page.
URL of the previous page, or null if this is the first page.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
GET /api/v1/remote/1/sites/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"pk": 1,
"name": "Example Store",
"domain": "www.example.com"
}
]
}Last updated
Was this helpful?

