Account ID: on the dashboard home, open the menu next to your account name and choose Copy account ID.
API token: profile icon > My Profile > API Tokens > Create Token > Create Custom Token. Permissions: Account, Cloudflare Pages, Edit. Create it and copy it.
Kept on this computer only, never in the project or the website.