mycover.ai
  • Home
  • Distributor
  • πŸš€Getting Started
    • Quickstart
    • Environments
    • Authentication
    • Testing
    • Errors
    • Go Live Checklist
    • FAQs
  • πŸ”ŒLibraries & SDKs
    • Javascript
    • Vue 2
    • Vue 3
    • React
    • Flutter
    • Android
    • React Native
    • iOS
  • πŸ“¦api reference
    • Products
      • 🚘Auto
        • Aiico
        • Leadway
        • MyCoverGenius
        • Sovereign Trust
        • Coronation
        • Tangerine
        • Sanlam
      • β™₯️Health
        • Hygeia
          • Hyprime Insurance
          • Hybasic Insurance
        • Bastion
          • Bastion Health
          • MediSure
        • Malaria Cover
      • πŸ’žPersonal Accident Cover
        • Aiico
        • Leadway
        • Sanlam
      • 🏠Content (Home/Office)
        • Aiico
        • Coronation
        • Sanlam
      • ✈️Travel
        • Allianz
        • Aiico
      • πŸ’΅Life Insurance
        • Credit Life
        • SME Flex
        • Flex Life
      • 🚚Goods In Transit
        • Goods In Transit (GIT)
        • Goods In Transit (GIT) On-demand
      • πŸ’»Gadget
        • Sovereign Trust Insurance
        • Coronation
        • Tangerine
      • πŸ›³οΈMarine Insurance ✨
        • MyCoverGenius Import Marine Cover
        • Marine Cover
    • Policies
    • Claims
      • Credit Life
    • Wallet
    • Transactions
    • Customers
    • Auxiliary
      • Products
        • Bulk Purchase
  • 🧳Services
    • Webhooks
      • Validation
      • Purchase Webhook
      • Renewal Webhook
    • Messaging
Powered by GitBook
On this page
  • Generating Secret API keys
  • Authorization method

Was this helpful?

  1. Getting Started

Authentication

PreviousEnvironmentsNextTesting

Last updated 1 year ago

Was this helpful?

We make use of API keys to authenticate requests to the API. Without an API key, any request made to the API will return a .

Generating Secret API keys

From your distributor dashboard, you can generate a secret API key for the environment you’re in. To get your API secret key, go to Settings > API Key & Webhooks.

We ask that you keep your API Keys safe as they are unique to you. If you think that the keys might have been compromised, generate a new set of keys from your dashboard.

Authorization method

To authenticate an API request, using HTTPS and the format below, include your secret key in the Authorization header.

Auth header
Authorization: Bearer {SECRET_KEY}

For advanced security measures, we recommend using the public key rather than the secret key in public-facing scenarios, such as developing a frontend SDK based on ours or using any of the SDKs. The secret key should be used exclusively for interactions with the APIs from a secure backend environment.

πŸš€
MyCover.ai
MyCover.ai
MyCover.ai
401 error
Get secret API key