Create a sandbox gift card
Creates a gift card in your sandbox, so a sandbox order can be paid for with one and gift card redemption can be exercised end to end.
Gift cards are environment-scoped: the same code is valid for a test key and unknown to a live
key. Every field is optional; the defaults issue an active 50.00 digital card expiring in a
year, with a generated SBX-… code.
The environment is always set to sandbox by Galactic Core and is never read from the request
body. Requires a secret test key (tybrite_sk_test_*).
Authorizations
API Key Authentication
Use your API key in the Authorization header:
Key Types:
Secret Keys (Server-Side Only):
- Format:
tybrite_sk_live_*(production) ortybrite_sk_test_*(sandbox) - Full read/write access to all endpoints
- ⚠️ NEVER expose in client-side code or public repositories
- Required for: write operations, authentication, payment verification, AI recommendations
Publishable Keys (Client-Safe):
- Format:
tybrite_pk_live_*(production) ortybrite_pk_test_*(sandbox) - Read-only access (GET requests only, plus POST semantic search)
- ✅ Safe for client-side JavaScript, mobile apps, and public code
- Allowed for: browsing products, search, CMS content, pricing queries
Endpoint-Specific Requirements:
- Authentication endpoints (
/v1/auth/*): Secret key required - Payment verification (
POST /v1/payments/verify): Secret key required - AI Recommendations (
POST /v1/recommendations): Secret key required - Semantic Search (
POST /v1/search): Both key types allowed (read-only operation) - All write operations: Secret key required
- All read operations: Both key types allowed
Using a publishable key for restricted operations returns 403 Forbidden.
Body
Response
Sandbox gift card created.
A gift card created in the sandbox. The code is unknown to a live key.

