Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

get
/sites/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
Responses
200

A paginated list of sites.

application/json

A paginated list of sites.

countintegerOptional

Total number of sites matching the request.

nextstring · nullableOptional

URL of the next page, or null if this is the last page.

previousstring · nullableOptional

URL of the previous page, or null if this is the first page.

get/sites/
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?