Errors & Request IDs
Every Partner API error has the same shape, on every endpoint:
{
"status_code": 422,
"error": {
"code": "validation_failed",
"message": "Prospect invalid.",
"details": [
{
"field": "prospect.unit.external_system_id",
"code": "already_linked",
"message": "names a unit already linked to another id"
}
]
},
"request_id": "6f1c2b9e-7d4a-4c1e-9a55-0b8f3d2e1a77"
}
Branch on the codes, never on the messages. Codes are stable. Messages are written for a person reading a log and may be reworded.
error
| Field | Meaning |
|---|---|
code | What kind of refusal this is, from the status (see below) |
message | A one-line summary for a person |
details | One entry per refused field. Always present; empty when no field is to blame |
error.code follows the HTTP status:
| Status | code | Meaning |
|---|---|---|
400 | bad_request | The body is not valid JSON, a required wrapper key such as prospect or endpoint is missing, or a filter on the provider deliveries list is not usable |
401 | unauthorized | The gateway's call to Greenlight failed its internal signature check. Nothing in your request causes this: retry, and report the request_id if it persists. A missing or invalid token is refused earlier, by the gateway, with a different body: see Token failures |
403 | forbidden | Authenticated, but not granted access to this owner or provider |
404 | not_found | The owner or record does not exist, or exists under an owner you are not granted |
409 | conflict | The request conflicts with the record's state, such as retrying a delivery that has not failed, or canceling a prospect the renter has paid for |
422 | validation_failed | One or more fields were refused. Every 422 has at least one detail |
502, 503, 504 | upstream_unavailable | The API gateway could not reach Greenlight, or got no usable answer. Retry with backoff; request_id is null because the call never reached Greenlight |
A path that matches no endpoint also returns 404, but not in this shape: check the path and method against the API reference.
details
Each detail names one refused field:
| Field | Meaning |
|---|---|
field | The dotted path to the value in your request body, such as prospect.unit.external_system_id or residents.2.email. List items are indexed from 0. null when the record as a whole is refused, or when the problem is in data Greenlight derives rather than a value you sent |
code | Why the field was refused, in snake_case |
message | Reads after the field name: "can't be blank", not "Email can't be blank" |
On the collection endpoints (properties, units, bank accounts) a batch still answers 200, and each failed item carries the same error object. Its field paths are relative to the item:
{
"status_code": 200,
"results": [
{ "external_system_id": "acme-prop-123", "action": "created" },
{
"external_system_id": "acme-prop-125",
"action": "failed",
"error": {
"code": "validation_failed",
"message": "Property invalid.",
"details": [
{
"field": "building_name",
"code": "ambiguous",
"message": "several existing buildings match and nothing separates them"
}
]
}
}
],
"meta": { "created": 1, "updated": 0, "failed": 1 },
"request_id": "6f1c2b9e-7d4a-4c1e-9a55-0b8f3d2e1a77"
}
Field codes
Common validation codes appear on any endpoint: blank, required, taken, inclusion, invalid, too_long, wrong_length, not_a_number, not_an_integer, greater_than, less_than_or_equal_to, not_a_boolean, not_a_string.
Codes specific to the roster, prospect, move-out and policy change request endpoints:
| Code | Endpoint | Meaning |
|---|---|---|
already_linked | properties, units, bank accounts, prospects | The record this item matched already carries a different external_system_id, or the id already names another record |
ambiguous | properties, units | Several existing records match and nothing in the item separates them |
not_a_date | move-outs, move-out payment attestations, policy change requests | The value is not a real day written as YYYY-MM-DD. Other date forms, such as 11/02/2026, 20261102 or 2026-W45-1, are refused. |
out_of_grant | properties, units, prospects | The building is not one you have been granted |
unknown_building | units, prospects | property_external_id names no building you have registered |
wrong_building | units | The unit is linked to a different building than property_external_id names |
property_locked | units | The unit's building cannot be changed |
single_unit_property | units | A second unit was sent for a single_family or garden_community building |
not_a_building, not_a_unit | properties, units | The external_system_id already names a record of the other kind |
not_derivable | units | No name was sent and none could be derived from the address |
unknown_property_type, unknown_pms, unknown_bank_account | properties | The value is not one Greenlight recognizes |
unknown_coverage_type, not_positive | properties, units | default_coverage is malformed |
pms_authority_planned | properties, units | Coverage cannot be set while the building is moving to PMS-sourced data |
contended | properties, units, prospect cancel and reinstate | Another write held one of the records. Resend the item, or the request |
moved | prospects | On canceled: it is no longer a field. Use the prospect's /cancel and /reinstate endpoints |
names_another_record | bank accounts | The external_system_id already names a property or unit |
locked_by_claims | bank accounts | Routing and account numbers cannot change once claims are attached; register a new account |
default_required | bank accounts | default cannot be cleared; send default: true on the account that should hold it |
not_whole_cents, not_a_list_of_origins, not_https_origins | property owners | max_coverage_amount_cents is not whole cents, embedded_frame_ancestors is not an array of strings, or one of its entries is not a bare https origin |
no_roster_provider | prospects | The source does not support property and unit objects |
conflicts_with_roster | prospects | A pms_* field was sent alongside property or unit |
phone_invalid | prospects | phone is not 10 digits after normalization |
application_submitted | prospects | The renter has paid. On an update, the field can't change. On a 409 from cancel or reinstate, with field: null, the prospect can't be canceled or reinstated |
required_when_has_ssn, must_be_blank_when_no_ssn | prospects | On social_security_number: it is missing while has_ssn is true, or sent while has_ssn is false |
reserved | move-outs | external_id starts with yardi:, realpage: or pm:, which Greenlight reserves for move-outs it opens from Yardi or RealPage, or that a property manager opens in Greenlight |
not_resendable | move-out consent | The consent request cannot be resent from its current state |
too_large, unsupported_type, not_base64 | branding | The logo is over 1 MB, not a png, jpeg or svg, or not base64 encoded |
unsafe_svg | branding | The SVG logo has no viewBox, or contains a script, an event handler, a <foreignObject>, animation, declarations inside a DOCTYPE, a backslash in CSS, or a reference outside the file |
unreadable_svg | branding | The SVG logo passed those checks but couldn't be rendered |
not_an_object | branding | The body is not a JSON object |
lightness_out_of_range, low_page_contrast, low_text_contrast | branding | brand_color is too dark or too light, does not contrast enough with the white page, or brand_text_color does not contrast enough with brand_color |
own_host | webhook endpoints | destination_url is on a Greenlight host |
internal_host | webhook endpoint ping | destination_url resolves to a private, loopback or link-local address |
not_a_timestamp | provider webhook deliveries | created_after or created_before is not an ISO 8601 timestamp |
reset_failed | test reset | The staging reset could not complete; field is null and message says why |
On a 400 from the provider deliveries list, /partners/providers/{provider}/webhooks/deliveries, field names the query parameter that was refused, such as status: not_a_string when it was sent as a list or object (status[]=failed), inclusion when it is not an accepted value, and not_a_timestamp as above.
A body whose shape is wrong as a whole (not an array, or over the item limit) is a 422 with one detail whose field is null: not_an_array or too_many_items. Bank accounts also refuse an empty array, with blank.
Request IDs
Every response body, success or error, carries request_id: the id Greenlight logged the request under. It is also returned as the X-Request-Id response header, which is the only place to find it on a 204 with no body. Quote it when you report a problem. It is how Greenlight finds the exact call.
To tie a call to your own records, send X-Partner-Request-Id with any value up to 128 characters, such as your lease or job id. Greenlight records it alongside its own request id and echoes it back in the X-Partner-Request-Id response header. A longer value is cut to its first 128 characters, and the shortened value is what is recorded and echoed. It never replaces request_id, and nothing is echoed when you do not send one.
POST /partners/{owner_slug}/prospects
Authorization: Bearer <token>
X-Partner-Request-Id: lease-134-a2
Token failures
A missing, expired, or under-scoped token is refused by the API gateway before it reaches Greenlight, with a different body:
{ "message": "Unauthorized" }
The status is 401 for a missing or invalid token, and 403 for a token that lacks the route's scope. These responses carry no request_id. See Authentication & Environments.