BrickLink Setup

Connect your BrickLink store and API credentials.

Step 1 — Register for API access

  1. Go to BrickLink's API registration page and sign in to your BrickLink store.
  2. You'll be asked to give the API a name and a description. You can call it whatever you like, for example "BSCompanion".

Step 2 — Set the IP address

To access your store from anywhere (recommended, since the app runs on your phone or tablet), enter IP Address 0.0.0.0 and IP Mask 0.0.0.0 when generating your Access Token.

If you'd rather restrict access to a single location, enter your home's public IP address instead, with IP Mask 255.255.255.255. If your public IP changes later, requests from the app will start failing with an IP address error — see Fixing an IP Address Error below for how to fix that.

Fixing an IP Address Error

"Update your bricklink.com API settings to allow: IP Address: xxx.xxx.xxx.xxx"

This error comes from a BrickLink security feature that restricts API access to specific IP addresses. To fix it, visit BrickLink's API registration page and update your API key with one of the two options below.

Unrestricted access (recommended)

Enter IP address 0.0.0.0 with mask 0.0.0.0 to allow access from anywhere. This is less secure — it lets anyone with your API credentials access your BrickLink data from anywhere, so keep your API keys confidential.

Restricted access (more secure)

Enter the specific IP address shown in the error message. This is more secure, but if you connect from a different network (e.g. home Wi-Fi vs. a phone's mobile network) you won't be able to use the app until you update the allowed IP again.

Step 3 — Copy your keys into the app

After registering, BrickLink gives you four values: Consumer Key, Consumer Secret, Token Value, and Token Secret (each 32 characters long). In Brick Seller Companion, go to Settings → BrickLink API, paste all four values in, and tap Save and Test Connection.

Security: API credentials are stored using your device's secure storage (Google's and Apple's secure storage, via the Expo SecureStore library), and all communication happens over HTTPS.

← Back to Setup Guides