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

Quick answer

An API licence agreement governs programmatic access to a software platform or data service. It differs from a SaaS subscription in that the licensee consumes functionality through code rather than a user interface, which produces distinct legal questions: rate limits and quota enforcement, API-key security and revocation, versioning and deprecation policy, training-data prohibition for AI use cases, and response-data redistribution rules. Under SA law, the underlying contract framework is ECTA section 22 (electronic formation), POPIA section 21 (operator-agreement obligations where personal information transits the API), and section 72 (cross-border transfer mechanics). Bespoke drafting from R12,000.

The eight clauses that matter

1

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).

2

Rate limits + quotas

Per-second / per-day / per-month call ceilings and the consequences of exceeding them (throttling, surcharges, suspension).

3

Authentication + key security

API key issuance, rotation, revocation, and the licensee's obligation to secure keys. Liability for breach attributable to compromised keys.

4

Service levels + uptime

API-specific SLA, error-rate guarantees, planned-maintenance windows, status-page commitments and remedies for breach.

5

Data handling + POPIA

Where personal information passes through the API, operator-agreement terms under section 21 POPIA; cross-border treatment under section 72 if data leaves SA.

6

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).

7

Versioning + deprecation

Provider's right to evolve the API, mandatory notice periods for breaking changes, support windows for deprecated versions.

8

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 clauses are similar but API licences add API-specific elements: rate limits, authentication mechanics, versioning policy, and prohibitions on re-distribution of 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 < 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 processes personal information on behalf of the licensee, the API provider is an operator and a section 21 POPIA operator agreement is mandatory. The agreement should cover scope of processing, security measures (s 19), breach notification, sub-processors, audit rights, and cross-border transfers (s 72). 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 R12,000 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.

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 F17333.

This guide is general information, not legal advice for your specific matter.