API Metering
Meter an API request
Meter an API request
post/v2/apis/requests
Request body
Example request
{
"transactionId": "123e4567-e89b-12d3-a456-426614174000",
"sourceId": "5Agqrm:c4917580-281d-48e1-a206-05e595f006ec",
"credential": "The credential used to access the API. Visible on the subscriber credentials in page in the Revenium platform.",
"sourceType": "KONG",
"method": "GET",
"resource": "https://api.example.com/resource",
"contentType": "application/json",
"remoteHost": "192.168.1.1",
"userAgent": "Mozilla/5.0",
"requestMessageSize": 1024
}Response
API request 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"
}