Usage
Get usage
Mock APIs
Teams
Organisations
Data sources
Database connections
Usage
Access control
Stub Mappings
- GETGet all stub mappings
- POSTCreate a new stub mapping
- DELDelete all stub mappings
- POSTReset stub mappings
- POSTPersist stub mappings
- POSTImport stub mappings
- GETGet stub mapping by ID
- PUTUpdate a stub mapping
- DELDelete a stub mapping
- POSTFind stub mappings matching metadata
- POSTDelete stub mappings matching metadata
Requests
OpenAPI
Imports
Usage
Get usage
Get product usage for the current billing period for a subscription
GET
/
v1
/
subscriptions
/
{subscriptionId}
/
usage
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/subscriptions/{subscriptionId}/usage \
--header 'Authorization: Basic <encoded-value>'
{
"usage": {
"id": "kl1g9",
"currentPeriodStart": "2024-08-01T13:50:48.988681Z",
"currentPeriodEnd": "2025-08-01T13:50:48.988681Z",
"stubCalledCount": 22309,
"exportCalledCount": 30,
"organisationMemberCount": 15,
"invitationCount": 0,
"seatLimit": null,
"totalMockApiCount": 158,
"totalDataSourceCount": 9,
"totalDatabaseConnectionCount": 2,
"ownMockApiCount": 0,
"teamMockApiCount": 0,
"collaboratorCount": 0,
"totalSeatCount": 15,
"teamMemberCount": 15,
"totalTeamCount": 15
}
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
Response
200
application/json
200 response
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/subscriptions/{subscriptionId}/usage \
--header 'Authorization: Basic <encoded-value>'
{
"usage": {
"id": "kl1g9",
"currentPeriodStart": "2024-08-01T13:50:48.988681Z",
"currentPeriodEnd": "2025-08-01T13:50:48.988681Z",
"stubCalledCount": 22309,
"exportCalledCount": 30,
"organisationMemberCount": 15,
"invitationCount": 0,
"seatLimit": null,
"totalMockApiCount": 158,
"totalDataSourceCount": 9,
"totalDatabaseConnectionCount": 2,
"ownMockApiCount": 0,
"teamMockApiCount": 0,
"collaboratorCount": 0,
"totalSeatCount": 15,
"teamMemberCount": 15,
"totalTeamCount": 15
}
}