License Usage
Reference for the license_usage endpoints of the Surfmeter API.
Surfmeter API – License Usage v1
The Surfmeter API lets you manage clients, users, capabilities, measurements, and organization-wide settings programmatically.
Servers
| Description | URL |
|---|---|
| https://surfmeter-server.{host}/client_admin_api/v1 | https://surfmeter-server.{host}/client_admin_api/v1 |
License Usage
GET /license_usage
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
end_time |
query | string | No | ISO-8601 timestamp restricting the report to measurements on or before this point in time. Parsed with Ruby's Time.parse so most common formats are accepted. | |
extended |
query | boolean | No | When true, returns the extended monthly breakdown including license units and per-subject distribution. When false or omitted, returns the simple monthly unique-client count. | |
registration_key_id |
query | integer | No | Restricts the extended report to clients registered with this registration key. Requires extended=true; without it the request is rejected with a 400. The key must belong to the current data owner, otherwise the request is rejected with a 404. | |
start_time |
query | string | No | ISO-8601 timestamp restricting the report to measurements on or after this point in time. Parsed with Ruby's Time.parse so most common formats are accepted. |
Response 200 OK
- application/json
{
"monthly_usage": [
{
"month": "string",
"license_units": 0,
"unique_clients": 0,
"breakdown_by_subject_count": {}
}
],
"total_units": 0,
"usage_by_registration_key": [
{
"registration_key_id": 0,
"registration_key": "string",
"comment": "string",
"total_units": 0,
"total_unique_clients": 0,
"monthly_usage": [
{
"month": "string",
"license_units": 0,
"unique_clients": 0
}
]
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
GET /license_usage/export
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
Response 200 OK
Schemas
LicenseUsageExtendedIndexResponse
| Name | Type |
|---|---|
monthly_usage |
Array<Properties: month, license_units, unique_clients, breakdown_by_subject_count> |
total_units |
integer |
usage_by_registration_key |
Array<Properties: registration_key_id, registration_key, comment, total_units, total_unique_clients, monthly_usage> |
Security schemes
<tr>
<td>ApiKeyAuth</td>
<td>apiKey</td>
<td></td>
<td>API key used on every request. Create keys in the Surfmeter Dashboard
under Keys → Surfmeter API Keys.
</tbody>
| Name | Type | Scheme | Description |
|---|