Harel Trabelsi
08/19/2026, 11:36 AMkapa.ai
08/19/2026, 11:36 AMexpires_in value to the token endpoint. This tells the API to issue a token valid for your desired duration (e.g., 14400 seconds = 4 hours). However, this only works if the API honors the expires_in value you send in the request â not all APIs do.
For example, in YAML this would look like:
refresh_request_body:
expires_in: 14400
Note: This approach was actually removed from the Zendesk Support connector because Zendesk enforces whatever expires_in you send, which caused issues. [Zendesk fix]
Option 3: Use the Low-Code YAML directly If the Connector Builder UI is too restrictive, you can switch to editing the YAML manifest directly. The OAuthAuthenticator supports expires_in_name to point to the correct field in the response, and you can combine it with token_expiry_date to set a fixed value. [YAML Reference]
Important caveat: There is no native "refresh every X seconds regardless of API response" option in the Connector Builder UI today. The closest workaround is overriding expires_in in the refresh request body (if your API supports it) or setting a static Token Expiry Date. If neither works for your use case, you may need to use the Python CDK for more fine-grained control. đ 0 button đ 0 button âšī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.