Technology Law
API Licence Agreement — SA Drafting
Programmatic-access agreements that define rate limits, versioning, deprecation policy, training-data use, and POPIA-compliant data handling for South African API providers and integrators.
Written by
Martin Kotze
Attorney, Conveyancer & Notary Public
Last reviewed:
Need this handled for you? Meet an attorney about it. R2,400 for 40 minutes. If you instruct us within 14 days, the R2,400 comes off our fee.
Book a meetingThe eight clauses that matter
API scope + use case
What endpoints the licensee may call, what data may be retrieved, what use cases are permitted, and what is expressly prohibited (resale, scraping, training AI models).
Rate limits + quotas
Per-second / per-day / per-month call ceilings and the consequences of exceeding them (throttling, surcharges, suspension).
Authentication + key security
API key issuance, rotation, revocation, and the licensee's obligation to secure keys. Liability for breach attributable to compromised keys.
Service levels + uptime
API-specific SLA, error-rate guarantees, planned-maintenance windows, status-page commitments and remedies for breach.
Data handling + POPIA
Personal information passing through the API does not by itself decide who is the operator. Work out, for each data flow, who decides the purpose and means: where the provider processes only on the licensee's instructions it is an operator and section 21 POPIA requires a written contract; where it uses the data for its own purposes it is a responsible party for that processing. Cross-border treatment under section 72 applies if data leaves SA.
IP allocation
Provider retains the underlying platform IP; licensee owns its own data and any derivative works it builds on top of API outputs (subject to defined carve-outs).
Versioning + deprecation
Provider's right to evolve the API, mandatory notice periods for breaking changes, support windows for deprecated versions.
Term + termination
Subscription model, termination for misuse, wind-down access, and key-revocation procedure on exit.
Frequently asked
What is the difference between an API licence agreement and a SaaS subscription?
A SaaS subscription grants access to a user-facing application; an API licence grants programmatic access to underlying functionality or data, typically consumed by another application or a developer's product. The two are not mutually exclusive — an API is often simply one of the ways a SaaS product is delivered, and many agreements cover both. The clauses are similar but API terms add API-specific elements: rate limits, authentication mechanics, versioning policy, and rules on redistributing or caching API responses.
Can I prohibit licensees from using my API to train AI models?
Yes — and increasingly providers do, given the commercial sensitivity of training-data access. The acceptable-use clause should expressly prohibit using API responses to train machine-learning models without separate written consent. Without an express prohibition, the implied licence to use API responses for the licensee's ordinary business may extend to training use.
How are SLA obligations different for APIs versus user-facing SaaS?
API SLAs typically specify: (i) availability of the API endpoint (95–99.9% depending on tier); (ii) maximum acceptable error rate; (iii) maximum acceptable latency at defined percentiles (e.g. p95 (95th-percentile) latency < 200ms); (iv) rate-limit fairness. Remedies are usually service credits keyed to monthly API spend or the option to escalate to a higher availability tier.
What does an API licence look like under POPIA?
If the API provider processes personal information for the licensee, on its instructions, the provider is an operator and section 21 of POPIA requires a written contract ensuring it maintains the security measures in section 19. The operator must also notify the licensee immediately of a suspected compromise (section 21(2)). We also recommend the agreement cover scope of processing, sub-processors, audit rights, and cross-border transfers (s 72) — good practice rather than clauses POPIA lists. If the provider also uses the data for its own purposes, it is a responsible party for that processing, and the agreement should say so. Many SA API providers embed these terms in a Data Processing Addendum to the master licence.
How long should the deprecation notice be for an API version?
Commercial practice ranges 6 months for minor deprecations to 12-24 months for major versions. The longer the notice, the more attractive the API is to enterprise integrators; the shorter the notice, the easier it is for the provider to evolve. Contractually-defined notice periods are increasingly demanded by enterprise licensees as a condition of integration.
What is the typical cost of bespoke API licence drafting in SA?
From R8,175 for a single-direction bilateral licence; R15,000–R20,000 for a multi-tier (free / startup / enterprise) framework where the licence forms part of a published developer-tier matrix. Add R5,000–R8,000 for a separately-drafted DPA if personal information is processed.
Get your agreement reviewed or drafted
Bring an existing document for a fixed-fee review, or have a bespoke agreement drafted for your business, personally, by a senior corporate and commercial attorney.
R2,400 for 40 minutes. If you instruct us within 14 days, the R2,400 comes off our fee.
For the businesses we act for
The Keystone Workspace
The attorney-designed platform the businesses we act for use to run their contracts, e-signatures and company secretarial work in one place.
Book a meeting about your matter
Meet an attorney online, at a time you pick. We go through your position and tell you what needs to be done and what our fixed fee for it is.
Why you can trust this: Martin Kotze has been an admitted Attorney of the High Court of South Africa, registered Conveyancer, and Notary Public since 2014, practising from Pretoria. The firm is regulated by the Legal Practice Council under firm registration 17444.
This guide is general information, not legal advice for your specific matter.