Logo
Search
Docs

Fields & validation

Request body rules and connection projection fields.

Write fields

FieldCreate / manualUpdate
ghl_location_idrequired|string|max:64same
ghl_company_idnullable|string|max:64same
access_tokenrequired|string|min:10nullable|string|min:10
is_defaultnullable|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.