---
title: "Get Commercial Client Data"
method: GET
path: "/api/auth/commercial-sessions/{session_token}"
tags: ["auth", "sessions", "commercial-sessions"]
---

# Get Commercial Client Data

`GET /api/auth/commercial-sessions/{session_token}`

Valida token de sesión comercial y obtiene datos completos del cliente

Endpoint principal para el frontend de agendamiento cuando el cliente accede al enlace.
Valida el token, registra el acceso, obtiene datos completos de HubSpot
y devuelve todos los datos del cliente (incluyendo dirección, código postal, etc.)

## Path parameters

- `session_token` string, required

## Response `200`

Successful Response

- ClientData — Datos del cliente para mostrar en el frontend
  - `name` string, nullable
  - `email` string, email, required
  - `phone` string, required
  - `appointment_id` string, required
  - `appointment_data` object, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api.md) · [All operations](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hogarsolar/hogarsolar-backend-api/revisions/d9861e46bef8/schema)
