Example use cases
This endpoint allows you to create a new community with the specified properties:
- Create a new property or building portfolio
- Specify contact information, location, and other details for the community
- Establish the foundation for further property management operations
Authorization
string
default:"none"
required
The authentication token for your request
Request Body
The name of the community.
An external reference ID for the community (recommended for system integration).
A description of the community.
The timezone where the community is located (e.g., “US/Eastern”, “UTC”).
The primary contact email for the community.
The primary contact number for the community.
The type of property (e.g., “residential”, “commercial”).
The current status of the community (e.g., “active”, “inactive”).
The website URL for the community.
The latitude coordinate of the community location.
The longitude coordinate of the community location.
Response
A unique identifier for tracking the request. This ID can be used for support inquiries or tracking status.
Errors
Listed below are common errors that may be returned by the endpoint, along with their corresponding status code.
Status Code - 400
{
"name": [
"This field is required."
],
"timezone": [
"This field is required."
]
}
Status Code - 400
{
"email_address": [
"Enter a valid email address."
]
}
Status Code - 401
Invalid Authorization header bearer token value
{
"error": {
"type": "invalid_authorization",
"message": "The bearer token you have provided in the 'Authorization' header is invalid."
}
}
Status Code - 500
{
"error": {
"message": "An error occurred while creating the community."
}
}
curl --location --request POST 'https://api.travtus.com/communities/' \
--header 'Authorization: bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Skyline Apartments",
"community_external_ref": "SKY-APT-001",
"description": "Modern apartment complex with panoramic city views",
"timezone": "US/Eastern",
"email_address": "[email protected]",
"phone_number": "555-123-4567",
"property_type": "residential",
"status": "active",
"website_address": "https://skylineapartments.com",
"latitude": 40.7128,
"longitude": -74.0060
}'
{
"request_id": "7f5ce31c-39a1-42df-9182-4858b7d94c3d"
}