curl --location --request GET 'https://api.travtus.com/leases/?start_date=2023-01-17' \
--header 'Authorization: bearer <token>'
{
"leases": [
{
"identifier": "lease-1",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"landlord_id": "landlord-id-1",
"tenants": [
{
"tenant_id": "tenant-id-1",
"tenant_external_ref": "tenant-external-ref-1"
}
],
"unit_id": "unit-id-1",
"unit_external_ref": "unit-external-ref-1",
"is_furnished": false,
"minimum_days_notice": 30,
"deposit": 1400.0,
"rent": 700.0
},
{
"identifier": "lease-2",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"landlord_id": "landlord-id-1",
"tenants": [
{
"tenant_id": "tenant-id-2",
"tenant_external_ref": "tenant-external-ref-2"
},
{
"tenant_id": "tenant-id-3",
"tenant_external_ref": "tenant-external-ref-3"
}
],
"unit_id": "unit-id-2",
"unit_external_ref": "unit-external-ref-2",
"is_furnished": true,
"minimum_days_notice": 30,
"deposit": 1600.0,
"rent": 800.0
}
]
}
This endpoint returns information about all leases that match the given parameters.
curl --location --request GET 'https://api.travtus.com/leases/?start_date=2023-01-17' \
--header 'Authorization: bearer <token>'
{
"leases": [
{
"identifier": "lease-1",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"landlord_id": "landlord-id-1",
"tenants": [
{
"tenant_id": "tenant-id-1",
"tenant_external_ref": "tenant-external-ref-1"
}
],
"unit_id": "unit-id-1",
"unit_external_ref": "unit-external-ref-1",
"is_furnished": false,
"minimum_days_notice": 30,
"deposit": 1400.0,
"rent": 700.0
},
{
"identifier": "lease-2",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"landlord_id": "landlord-id-1",
"tenants": [
{
"tenant_id": "tenant-id-2",
"tenant_external_ref": "tenant-external-ref-2"
},
{
"tenant_id": "tenant-id-3",
"tenant_external_ref": "tenant-external-ref-3"
}
],
"unit_id": "unit-id-2",
"unit_external_ref": "unit-external-ref-2",
"is_furnished": true,
"minimum_days_notice": 30,
"deposit": 1600.0,
"rent": 800.0
}
]
}
group_ids parameter or group external references through the group_external_refs attribute to filter the list of retrieved leases down.
Do not provide both, as this will result in the request failing.
If no group_ids or group_external_refs are specified in the request, the authenticated user will retrieve lease records for all groups they have access to.
Show child attributes
pagination.next_cursor.Show lease object
Show address
Show pagination
after_id parameter to get the next page of results.
Will be null if there are no more pages.after_id parameter to get the previous page of results.
Will be null if this is the first page.{
"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 leases."
}
}
{
"error": {
"type": "both_group_identifiers_provided",
"message": "You have provided both a group id and group external reference for the find leases operation. Please only provide one of the two."
}
}
{
"error": {
"type": "not_found",
"message": "There are no lease records matching the provided parameters."
}
}
curl --location --request GET 'https://api.travtus.com/leases/?start_date=2023-01-17' \
--header 'Authorization: bearer <token>'
{
"leases": [
{
"identifier": "lease-1",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"landlord_id": "landlord-id-1",
"tenants": [
{
"tenant_id": "tenant-id-1",
"tenant_external_ref": "tenant-external-ref-1"
}
],
"unit_id": "unit-id-1",
"unit_external_ref": "unit-external-ref-1",
"is_furnished": false,
"minimum_days_notice": 30,
"deposit": 1400.0,
"rent": 700.0
},
{
"identifier": "lease-2",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"landlord_id": "landlord-id-1",
"tenants": [
{
"tenant_id": "tenant-id-2",
"tenant_external_ref": "tenant-external-ref-2"
},
{
"tenant_id": "tenant-id-3",
"tenant_external_ref": "tenant-external-ref-3"
}
],
"unit_id": "unit-id-2",
"unit_external_ref": "unit-external-ref-2",
"is_furnished": true,
"minimum_days_notice": 30,
"deposit": 1600.0,
"rent": 800.0
}
]
}