Use this when the person wants to start an eviction case and has given you its facts: the ground, where the case starts, the property, the parties and their own attestations. Creates a draft case in the person’s account. Nothing is submitted. The result’s `handling` says how the case is handled; the property’s place decides. For `agent_filed`, the person finishes it in the app (facts, authorization, card) before it is submitted. Add its documents with evictions_add_case_document. Pass an `idempotencyKey` and reuse it if you repeat the call, so a retry never makes a second case. For a property manager, `landlordId` (from evictions_list_landlords) names the owner the case is for and adds its saved management agreement to the case. Do not use this to change a case that already exists (use evictions_update_case). The result is the case, with `state` and `nextAction` (who it is waiting on and for what). Next: evictions_validate_case. Needs the person’s account: sign-in or an API key.
View input schema
{
"type": "object",
"properties": {
"ground": {
"type": "string",
"enum": [
"nonpayment",
"lease_violation",
"holdover"
],
"description": "Why the case is brought: nonpayment of rent, a lease violation, or holdover (the tenant stayed after the lease ended). Cannot be changed later."
},
"entryPoint": {
"type": "string",
"enum": [
"notice",
"filing"
],
"description": "Where the case starts: `notice` (a notice to the tenant comes first), or `filing` when a notice was already served (then give `priorNotice`). Cannot be changed later."
},
"property": {
"type": "object",
"properties": {
"line1": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Street address of the rental property."
},
"unit": {
"description": "Unit or apartment number, if any.",
"type": "string",
"minLength": 1,
"maxLength": 50
},
"city": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "City."
},
"county": {
"description": "County, when known, as the US Census Bureau names it (\"Henry County\" or \"Henry\"); one the state does not have is refused.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"state": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "Two-letter state code, for example TX; DC for the District of Columbia. Test keys use the fictional state ZZ."
},
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$",
"description": "ZIP code: 5 digits, or ZIP+4 (12345-6789)."
},
"ownerOfRecord": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "The owner of the property as on the deed: a person or a company."
}
},
"required": [
"line1",
"city",
"state",
"zip",
"ownerOfRecord"
],
"description": "The rental property and its owner of record."
},
"parties": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string",
"enum": [
"plaintiff",
"defendant"
],
"description": "`plaintiff` for the owner or manager bringing the case, `defendant` for each tenant."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Full legal name of the person or company."
},
"isEntity": {
"description": "True when the party is a company rather than a person.",
"type": "boolean"
},
"phone": {
"description": "The party’s telephone number, if known. A Texas petition states the tenant’s.",
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"required": [
"role",
"name"
]
},
"description": "The plaintiff (the owner or manager) and each defendant (tenant)."
},
"lease": {
"description": "The lease, when there is one.",
"type": "object",
"properties": {
"startDate": {
"type": "string",
"description": "The day the lease began, as YYYY-MM-DD."
},
"endDate": {
"type": "string",
"description": "The day the lease ends or ended, as YYYY-MM-DD."
},
"monthlyRentCents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "The monthly rent, in US cents (150000 is $1,500.00)."
},
"noticePeriodDays": {
"description": "In Texas: the notice period, in days, the written lease sets for this notice; 3 when the lease sets none.",
"type": "integer",
"minimum": 1,
"maximum": 365
},
"monthToMonth": {
"description": "For a holdover in Texas: whether the tenancy is month to month.",
"type": "boolean"
},
"terminationNoticeDate": {
"type": "string",
"description": "For a month-to-month holdover in Texas: the day written notice ending the tenancy was given, as YYYY-MM-DD."
},
"noticeMethods": {
"description": "In Georgia: the additional ways the rental agreement says a notice must be delivered, exactly as the lease states them, or the word `none`. The notice is posted on the door and states these methods too.",
"type": "string",
"minLength": 1,
"maxLength": 500
}
}
},
"ledger": {
"description": "Rent charges and payments, for a nonpayment case.",
"maxItems": 1000,
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "The day of the charge or payment, as YYYY-MM-DD."
},
"type": {
"type": "string",
"enum": [
"charge",
"payment"
],
"description": "`charge` for rent or a fee owed, `payment` for money received."
},
"kind": {
"description": "For a charge only: what it is for. `other_fee` for any other charge; `eviction_fee`, `attorney_fee` or `court_cost` for a cost of the eviction itself, which no notice demands.",
"type": "string",
"enum": [
"rent",
"late_fee",
"utilities",
"other_fee",
"eviction_fee",
"attorney_fee",
"court_cost"
]
},
"amountCents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "The amount, in US cents (150000 is $1,500.00)."
},
"memo": {
"description": "What it was for, such as \"October rent\".",
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"required": [
"date",
"type",
"amountCents"
]
}
},
"amountOwedCents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "The total the tenant owes now, in US cents (150000 is $1,500.00)."
},
"rentOwedCents": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "The unpaid rent alone, without late fees or other charges; 0 when no rent is owed. A court filing states it as the rent due, and rent claimed is never more, in US cents (150000 is $1,500.00)."
},
"plaintiffContact": {
"description": "How the court reaches the plaintiff (owner or manager): a Texas petition states the address and telephone.",
"type": "object",
"properties": {
"address": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "The plaintiff’s mailing address, on one line."
},
"phone": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "The plaintiff’s telephone number."
},
"email": {
"description": "The plaintiff’s email address, if they want it on the filing.",
"type": "string",
"maxLength": 254,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
},
"required": [
"address",
"phone"
]
},
"violation": {
"description": "For a lease violation case.",
"type": "object",
"properties": {
"description": {
"type": "string",
"minLength": 1,
"maxLength": 5000,
"description": "What the tenant did that breaks the lease, in the person’s words."
},
"date": {
"type": "string",
"description": "The day it happened, as YYYY-MM-DD."
}
},
"required": [
"description",
"date"
]
},
"attestations": {
"type": "object",
"properties": {
"authority": {
"description": "The person owns the property or is authorized to act for the owner in this eviction.",
"type": "boolean"
},
"notRetaliatory": {
"description": "The eviction is not in response to the tenant making a complaint, reporting a problem to an authority, or using a legal right.",
"type": "boolean"
},
"notDiscriminatory": {
"description": "The eviction is not based on who the tenant is, such as their race, religion, sex, national origin, disability or family status.",
"type": "boolean"
},
"servicemember": {
"description": "Whether the tenant is on active military duty; `unknown` is an accepted answer.",
"type": "string",
"enum": [
"no",
"yes",
"unknown"
]
},
"caresCovered": {
"description": "Whether the property is covered by the federal CARES Act.",
"type": "boolean"
},
"subsidized": {
"description": "Whether the tenant lives in subsidized housing or receives rental assistance, such as a housing voucher.",
"type": "boolean"
},
"lateBeforeNoticeMonth": {
"description": "For nonpayment: whether the tenant was late or behind on rent before the month the notice was given. A Texas petition states it.",
"type": "boolean"
}
},
"description": "The person’s own statements about the case. Ask the person for each one; never fill them in yourself. On an update, send all of them again: this object replaces the one stored."
},
"priorNotice": {
"description": "The notice already served, for a case that starts at filing.",
"type": "object",
"properties": {
"servedDate": {
"type": "string",
"description": "The day the notice was served, as YYYY-MM-DD."
},
"method": {
"type": "string",
"enum": [
"personal",
"substitute",
"posting",
"certified_mail",
"first_class_mail",
"text_message",
"email"
],
"description": "How it was served: handed to the tenant, left with another adult, posted on the door, sent by certified or first-class mail, or sent by text message or email. Say how it really reached the tenant."
},
"periodDays": {
"type": "integer",
"minimum": 1,
"maximum": 365,
"description": "How many days the notice gave the tenant."
},
"type": {
"description": "Which notice it was, as written on it: a notice to vacate, a notice to pay rent or vacate, pay or quit, or cure or quit.",
"type": "string",
"enum": [
"notice_to_vacate",
"notice_to_pay_rent_or_vacate",
"pay_or_quit",
"cure_or_quit"
]
},
"sealedEnvelope": {
"description": "In Georgia: whether the notice was posted in a sealed envelope on the door of the premises, as the person states it. The filing says so; a posted notice answered false there does not pass the prior-notice check.",
"type": "boolean"
}
},
"required": [
"servedDate",
"method",
"periodDays"
]
},
"freeText": {
"description": "Anything else the attorney should know.",
"type": "string",
"maxLength": 5000
},
"landlordId": {
"description": "For a property manager: the id (lnd_...) of the landlord, the owner the case is for, from evictions_list_landlords. Its saved management agreement is added to the case as proof of authority. An archived landlord cannot be chosen, and a test-mode case cannot take one.",
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$"
},
"idempotencyKey": {
"description": "Sent as the Idempotency-Key header (printable ASCII, no spaces): a repeat of the same request with the same key returns the first answer instead of a second case. Always pass one, and reuse it if you repeat the call.",
"type": "string",
"minLength": 1,
"maxLength": 255,
"pattern": "^[\\x21-\\x7E]+$"
}
},
"required": [
"ground",
"entryPoint",
"property",
"parties",
"attestations"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}