Database API
  • Database API
  • Endpoints
  • Authentication
  • Get the database ID
  • Data format
RESOURCES
  • Backups
  • Database Type Versions
  • Databases
  • Logs
    • Get database logs
  • Maintenance
  • Metrics
  • Instance Status
  • Users
LINKS
  • Addon Provider API
  • One-click Deployment API
  • API V1
  • scalingo.json Schema
  • Main site
  • Dashboard

Logs

Get database logs

GET https://$DB_API_URL/dapi/databases/[:database_id]/logs

field type description
url string Authenticated logs URL for this database

The request will generate an URL you can use to access the logs of your database.

How to use this endpoint: more information here

Example request

curl -H "Accent: application/json" \
  -H "Authorization: Bearer $DB_BEARER_TOKEN" \
  -X GET https://$DB_API_URL/api/my-awesome-db-1234/metrics

Returns 200 OK

{
  "url": "https://logs.scalingo.com/apps/59e6641ab8c6f11f89d0b950/logs?token=authentication_token"
}