Data, including resources and relationships, can be fetched by sending a GET request to an endpoint. The server responds to a successful request to fetch an individual resource or resource collection with a 200 OK response.
A 404 Not found will be returned if a request fetches a single resource that does not exist. The response body will have a errors node with details. A 200 OK response will be returned if a request fetches a empty resource collection. The response body will be a JSON with a root node and an empty JSON array.
For instance, all sites of the authenticated user might be fetched with the following request:
GET /api/v2/sites HTTP/1.1
Content-Type: application/json
Accept: application/json
Authorization: UNyCernxjUHR18Rx1Qy7XGDyAdVksqDf8w
{
"sites": []
}