Appearance
Sign Up beta
Sign up a user for the service. All uses must have a created account before they can access the app and its features.
HTTP method and URL path
POST https://api.realestatecontent.ai/wl/signup
Authorizations
Authorization string header required
Please provide your api key in as an authorization header
For example Authorization: {api_secret}
Request
Email string required
The email of the user you are wanting to sign up
Example Request
bash
# Replace with your actual API secret
curl -X POST https://api.realestatecontent.ai/wl/signup \
-H "Authorization: {api_secret}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "[email protected]"python
import requests
headers = {
# Replace with your API secret
"Authorization": "{api_secret}"
}
data = {
# Replace email with the user's email
"email": "[email protected]"
}
response = requests.post(
"https://api.realestatecontent.ai/wl/signup",
headers=headers,
data=data
)javascript
fetch("https://api.realestatecontent.ai/wl/signup", {
method: "POST",
headers: {
Authorization: "{api_secret}", // Replace with your actual API secret
"Content-Type": "application/x-www-form-urlencoded"
},
body: new URLSearchParams({
email: "[email protected]" // Replace with your actual email
})
})
.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"
}