Ir al contenido

Perfil propio del conductor autenticado

GET
/drivers/me
curl --request GET \
--url https://api.dev.lade.com.mx/drivers/me \
--header 'Authorization: Bearer <token>'

Devuelve el perfil del conductor dueño del token (teamId/driverId salen de los custom attributes del JWT del pool de conductores, nunca de un path/query param — un conductor no puede pedir el perfil de otro). Si es el primer GET /drivers/me tras completar NEW_PASSWORD_REQUIRED, marca la cuenta como appAccessStatus: ACTIVE (antes INVITED).

Perfil del conductor

Media typeapplication/json
object
driver
object
id
string format: uuid
teamId
string format: uuid
name
string
phone
string
nullable
photoUrl
string
nullable
status

Estado del conductor

string
Allowed values: DISPONIBLE EN_VIAJE NO_DISPONIBLE VACACIONES BAJA
licenseNumber
string
nullable
licenseExpiry
string
nullable
curp
string
nullable <= 18 characters
rfc
string
nullable <= 13 characters
birthDate
string
nullable
medicalExpiry
string
nullable
bloodType
string
nullable
emergencyContact
string
nullable
certifications
Array<string>
salary
number
address
object
street
string
<= 300 characters
extNumber
string
<= 50 characters
intNumber
string
<= 50 characters
neighborhood
string
<= 100 characters
city
string
<= 100 characters
state
string
<= 100 characters
country
string
default: Mexico <= 100 characters
zipCode
string
<= 10 characters
createdAt
string format: date-time
username

Usuario autogenerado para login en la app de conductores (ver POST /teams/{teamId}/drivers/{driverId}/access)

string
nullable
appAccessStatus

Estado de la cuenta del conductor en el pool de Cognito de la app móvil

string
Allowed values: NONE INVITED ACTIVE DISABLED
allergies
string
nullable
Example
{
"driver": {
"id": "770e8400-e29b-41d4-a716-446655440002",
"teamId": "550e8400-e29b-41d4-a716-446655440000",
"name": "Juan Pérez",
"phone": "+528112345678",
"status": "DISPONIBLE",
"username": "jperez123",
"appAccessStatus": "ACTIVE"
}
}

No autenticado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Unauthorized",
"message": "Invalid or expired token"
}

Sin permisos

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Forbidden",
"message": "You don't have permission to access this resource"
}

Recurso no encontrado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Not found",
"message": "Resource not found"
}