Gggle Get API keys

Authentication

Publishable vs secret keys

When to use each key type, and how origin restriction works.

Publishable keys (gk_live_pk_…) are safe to ship in a browser but MUST be restricted to your origins. Secret keys (gk_live_sk_…) are server-side only and never exposed.

Restricting a publishable key

Add your origins to the key’s allow-list. Requests from anywhere else are rejected at the edge.

text
Origin: https://yourapp.com  ✓
Origin: https://evil.example  ✗ 403

Updated 21 Jul 2026