How does GigaChat API authentication work?
GIGACHAT_API is an Authorization Key, not a reusable access token. Exchange it at the OAuth endpoint with an explicit PERS, B2B or CORP scope, then cache the returned access token for its roughly 30-minute lifetime. Load the Ministry Russian Trusted Root CA and never disable TLS verification.