Speakeasy API: The Speakeasy API allows teams to manage common operations with their APIs
The Speakeasy Platform Documentation
- validateApiKey - Validate the current api key.
Validate the current api key.
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
(async() => {
const sdk = new Speakeasy({
security: {
apiKey: "",
},
});
const res = await sdk.validateApiKey();
if (res.statusCode == 200) {
// handle response
}
})();
Parameter | Type | Required | Description |
---|---|---|---|
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.ValidateApiKeyResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 400-600 | / |