TGC

Credentials

TGC

Credentials

TGC

Credentials

Credentials

Manage your Swell Store ID and API key. These credentials connect TGC to your Swell store.

Finding your credentials

  1. Log into your Swell admin dashboard

  2. Go to Developer → API keys

  3. Your Store ID is shown at the top of the page

  4. Copy or create a Public API key

Public vs secret keys

Key type

Starts with

Use in TGC?

Public

pk_

✓ Yes

Secret

sk_

✗ No

Always use a public key. Public keys are safe for frontend code and have read-only access to your store data.

Secret keys should never be used in client-side code.

Updating credentials

To change your connected store or update your API key:

  1. Open the TGC plugin in Framer

  2. Go to the Settings tab

  3. Click Disconnect

  4. Enter new credentials

  5. Click Connect

You'll need to re-sync after changing credentials.

Multiple stores

Each Framer project connects to one Swell store. If you have multiple stores:

  • Create separate Framer projects for each store

  • Use the appropriate credentials in each project

Credential storage

Your credentials are stored:

  • In the plugin: For sync and validation

  • In your published site: Injected via custom code for runtime API calls

Public keys are safe to expose — they only allow read access to product data.

Rotating API keys

If you rotate your API key in Swell:

  1. Create a new public key in Swell

  2. Update the key in TGC (Settings → Disconnect → Reconnect)

  3. Republish your Framer site

The old key will stop working once you delete it in Swell.

Troubleshooting

Issue

Cause

Fix

"Invalid Store ID"

Typo or wrong ID

Copy directly from Swell dashboard

"Invalid API key"

Wrong key or secret key used

Use a public key (starts with pk_)

"Connection failed"

Network issue or Swell down

Check internet, try again

Live site not loading data

Credentials not injected

Republish your site