Flip Energy API
  1. Sites
Flip Energy API
  • Overview
  • Important concepts
  • Authentication
  • Enrollment process
  • End-user app design
  • Monitoring / Telemetry
  • Control
  • Change log
  • Mobile App API
    • Devices
      • Create Device
      • Read Devices
      • Read Device
      • Update Device
      • Delete Device
    • Enrollments
      • Create Enrollment
      • Read Enrollments
      • Read Enrollment
      • Delete Enrollment
    • Events
      • Read Events
      • Read Event
      • Update Event Participation
    • Programs
      • Read Programs
      • Read Program
    • Sites
      • Read Site
      • Update Site
  • Cloud API
    • Sites
      • Get Site Token
        POST
      • Get Sites
        GET
    • Commissioning
      • Commission Site And Devices
    • Sessions
      • Sessions
    • Commands
      • Command Created
      • Update Command Status
    • Programs
      • Read Programs
    • Telemetry
      • Report Battery Telemetry
    • Webhooks
      • Overview
      • List of events
      • Webhook headers
      • Schemas
        • Command
        • Enrollment
        • Event
  1. Sites

Get Site Token

Cloud Mock
https://mock.apidog.com/m1/479670-0-default
Cloud Mock
https://mock.apidog.com/m1/479670-0-default
POST
/v1/auth/site/{siteId}
auth
Use this endpoint to retrieve a site token, to be used to authenticate calls between your homeowner app and our API.
Note that you need the client authentication token (not the site token) to access the API.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
siteId
string 
required

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mock.apidog.com/m1/479670-0-default/v1/auth/site/'

Responses

🟢200Successful Response
application/json
Body
A response containing a site access token.- **device_access_token**: The access token for the device.
site_access_token
string 
Site Access Token
required
Example:
abc-xyz
expires_at
string <date-time>
required
Example
{
  "site_access_token": "abc-xyz",
  "expires_at": "2019-08-24T14:15:22Z"
}
🟠422Validation Error
🟠404Record not found
🟠401Unauthorized
🟠400Invalid input
Modified at 2025-04-29 20:39:52
Previous
Update Site
Next
Get Sites
Built with