Appearance
Sign In beta
Sign in a user to obtain a new access token. All uses must have a valid access token in order to interact with the embedded calendar.
HTTP method and URL path
POST https://api.realestatecontent.ai/wl/signin
Authorizations
Authorization string header required
Please provide your api key in as an authorization header
For example Authorization: {api_secret}
Request
Refresh Token string required
The refresh token of the user you want to obtain a new access token for.
Example Request
bash
# Replace with your actual API secret and refresh token
curl -X POST https://api.realestatecontent.ai/wl/signin \
-H "Authorization: {api_secret}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "refresh_token=DOHisnosihuYUGAdu567176sfihasnoIU"python
import requests
headers = {
# Replace with your API key
"Authorization": "{api_secret}"
}
data = {
# Replace with the user refresh token
"refresh_token": "DOHisnosihuYUGAdu567176sfihasnoIU"
}
response = requests.post(
"https://api.realestatecontent.ai/wl/signin",
headers=headers,
data=data
)javascript
fetch("https://api.realestatecontent.ai/wl/signin", {
method: "POST",
headers: {
Authorization: "{api_secret}", // Replace with actual API key
"Content-Type": "application/x-www-form-urlencoded"
},
body: new URLSearchParams({
refresh_token: "DOHisnosihuYUGAdu567176sfihasnoIU" // Replace with actual refresh token
})
})
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error("Error:", error));Responses
Success 200
If successful, the endpoint returns a 200 response with a JSON body with the following parameters:
Status Boolean
A boolean value representing the status of the action.
Data Object
A object containing the users access token.
Example Response
JSON
{
"status": true,
"data": {
"access_token": "DBOGbskjfbuiavdikniosnfoasifhihbsa",
"refresh_token": "DOHisnosihuYUGAdu567176sfihasnoIU",
"expires": 128321
}
}Unsuccessful 400
If unsuccessful, the endpoint returns a 400 response with a JSON body with the following parameters:
Status Boolean
A boolean value representing the status of the action.
Error String
A string with messaging regarding the error.
Example Response
JSON
{
"status": false,
"error": "Invalid auth token provided"
}