API Reference

This is a starter reference for the NextLogs ingestion API.

POST /v1/logs

Ingest a log event.

Request headers

  • Authorization: Bearer <apiKey>
  • Content-Type: application/json

Request body

{
  "message": "User signed in",
  "level": "info",
  "service": "auth",
  "tags": ["auth"]
}

Response

{
  "success": true
}

GET /v1/logs

Query logs for a project (filter by time range, level, and tags).