Skip to main content

Getting started

The CRM Africa API is a JSON REST API. This page covers the conventions shared by every endpoint. For credentials, see Authentication.

Base URL

On the multitenant (SaaS) edition this is your own account domain — see Authentication.

Making a request

Send the API key as a Bearer token. A minimal first request:

Response envelope

Successful responses use a consistent envelope:
  • data — the resource object, or an array of objects for list endpoints.
  • meta — pagination info, present on list endpoints only.
  • message — a human-readable summary.

Errors

Errors return the matching HTTP status with a JSON body:
errors is present only for validation failures.

Identifiers

Resources are addressed by their unique id (an opaque string), not a sequential number. The unique id is the id field on each object and is what you put in URLs, e.g. /api/projects/{id}.

Pagination, filtering & sorting (list endpoints)

Resource-specific filters are documented on each resource’s page.

Sub-resource actions

Ancillary actions on a resource live under its id and carry only the action’s data in the body:
The id is always in the path; the body never repeats it.