Skip to main content

Summary API

The Summary API provides high-level metrics and statistics for your Metlo dashboard.

Get Dashboard Summary

Retrieve overall statistics including endpoints, alerts, and traffic metrics.
cURL
curl 'https://<your-metlo-instance>/api/v1/summary' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Response

numEndpoints
number
Total number of discovered API endpoints
numHighRiskEndpoints
number
Number of endpoints with high risk scores
numAlerts
number
Total number of active alerts
numPIIDataFields
number
Total number of detected PII data fields
numAttacks
number
Total number of detected attacks
topAlertTypes
object[]
Most common alert types

Example Response

{
  "ok": true,
  "data": {
    "numEndpoints": 247,
    "numHighRiskEndpoints": 12,
    "numAlerts": 34,
    "numPIIDataFields": 89,
    "numAttacks": 5,
    "topAlertTypes": [
      { "type": "PII_DATA_DETECTED", "count": 15 },
      { "type": "UNAUTHENTICATED_ENDPOINT", "count": 10 },
      { "type": "HIGH_ERROR_RATE", "count": 9 }
    ]
  }
}

Get Endpoint Tracking Status

Check whether specific endpoints are being tracked by Metlo.
cURL
curl 'https://<your-metlo-instance>/api/v1/summary/endpoint-tracked' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Get Sensitive Data Summary

Retrieve a summary of sensitive data findings across all endpoints.
cURL
curl 'https://<your-metlo-instance>/api/v1/sensitive-data-summary' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Response

Returns aggregate statistics about sensitive data detected in your APIs, organized by data class and severity.

Instance Settings API

Manage global configuration settings for your Metlo instance.

Get Instance Settings

Retrieve current instance configuration.
cURL
curl 'https://<your-metlo-instance>/api/v1/instance-settings' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Response

uuid
string
Unique instance identifier
blockingEnabled
boolean
Whether attack blocking is enabled globally
skippedResolved
boolean
Whether to skip already resolved issues during scans
updateEmail
string
Email address for update notifications
metloAPIKey
string
API key for Metlo cloud services (if using enterprise features)

Example Response

{
  "ok": true,
  "data": {
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "blockingEnabled": true,
    "skippedResolved": false,
    "updateEmail": "[email protected]",
    "metloAPIKey": null
  }
}

Update Instance Settings

Modify instance configuration settings.
cURL
curl -X PUT 'https://<your-metlo-instance>/api/v1/instance-settings' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "blockingEnabled": true,
    "skippedResolved": false,
    "updateEmail": "[email protected]"
  }'

Request Body

blockingEnabled
boolean
Enable or disable attack blocking globally
skippedResolved
boolean
Whether to skip resolved issues in scans
updateEmail
string
Email for update notifications
metloAPIKey
string
Metlo cloud services API key (enterprise)
Disabling blockingEnabled will turn off attack blocking across your entire infrastructure. Use with caution.

OpenAPI Spec Management

Metlo provides endpoints to manage OpenAPI specifications for your APIs.

Upload OpenAPI Spec

Upload or update an OpenAPI specification.
cURL
curl -X POST 'https://<your-metlo-instance>/api/v1/spec' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "users-api-v1",
    "spec": "{ ... OpenAPI spec JSON ... }",
    "hosts": ["api.example.com"]
  }'

List OpenAPI Specs

Get all uploaded OpenAPI specifications.
cURL
curl 'https://<your-metlo-instance>/api/v1/specs' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Get OpenAPI Spec

Retrieve a specific OpenAPI specification by name.
cURL
curl 'https://<your-metlo-instance>/api/v1/spec/users-api-v1' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Delete OpenAPI Spec

Remove an OpenAPI specification.
cURL
curl -X DELETE 'https://<your-metlo-instance>/api/v1/spec/users-api-v1' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Download Specs as ZIP

Download all OpenAPI specifications as a ZIP archive.
cURL
curl 'https://<your-metlo-instance>/api/v1/specs/zip' \
  -H 'Authorization: metlo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
  -o specs.zip
OpenAPI specifications help Metlo validate actual API behavior against documented contracts and detect drift.

Next Steps

Endpoints API

Manage discovered endpoints

Alerts API

Configure and manage alerts

Build docs developers (and LLMs) love