Get Site Token
POST
/v1/auth/site/{site_id}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
Path Params
site_id
string
required
The ID of the site you want to get the token for
Request samples
Responses
Successful Response(200)
Validation Error(422)
Unauthorized(401)
Successful Response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
A response containing a site access token.- **device_access_token**: The access token for the device.
site_access_token
string
Site Access Token
expires_at
string <date-time>
required
Example
{
"site_access_token": "string",
"expires_at": "2019-08-24T14:15:22.123Z"
}
Last modified: 8 months ago