Documentation Index
Fetch the complete documentation index at: https://mintlify.com/exon-reyes/integra-backend/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Observations API allows you to track workplace observations, incidents, safety concerns, and other noteworthy events. Observations can be categorized by type, priority, and status, with support for follow-up tracking and departmental routing.Core Concepts
Observation (Observación)
An observation is a recorded event, incident, or noteworthy situation that requires documentation and potentially follow-up action. Examples include:- Safety incidents or near-misses
- Quality issues
- Equipment malfunctions
- Process improvements
- Employee recognition
- Policy violations
Observation Attributes
- Folio: Unique identifier/tracking number
- Title: Brief description
- Type: Category of observation
- Priority: Urgency level (ALTA, MEDIA, BAJA)
- Status: Current state (e.g., Abierta, En Proceso, Resuelta)
- Private: Whether observation is confidential
- Requires Follow-up: Flag for tracking actions
Departmental Routing
Observations can be associated with multiple departments:- Origin Department (
departamentoGeneraId): Where the observation originated - Responsible Department (
departamentoResponsableId): Who should address it - Collaborator Department (
departamentoColaboradorId): Supporting department
Status Workflow
Observations progress through different statuses:- Abierta (Open): Newly created
- En Proceso (In Progress): Being addressed
- Resuelta (Resolved): Action completed
- Cerrada (Closed): Finalized and archived
Base URL
All observation endpoints are prefixed with:Authentication
All observation endpoints require JWT authentication. Include the Bearer token in the Authorization header:Common Response Format
All endpoints return responses in the standardResponseData wrapper format:
Privacy and Access Control
Private Observations
Observations can be marked as private (privado: true), which restricts visibility:
- Only the creator and authorized personnel can view
- Not included in general unit queries unless explicitly filtered
- Useful for sensitive incidents or HR matters
Public Observations
Public observations (privado: false) are visible to:
- All users in the same unit
- Supervisors with appropriate permissions
- Users with read access to the relevant departments
Observation Summary Structure
Next Steps
Observation Management
Query and update observations
Authentication
Learn about API authentication