Perfil propio del conductor autenticado
GET
/drivers/me
const url = 'https://api.dev.lade.com.mx/drivers/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Sección titulada «Authorizations»Responses
Sección titulada «Responses»Perfil del conductor
Media typeapplication/json
object
driver
object
id
string format: uuid
teamId
string format: uuid
name
string
phone
string
photoUrl
string
status
Estado del conductor
string
licenseNumber
string
licenseExpiry
string
curp
string
rfc
string
birthDate
string
medicalExpiry
string
bloodType
string
emergencyContact
string
certifications
Array<string>
salary
number
address
object
street
string
extNumber
string
intNumber
string
neighborhood
string
city
string
state
string
country
string
zipCode
string
createdAt
string format: date-time
username
Usuario autogenerado para login en la app de conductores (ver POST /teams/{teamId}/drivers/{driverId}/access)
string
appAccessStatus
Estado de la cuenta del conductor en el pool de Cognito de la app móvil
string
allergies
string
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"}