Go to Integration > API, then click the Dear API tile.
Click the plus icon. Enter "Upstock" in the Name field and click Create
You'll get an Account ID and Key to use in Upstock.
In Upstock, go to Settings > Integrations > Dear and click Connect. Copy and paste the Account ID and Key fields when prompted.