LogoLogo
Get startedAPI reference
  • Get started
    • What is Hakuna?
    • How it works
  • Integration guides
    • Integrated checkout
    • Self-service checkout with Hakuna Redirect
    • Guided checkout with Hakuna Assist
    • Hakuna Assist for your sales app or CRM tool
    • Hakuna Redirect on the e-commerce order confirmation page
  • Sharing order events
    • Sharing order events with the Events API
    • Sharing order events via the Hakuna Shopify app
    • Sharing order events via CSV
  • Using the API
    • Authentication
    • Versioning
    • Environments
    • Responses
    • Testing
  • Resources
    • API reference
  • Help
    • Contact
Powered by GitBook
On this page
  • Getting your API keys
  • Managing your API keys
  1. Using the API

Authentication

PreviousSharing order events via CSVNextVersioning

Last updated 10 months ago

Hakuna uses API keys to authenticate all requests, and authentication is handled via Bearer Authentication.

When you make an API request, you'll need to pass either your sandbox secret key or your live secret key in the HTTP Authorization header. Which key you use depends on the you're using.

curl https://api.hellohakuna.com/<ENDPOINT> \
  -H "Authorization: Bearer <API_KEY>"

If you do not enter a valid API key in your request, you will get a .

Getting your API keys

You can view and manage your API keys for both the production and sandbox environments in the .

Get access to the Hakuna merchant console Once your merchant console account has been created, you'll get an email with a temporary password. Click the link in the email to set a new password and complete your account setup. If you have not yet received an email, please .

Please be aware that any changes made to existing API keys will take effect immediately and could cause unintended side effects.

Managing your API keys

Your API keys carry many privileges, so it is important to keep them private and secure. They should live primarily in your backend, and should never be exposed on your frontend.

Do not hardcode or share your API keys (particularly in your source version control system).

environment
401 response (unauthorized)
Hakuna merchant console
let us know