> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://ibkrcampus.com/docs/web-api/flex-web-service/client-portal-configuration/llms.txt. # Client Portal Configuration ## Docs - [Enable and Create Access Token](https://ibkrcampus.com/docs/web-api/flex-web-service/client-portal-configuration/enable-and-create-access-token.md) - [Create a Flex Query](https://ibkrcampus.com/docs/web-api/flex-web-service/client-portal-configuration/create-a-flex-query.md) - [Including Audit Trail Fields](https://ibkrcampus.com/docs/web-api/flex-web-service/client-portal-configuration/including-audit-trail-fields.md) > **Note:** This page contains both a page directory (above) and the landing page content (below). The page directory is generated for agent use and does not appear on the landing page. > For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://ibkrcampus.com/docs/web-api/flex-web-service/client-portal-configuration/llms.txt. # Introduction Before using the Flex Web Service API to programmatically retrieve Flex Query reports, you'll need to manually obtain some values from within **Client Portal**: 1. An access token to authenticate our requests 2. One or more query IDs corresponding to the reports you'd like to fetch If you want to retrieve Flex Queries that you've already created, you'll need to log into Client Portal with the username that created them, as these Flex Query report configurations are username-specific. Once we obtain these values, however, the use of the Flex Web Service API does not involve your IB credentials. Your username will only be involved in any subsequent management of the access token or reconfiguration of the report templates. \*\*Note:\*\*these steps can only be completed by logging in to the Client Portal directly.