Fields & validation
Request body rules and connection projection fields.
Write fields
| Field | Create / manual | Update |
|---|---|---|
ghl_location_id | required|string|max:64 | same |
ghl_company_id | nullable|string|max:64 | same |
access_token | required|string|min:10 | nullable|string|min:10 |
is_default | nullable|boolean (connections create only) | nullable|boolean |
Custom validation messages: Location ID is required. · Access token is required. · Access token must be at least 10 characters.
Connection projection
Keys returned on list/create/update/delete/default: id, connected, ghl_location_id, location_name, ghl_company_id, is_default, token_expires_at, updated_at.
connected is true when a non-empty refresh_token or access_token is stored (evaluated server-side; tokens themselves are never returned).
Status projection
connected, ghl_location_id, ghl_company_id, token_expires_at only.