Server SDKs
Build AI agents, control calls, send messages, and more
verify_api_key
Verify an API key using constant-time comparison.
The API key string to verify.
bool — True if the key matches. Returns False if API key authentication is not enabled.
bool
True
False
1from signalwire.core.security_config import SecurityConfig2from signalwire.core.auth_handler import AuthHandler34security = SecurityConfig()5auth = AuthHandler(security)6is_valid = auth.verify_api_key("my-secret-api-key")78print(f"API key valid: {is_valid}")