curl --location --request GET 'https://api.travtus.com/communities/?name={Your_Community_name_here}' \
--header 'Authorization: bearer <token>'
{
"communities": [
{
"community_id": "test1234-4e84-4d02-8fa1-71d5ff0e0979",
"community_external_ref": "987123",
"name": "Test Community",
"description": null,
"location": {
"latitude": "34.0811089",
"longitude": "-84.2789026"
},
"timezone": "America/New_York",
"website": "https://community.test.com/apartments/community-test",
"phone_number": "801-456-1234",
"email": "[email protected]",
"status": "active"
}
],
"last_id": -1
}
This endpoint returns information about communities that match the given parameters.
curl --location --request GET 'https://api.travtus.com/communities/?name={Your_Community_name_here}' \
--header 'Authorization: bearer <token>'
{
"communities": [
{
"community_id": "test1234-4e84-4d02-8fa1-71d5ff0e0979",
"community_external_ref": "987123",
"name": "Test Community",
"description": null,
"location": {
"latitude": "34.0811089",
"longitude": "-84.2789026"
},
"timezone": "America/New_York",
"website": "https://community.test.com/apartments/community-test",
"phone_number": "801-456-1234",
"email": "[email protected]",
"status": "active"
}
],
"last_id": -1
}
last_id.Show community object
after_id parameter to get the next page of results.
A value of -1 indicates that there are no more pages available.{
"error": {
"type": "missing_authorization",
"message": "Your request does not include an 'Authorization' header with a bearer token for your account."
}
}
{
"error": {
"type": "expired_token",
"message": "The bearer token you have provided in the 'Authorization' header has expired. Please obtain a new one."
}
}
{
"error": {
"type": "invalid_authorization",
"message": "The bearer token you have provided in the 'Authorization' header is invalid."
}
}
{
"error": {
"type": "no_search_parameters",
"message": "At least one search parameter is required to find communities."
}
}
{
"error": "No communities found matching the provided criteria."
}
{
"error": "An internal error occurred while processing your request."
}
curl --location --request GET 'https://api.travtus.com/communities/?name={Your_Community_name_here}' \
--header 'Authorization: bearer <token>'
{
"communities": [
{
"community_id": "test1234-4e84-4d02-8fa1-71d5ff0e0979",
"community_external_ref": "987123",
"name": "Test Community",
"description": null,
"location": {
"latitude": "34.0811089",
"longitude": "-84.2789026"
},
"timezone": "America/New_York",
"website": "https://community.test.com/apartments/community-test",
"phone_number": "801-456-1234",
"email": "[email protected]",
"status": "active"
}
],
"last_id": -1
}