Where to find this: API key generation — Shopify admin → Apps → Yuko Loyalty → Integrations → REST API.
Reference: API Reference.
Reference: API Reference.
What you can do
The Yuko REST API exposes the same data the dashboard shows:- List and retrieve customers and their points balances, tiers, memberships and rewards.
- Redeem rewards and add or deduct points.
- List rewards, VIP tiers, earning rules, booster campaigns and the referral program.
- Read activity feeds, points transactions and referrals.
- Estimate the points a cart will earn at checkout.
When to use
- Custom storefronts (Hydrogen, headless).
- Server-side automations that need to read or write Yuko data.
- Moving points balances over from another loyalty program (customers must already exist in Yuko; they’re synced from your store automatically).
- Building admin tools that show Yuko data alongside your other systems.
Before you start
Yuko app is installed on your Shopify store — see Install Yuko on Shopify.
The Yuko Theme App Embed is enabled in your active theme — see Theme App Embed.
Your loyalty program is enabled under Loyalty Program Status at Shopify admin → Apps → Yuko Loyalty → Loyalty → Programs.
Your point labels are set in Loyalty Settings.
Setup
1
Open REST API settings
Go to Apps → Yuko Loyalty → Integrations → REST API and click Create new key.
2
Name the key
Enter a Private API Key Name (for example, Marketing Integration) so you can tell your keys apart.
3
Choose the access level
Under Select Access Level, pick one:
- Full Access Key: read and write access for every API scope.
- Read-Only Key: read-only access for every API scope.
- Custom Key: click Next, then on the Customize API Scopes screen set each scope to No Access, Read Access or Read/Write Access.
4
Create and copy the key
Click Create (or Create API Key for a custom key). The Your Private Key popup shows the key, which starts with
py_. Copy it to a password manager or secrets store.5
Authenticate requests
Send the key as a Bearer token in the
Authorization header. Details: Authentication.Managing keys
The API keys list shows each key’s name, masked token (use Show token or Copy token to see or copy the full key), status, scopes, when it was last used, and when it expires or was revoked. You can search by token name. To revoke a key, use the Actions column and confirm in the Revoke API key dialog. Any integration using the key loses access immediately, and this can’t be undone.Authentication and scopes
All requests use Bearer token authentication. Each key only works for the scopes it was given; a request outside them returns403 insufficient_scope. See Authentication and Scopes.
Pagination, errors, rate limits
- Pagination: Classic Pagination
- Errors: Errors
- Rate limits: Rate Limits
Best practices
FAQs
Do I need a separate API key per integration?
Do I need a separate API key per integration?
Strongly recommended. It limits blast radius if one is leaked.
I lost my key. Can I see it again?
I lost my key. Can I see it again?
Yes. In Integrations → REST API, use Show token or Copy token on the key in the API keys list. If you think a key has leaked, create a new key and revoke the old one.
What's the rate limit?
What's the rate limit?
See Rate Limits in the API Reference.
Can I revoke a key?
Can I revoke a key?
Yes. In Integrations → REST API, use the Actions column on the key and confirm Revoke. Revocation is immediate and can’t be undone.
Related
REST API
Read and write Yuko data programmatically.
Webhooks
Receive real-time event notifications.
Shopify Flow
Trigger Shopify Flow workflows from Yuko loyalty, VIP and referral events.
Shopify POS
Redeem points and apply loyalty discounts at the till.
Klaviyo
Sync customers, points and tier data into Klaviyo.
Omnisend
Sync loyalty data into Omnisend.
Send transactional loyalty messages via 13 supported WhatsApp Business API providers.
Retainful
Email marketing & abandoned cart recovery.
Judge.me
Award loyalty points for Judge.me reviews.
Book a Free Setup Call
Talk to our team for personalised setup help.Time: 30 minutes
Contact Support
Visit our support hub for help articles, live chat and ticket submission.
Browse the Guides
Documentation across loyalty, referrals, memberships and more.
Install Yuko
Add Yuko to your Shopify store from the Shopify App Store.