# eTIMS API Authentication: A Developer Overview (Kenya 2026)

> eTIMS API authentication overview for developers: how systems authenticate to transmit invoices, what you need from KRA, and where to get the official spec.

Canonical: https://veirahq.com/blog/etims-api-authentication

[eTIMS](https://veirahq.com/blog/what-is-etims) API authentication is the first thing a developer integrating with eTIMS has to get right, because a system must prove its identity to [KRA](https://www.kra.go.ke) before it can transmit invoices. This guide gives a conceptual overview of how authentication fits the integration and where to get the authoritative detail. The exact specification is owned by KRA, so always build against the official documentation.

eTIMS API authentication is how an integrated system proves its identity to KRA before it can transmit invoices, typically using device or account credentials issued during onboarding. The exact scheme, credentials and endpoints are defined by KRA, so build against the official eTIMS API documentation or work through a certified integrator.

- Authentication proves your system&#x27;s identity before it can transmit to eTIMS
- Credentials are tied to your registered business and control unit, issued during onboarding
- The exact scheme and endpoints are defined by KRA, not third parties
- Build against the official eTIMS API documentation or use a certified integrator
- Always test in the sandbox before going live

1. Where authentication fits
2. How to approach eTIMS authentication as a developer
3. Mistakes to avoid
4. A worked example
5. How Veira helps
6. Frequently asked questions

## Where authentication fits

When an integrated system sends invoices to eTIMS, KRA needs to know the request comes from a registered, authorised business and control unit. Authentication is that identity check: the system presents credentials, and KRA accepts or rejects the connection.

The credentials are tied to your onboarding, your business and your control unit. Because the precise scheme, fields and endpoints are defined and updated by KRA, the only reliable source is the official eTIMS API documentation or a certified integrator who builds to it.

Authentication problems in production are rarely about the code and almost always about credential lifecycle: who holds them, where they are stored, and what happens when they expire or when the person who created them leaves. A working integration that nobody can re-authenticate is one staff change away from an outage.

The arrangement most businesses end up with by accident is credentials tied to one individual’s personal account. That works until it does not, and the failure arrives at the worst moment because expiry does not wait for a quiet week. Hold them against a business account, record where they live, and know the rotation procedure before you need it urgently.

Want to see it running in your own business first?

## How to approach eTIMS authentication as a developer

1. 1Onboard the business and control unit firstAuthentication credentials come from a completed eTIMS onboarding. Make sure the business and its control unit are registered before you build.
2. 2Get the official API documentationWork from KRA&#x27;s official eTIMS API documentation for the current authentication scheme, fields and endpoints. Do not rely on second-hand or outdated descriptions.
3. 3Implement against the sandboxBuild and authenticate against the eTIMS sandbox environment first, so you can test without touching live records.
4. 4Handle credential storage securelyStore credentials securely and follow good practice for secrets, since they authorise transmitting invoices on the business&#x27;s behalf.
5. 5Validate then go liveOnce authentication and a full invoice flow work in the sandbox, move to live and monitor the first transmissions closely.
6. 6Hold credentials against the business, not a personCredentials tied to an individual leave with that individual. Use a business account and record who has access to it.
7. 7Rehearse rotation before it is urgentKnow how to re-authenticate while everything is working. Learning the procedure during an outage doubles its length.

## Mistakes to avoid

### Building from unofficial specs

Authentication details change and are owned by KRA. Building from a blog or an old copy leads to failures. Use the official documentation.

### Skipping the sandbox

Testing authentication against live is risky. Validate in the sandbox first.

### Mishandling credentials

Credentials authorise invoice transmission. Store them securely and never expose them in client code or logs.

### Ignoring onboarding

Without completed onboarding there are no valid credentials. Register the business and control unit first.

## A worked example

A developer building a POS integration started by trying to authenticate from a forum example and kept getting rejected.

Switching to KRA&#x27;s official eTIMS API documentation, completing the onboarding to obtain valid credentials, and testing against the sandbox got authentication working cleanly. Only then did they connect the live invoice flow.

Authentication is straightforward when built from the official spec against the sandbox, and frustrating when built from second-hand descriptions.

Trading without eTIMS-compliant tax invoices risks KRA penalties, blocked VAT input claims for your customers, and receipts a business buyer cannot expense.

Veira signs every sale to KRA eTIMS automatically, so each receipt is compliant the moment it prints, with no separate device to reconcile.

## How Veira helps

If you would rather not build and maintain an eTIMS integration yourself, Veira provides compliant invoicing out of the box, with the authentication, signing and transmission handled for you.

That lets a business be compliant without a developer maintaining an API connection. See how Veira works or book a demo.

## Frequently asked questions

Authentication is the step where most eTIMS integrations stall, and almost always for mundane reasons: the wrong environment, an expired credential, a device not initialised. Work through it methodically rather than by retrying. If you would rather not maintain an integration at all, [a POS that files eTIMS directly removes the question](https://veirahq.com/blog/etims-pos-integration).

For more eTIMS guides and compliance resources, [visit our free resource site](https://sites.google.com/view/etims-compliance-veira-pos/home).

## Keep reading

[See all eTIMS guides](https://veirahq.com/blog/etims)

## Veira for your business

[Browse Veira by business type](https://veirahq.com/solutions) · [Who we serve](https://veirahq.com/industries)

Veira files a compliant invoice on every sale and keeps selling when the line drops.
