Get ai hosting plan and usages of a customer
GET/customers/ {customerId}/ ai-hosting/
v2
GET
ai-hosting-customer-get-usage
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/customers/string/ai-hosting?topUsageCount=123
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.aiHosting.aiHostingCustomerGetUsage({
"customerId": "string",
"queryParameters": {
"topUsageCount": 123
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\AIHosting\AiHostingCustomerGetUsage\AiHostingCustomerGetUsageRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new AiHostingCustomerGetUsageRequest(
customerId: "string"
))
->withTopUsageCount(123);
$response = $client->aiHosting()->aiHostingCustomerGetUsage($request);
var_dump($response->getBody();