ValleLabs
  1. auth
ValleLabs
  • auth
    • Login
      POST
    • Logout
      GET
    • Refresh Token
      POST
  • pei
    • component
      • Administrative Management
        • Save principles fundamentals
        • Save objectives
        • Save school government
        • Save educational costs
        • Save resource evaluation
        • Save administrative organization management evaluation
        • Update principles fundamentals
        • Update objectives
        • Update school government
        • Update educational costs
        • Update resource evaluation
        • Update administrative organization management evaluation
        • Govierno escolar fail
      • Administrative Community Management
        • Save institutional situation analysis
        • Update institutional situation analysis
      • Academic pedagogical
        • Save pedagogical strategy
        • Save curriculum plan and evaluation and promotion criteria - PEI
        • Update pedagogical strategy
        • Update curriculum plan and evaluation and promotion criteria - PEI
      • Administrative Management Academic Pedagogical
        • Save coexistence manual and teacher regulations
        • Update coexistence manual and teacher regulations
      • Community
        • Save relationship social organizations
        • Save articulation cultural expressions
        • Save institutional diagnosis reference
        • Update relationship social organizations
        • Update articulation cultural expressions
        • Update institutional diagnosis reference
      • Get PEI components
      • Get PEI data by aspect's indicator
    • secretary
      • Revision PEI with observations
      • Revision PEI without observations
    • school governing
      • Create school governing
      • Get school governing
      • Get school governing Copy
    • Get total pei
      GET
    • Download PEI
      GET
    • Get PEI definition
      GET
    • Create PEI definition
      POST
    • Update PEI definition
      PUT
    • Save PEI data with a file
      POST
    • Send PEI data to revision
      PUT
    • Get all PEI created
      GET
    • Get PEI by ID and aspect ID
      GET
    • Get PEI status of completed
      GET
    • Get PEI History
      GET
  • institution
    • Create
      POST
    • Create massive
      POST
    • Update
      PUT
    • Find
      GET
    • Find all
      GET
    • FindByMunicipality
      GET
    • FindByHeadquarter
      GET
    • FindByGagem
      GET
    • Merge institution to institution
      POST
    • Create Merge institution to institution
      POST
    • Find history files
      GET
    • Get history file - role institution
      GET
    • Download all institutions
      POST
    • Create
      GET
    • Update
      PUT
    • FindByInstitution
      GET
    • Get by institution
      GET
  • headquarter
    • Create
    • Create massive
    • Update
    • FindByInstitution
    • Find
    • Merge headquarters to institution
    • Find history files
    • FindByRoleInstitution
  • draft
    • institution
    • headquarter
    • Delete
    • FindByUser
    • Create
    • Update
  • change-history
    • FindByHeadquarter
    • FindByAspectIndicator
  • notification
    • Delete
  • user
    • Get institutions
  • indicator
    • Get totals (institutions, headquarters, aulas, students, teachers)
    • Get student-techear ratio
    • Get steam-room-ratio
    • Get totals modelsByInstitution
    • Get absense public-service by headquarter
    • Get steam-room
  • filters
    • List gagem
    • List establishment-type
    • List sector
    • List nature
    • List schedule
    • List area
    • List deparment
    • List municipality by deparment
    • List resolution-type
    • List headquarter-type
    • List state
    • List model
    • List character-due
    • List state-due
    • List specialty-due
    • List detailed-specialty
    • List grade
    • List academic-day
    • List public-service-type
    • List operator by public service
    • List municipality By Gagem
    • List role by institution
    • List zone
    • List modality
    • List labpoint
    • List state-quality
    • List environment
    • List organization
    • List financing-type
    • List document-type
    • List resource-physical-type
    • List resource-technological-type
    • List cultural-activity-type
    • List session-act-type
    • List organization-community-type
    • List model-pedagogical-type
    • List plan-type
    • List area-teacher
    • List project-type
    • List profile-type
    • List process-type
    • List area-knowledge
    • List curriculum-structure-type
    • List investigation-product-type
    • List tools
    • List service-type
    • List initiative-type
    • List curricular-levels
    • List population-group
    • List entrepreneurship-type
    • List area-type
    • List session-acts
  • file
    • Get url file
  1. auth

Login

POST
/auth/login
Este endpoint permite a los usuarios iniciar sesión en el sistema proporcionando los detalles de la aplicación y un token.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
  "app": "SIGP",
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MjYwNSwibmFtZSI6IlNlY3JldGFyXHUwMGVkYSBFZHVjYWNpXHUwMGYzbiIsImVtYWlsIjoic2VkdmFsbGVAZ21haWwuY29tIiwicm9sZXMiOnsic2VjcmV0YXJ5IjpbImluc3BlY2Npb24iXX0sImluc3RpdHV0aW9ucyI6WzYxMTIsNjExMyw2MTE0LDYxMTUsNjExNiw2MTE3L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VtM43CClMxkuHXiXfmUV3CL3-4ZyMUcQg"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://hvi-api.sigpruta.co/auth/login' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "app": "SIGP",
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MjYwNSwibmFtZSI6IlNlY3JldGFyXHUwMGVkYSBFZHVjYWNpXHUwMGYzbiIsImVtYWlsIjoic2VkdmFsbGVAZ21haWwuY29tIiwicm9sZXMiOnsic2VjcmV0YXJ5IjpbImluc3BlY2Npb24iXX0sImluc3RpdHV0aW9ucyI6WzYxMTIsNjExMyw2MTE0LDYxMTUsNjExNiw2MTE3LDYxMTgsNjExOSw2MTg0LDYxODUsNjE4Niw2NzY4LDY3NjksNjc3MCw2NzcxLDEwNDMwNCw1NjU1LDU2NTYsNTY1Nyw2MDgyLDYwODMsNjA4NCw2MDg2LDYwODcsNjAwODksNjE5OCw2MTk5LDYyMDAsNjIwMSw2MjAyLDYzMDAsNjMwOCw2MzI1LDYzMjYsNjMyNyw2MzI4LDYzMjksMTIzNDU2LDY0NTUsNjQ1Niw2NDU3LDEwNDI4NCw1NTE5LDU1MjAsNTUyMSw1NTIyLDU1MjMsNTUyNCw1OTQzLDU5NDQsNTk0NSw1OTQ2LDY0NjEsNjQ2Miw2NDYzLDY0NjQsNjQ2NSw2NDY2LDU1MzQsNTUzNSw1NTM2LDU1MzcsNTUzOCw1NjI4LDU2MjksNTYzMCw1NjU5LDU2NjAsNTcyOCw1ODU0LDU4NTUsNTkyNSw1OTI2LDU5MjcsNTkyOCw1NTM5LDU1NDAsNTU0MSw1NTQyLDU1NDMsNTY0NSw1NjQ2LDU2NDcsNTY0OCw1NjQ5LDU2NTAsMTA1NjQ1LDU5MzMsNTkzNCw1OTM1LDU5MzYsNTkzNyw1OTM5LDEwNTQ1Niw1NjMxLDU2MzIsNTYzMyw1NjM0LDU2MzUsNTYzNiw1NjM4LDU2NDAsNTY0MSw2NzcyLDY3NzMsNjc3NCw2Nzc1LDY3NzcsNTUxNSw1NTUxLDY3NzgsNjc3OSw1NTE2LDU1MTcsNTUxOCw1NjQyLDU2NDMsNTY0NCw1NjUzLDU2NTQsNTgzMiw1ODMzLDU4MzQsNTgzNSw1ODM2LDU5MTcsNTkxOCw1OTE5LDU5MjAsNTkyMyw1OTI0LDYzOCw1OTk5LDYyMTksMTA1MTI0LDU1NDQsNTU0NSw1NTQ2LDU1NDcsNTU0OCw1ODUyLDU4NTMsNTg1OSw1ODYwLDU5MjEsNTkyMiw1OTEzLDU5MTQsNjE5Miw2MTk0LDYxOTUsNjE5Nyw2MjIwLDU2NTEsNTY1Ml19.Dz5WSMczyWVtM43CClMxkuHXiXfmUV3CL3-4ZyMUcQg"
}'

Responses

🟢201Created
application/json
Body

Examples
{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJlZjU4MDBkZi02YTQ0LTQ1YTctOGJhMC0xMjBhOTRmZDlkZTgiLCJlbWFpbCI6ImxpbmFBc3ByaWxsYUBnbWFpbC5jb20iLCJyb2xlIjoic2VjcmV0YXJ5Iiwic3ViUm9sZSI6Imluc3BlY2Npb24iLCJpYXQiOjE3MjIwMTEyMTYsImV4cCI6MTcyMjAxMzAxNn0.fHRrAJcfgAMpkfCGMvsBNG2toF1GywaLm_Jkqnp6tIU",
    "refreshToken": "19350ee6-236f-4b4c-bb2b-14e2b05c093c",
    "userId": "ef5800df-6a44-45a7-8ba0-120a94fd9de8",
    "subRole": "inspeccion",
    "permissions": {
        "hvi": {
            "access": true,
            "submodules": [
                {
                    "name": "institution_headquarter_management",
                    "access": true
                }
            ]
        }
    },
    "subroles": [
        {
            "id": "7f663365-1fc8-11ef-a561-505a65c22ce2",
            "module": "hvi",
            "submodule": "institution_headquarter_management",
            "action": "update_headquarter"
        },
        {
            "id": "7f663365-1fc8-11ef-a561-505a65c22ce2",
            "module": "hvi",
            "submodule": "institution_headquarter_management",
            "action": "create_institution"
        },
        {
            "id": "7f663365-1fc8-11ef-a561-505a65c22ce2",
            "module": "hvi",
            "submodule": "institution_headquarter_management",
            "action": "create_headquarter"
        },
        {
            "id": "7f663365-1fc8-11ef-a561-505a65c22ce2",
            "module": "hvi",
            "submodule": "institution_headquarter_management",
            "action": "update_institution"
        },
        {
            "id": "7f663365-1fc8-11ef-a561-505a65c22ce2",
            "module": "hvi",
            "submodule": "institution_headquarter_management",
            "action": "view_institution"
        },
        {
            "id": "7f663365-1fc8-11ef-a561-505a65c22ce2",
            "module": "hvi",
            "submodule": "institution_headquarter_management",
            "action": "view_headquarter"
        },
        {
            "id": "7f663365-1fc8-11ef-a561-505a65c22ce2",
            "module": "hvi",
            "submodule": "institution_headquarter_management",
            "action": "merge_headquarter"
        }
    ]
}
🟠401ValidationToken
🟠401Active session
🟠403Rol no encontrado
Modified at 2025-11-10 14:38:11
Next
Logout
Built with