API REST Documentation

Integra gestia.app en tus aplicaciones

Endpoints

Autenticacion

POST/api/auth/login

Iniciar sesion

Body

{
  "email": "string",
  "password": "string"
}

Respuesta

{
  "token": "string",
  "user": "object"
}
POST/api/auth/register

Registrar nuevo usuario

Body

{
  "email": "string",
  "password": "string",
  "name": "string",
  "company": "string"
}

Ejemplo de uso

// Autenticacion
const response = await fetch('https://gestia.app/api/auth/login', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    email: 'usuario@ejemplo.com',
    password: 'contrasena'
  })
});

const { token } = await response.json();

// Usar token en siguientes peticiones
const documents = await fetch('https://gestia.app/api/documents', {
  headers: {
    'Authorization': `Bearer ${token}`
  }
});

Limites de API

  • • Starter: 100 peticiones/hora
  • • Professional: 1,000 peticiones/hora
  • • Enterprise: Sin limites