Speakeasy API: The Speakeasy API allows teams to manage common operations with their APIs
The Speakeasy Platform Documentation https://speakeasyapi.dev/docs/
- validateApiKey - Validate the current api key.
Validate the current api key.
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
import { ValidateApiKeyResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/dist/sdk/models/operations";
const sdk = new Speakeasy({
security: {
apiKey: "",
},
});
sdk.speakeasy.validateApiKey().then((res: ValidateApiKeyResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
Parameter | Type | Required | Description |
---|---|---|---|
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.ValidateApiKeyResponse>