API Metering
Meter an API response
Meter an API response
post/v2/apis/responses
Request body
Example request
{
"transactionId": "123e4567-e89b-12d3-a456-426614174000",
"totalDuration": 1500,
"responseCode": 200,
"responseMessageSize": 1024,
"contentType": "application/json",
"backendLatency": 1200,
"gatewayLatency": 50
}Response
API response successfully metered
Example response
{
"object": "metering",
"label": "Metering Response",
"created": "2025-03-02T15:04:05Z",
"updated": "2025-03-02T15:04:06Z",
"id": "abc123",
"signature": "signature123"
}