Luxor Documentation Hub Logo
Energy/API Documentation/Ancillary Services

List AS calls for a site

Retrieves a paginated list of AS calls for a specific site.

GET
/api/v1/energy/as-calls

Authorization

AuthorizationRequiredBearer <token>

In: header

Query Parameters

site_idRequiredSite Id
Format: "uuid"
page_numberPage Number

Page number for pagination

Default: 1Minimum: 1
page_sizePage Size

Number of items per page

Default: 100Minimum: 1Maximum: 1000
curl -X GET "https://app.luxor.tech/api/v1/energy/api/v1/energy/as-calls?site_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&page_number=1&page_size=100" \
  -H "Authorization: Bearer <token>"

Successful Response

{
  "as_calls": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
      "opr_date": "2019-08-24",
      "hour_ending": 0,
      "as_type": "string",
      "quantity_kw": "string",
      "start_time": "2019-08-24T14:15:22Z",
      "end_time": "2019-08-24T14:15:22Z",
      "as_iso_name": "string",
      "comments": "string",
      "created_at": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "page_number": 0,
    "page_size": 0,
    "item_count": 0,
    "previous_page_url": "string",
    "next_page_url": "string"
  }
}