Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ariellukezz/admision-web/llms.txt

Use this file to discover all available pages before exploring further.

The Admisión Web REST API exposes a set of JSON endpoints that power integrations between the university’s admission platform and external services, mobile apps, and partner systems. All endpoints are served under the /api prefix of your deployment domain and return standard JSON responses.

Base URL

https://your-domain.com/api

Authentication

The API uses Laravel Sanctum for token-based authentication. Protected endpoints require a valid Bearer token in the Authorization header. Several read-only or public-facing endpoints (such as score lookups, payment checks, and biometric uploads) are accessible without a token. The cepre middleware guards a small subset of CEPRE-specific endpoints with its own access policy.
Pass Sanctum tokens in every protected request as Authorization: Bearer {token}. Tokens are issued by POST /api/login and remain valid until explicitly revoked.

Response Format

Every response is a JSON object. Successful responses typically include an estado (or status) boolean and a datos (or data) payload. Error responses include an errors array or a mensaje string describing the failure.
{
  "estado": true,
  "datos": { ... }
}

Rate Limiting

Most endpoints have no explicit rate limit beyond Laravel’s default. The POST /api/v1/postulante-cepre-inscrito endpoint applies a 50 requests per minute throttle (throttle:50,1) to prevent abuse of the CEPRE enrollment check.

Health Check

GET /api/health verifies the availability of the database and storage subsystems and returns an HTTP 200 when healthy or 503 when degraded. No authentication is required.

Endpoint Reference

The table below lists every documented API route, its HTTP method, authentication requirement, and purpose.
MethodEndpointAuthDescription
GET/healthNoneSystem health check (database + storage)
POST/loginNoneObtain a Sanctum Bearer token
GET/get-codigo-conexion/{codigoConexion}NoneLook up a connection code
GET/userSanctumReturn the currently authenticated user object
GET/get-ingresante/{dni}/{anio}/{ciclo}SanctumGet full admitted student record
GET/get-postulante-pago/{dni}/{proceso}SanctumGet applicant record for payment verification
GET/v1/get-postulante-inscrito/{dni}SanctumList processes an applicant is enrolled in
POST/get-procesosSanctumList admission processes (paginated, with filters)
GET/get-ingresante-pago/{dni}/{anio}/{ciclo}NoneGet lightweight admitted student record by year and cycle
GET/get-postulante-biometrico/{codigo}NoneGet biometric control status by applicant code
GET/verificar-ingreso/{periodo}/{dni}NoneVerify admission status for a period
GET/biometrico/seguimiento/{periodo}/{dni}NoneBiometric tracking data for an admitted applicant
GET/get-puntaje/{dni}NoneGet applicant score record
GET/v1/resultados_simulacro/{dni}NoneGet simulacro exam results
GET/v1/get-foto-ingresante/{dni}NoneGet admitted student photo as a Base64 string
GET/v1/observados-cepre/{dni}cepreGet observed/flagged CEPRE applicant data
POST/v1/postulante-cepre-inscritoNone (throttle: 50/min)Check CEPRE enrollment status
GET/get-procesosNoneGet public admission process list (results page)
GET/get-select-procesosNoneGet active processes for dropdown/select UI
POST/get-pagos-bancoNoneGet bank payment vouchers by DNI
POST/get-pagos-banco-secuenciaNoneGet bank payment voucher by sequence number
GET/get-pago-caja/{dni}NoneGet treasury (caja) payment records by DNI
GET/get-pago-caja/{dni}/{secuencia}NoneGet a specific treasury payment by DNI and sequence
POST/cargar-imagenNoneUpload biometric image (main campus, process 9)
POST/cargar-imagen-cepreNoneUpload biometric image (CEPRE, process 10)
POST/cargar-imagen-juliNoneUpload biometric image (Juli campus, process 11)
POST/cargar-imagen-azangaroNoneUpload biometric image (Azangaro campus, process 12)
POST/helper-photosNoneBulk biometric photo upload (Face + fingerprints)
GET/get-avance-proceso-postulante/{proceso}/{dni}NoneGet applicant progress within a process
GET/carreras-previas/{dni}NoneList previously enrolled programmes for a DNI
POST/test-correoNoneTrigger test email creation
POST/actualizar-lista-reniecNoneTrigger RENIEC list update
POST/registroNoneRegister a new user account
POST/login-appNoneLog in via the legacy app login endpoint
POST/recuperar-passwordNoneRequest a password recovery link
POST/restablecer-passwordNoneReset password using a recovery token
GET/auth/googleNoneRedirect to Google OAuth consent screen
GET/auth/google/callbackNoneHandle Google OAuth callback and issue a token
POST/app/registroNoneRegister a new mobile app user
POST/app/loginNoneLog in from the mobile application
POST/app/logoutSanctumLog out from the mobile application
GET/app/meSanctumReturn the authenticated mobile user profile
GET/app/validar-dni/{dni}SanctumValidate a DNI before registration
GET/app/consultar-reniec/{dni}SanctumLook up personal data from RENIEC by DNI
POST/app/registro-datos-personalesSanctumSave applicant personal data (step 1)
POST/app/validar-correoSanctumValidate email address uniqueness
POST/app/validar-celularSanctumValidate phone number uniqueness
POST/app/registro-datos-contactoSanctumSave applicant contact data (step 2)
GET/app/ubigeo/departamentosSanctumList all departments (ubigeo)
GET/app/ubigeo/provincias/{departamento}SanctumList provinces for a department
GET/app/ubigeo/distritos/{departamento}/{provincia}SanctumList districts for a department and province
GET/app/colegios/{ubigeo}SanctumList schools for a ubigeo code
POST/app/registro-datos-colegioSanctumSave applicant school data (step 3)
GET/app/consultar-apoderado-reniec/{dni}SanctumLook up guardian data from RENIEC
POST/app/registro-datos-apoderadoSanctumSave guardian data (step 4)
GET/app/apoderados/{idPostulante}SanctumList guardians for an applicant
GET/app/consultar-datos/{dni}SanctumRetrieve all registered applicant data
GET/app/requisitos/get-by-modalidad/{id_modalidad}SanctumList required documents for an admission modality

Next Steps

  • Authentication — learn how to obtain and use Sanctum tokens.
  • Applicants — query admitted students, scores, and enrollment.
  • Processes — list active admission processes.
  • Payments — verify bank payment vouchers.
  • Biometrics — upload fingerprint and photo images.

Build docs developers (and LLMs) love