Overview
Use this SDK to authenticate with Eka Care, call ABDM services, and build backend integrations in Go with minimal boilerplate.Prerequisites
- Go 1.24+ (matches the SDK’s go.mod)
- Eka Care developer account and credentials (client_id and client_secret)
Installation
Authentication and Setup
The SDK supports configuration via environment variables (recommended) or explicit options in code.Recommended: Environment variables
Set the following variables in your environment or a .env file:Alternative: Explicit configuration (not recommended for production)
Quickstart
Authenticate and call an ABDM API (login init via PHR address):Configuration reference
- EKA_CLIENT_ID: Client ID from the developer portal (required)
- EKA_CLIENT_SECRET: Client secret from the developer portal (required)
- EKA_ENVIRONMENT: production or development (required)
- Environment variables
- Explicit options via WithXxx() functions
- Built-in defaults
Available services
Once authenticated, you can access:- ABDM services:
client.ABDM.Login()
,client.ABDM.Registration()
,client.ABDM.Profile()
- More services will be added as they become available
Troubleshooting
Typical auth/config errors when callingclient.Login(ctx)
:
Examples and resources
- GitHub repository: https://github.com/eka-care/eka-sdk-go
- Examples: https://github.com/eka-care/eka-sdk-go/tree/main/examples/quickstart
- Issues & support: https://github.com/eka-care/eka-sdk-go/issues