Published 20th May 2022
The Kamma API is an HTTP RESTful web API; it offers self-descriptive URLs, speaks JSON for both requests and responses and uses standard HTTP response codes and verbs.
The Kamma API uses API keys to authenticate requests; our support team will enable your account for API access and share your API key with you.
Your API key enables access to the Kamma API and to your information which is held securely within the Kamma platform; be sure to keep your API key secure. Do not share your API key where it can be publicly accessed, such as GitHub or GitLab public repositories or client-side code that can be viewed in a browser.
Authentication to the Kamma API is performed by an HTTP header provided as part of each request; you provide your API key as the value for the X-SSO-API-Key
header.
All API requests should be made over HTTPS. Calls made over plain or vanilla HTTP will return an HTTP 308
permanent redirect status with the HTTPS equivalent URL that should be followed as the Location
header.
We use standard HTTP response codes to indicate the success or the failure of an API request.
2xx
response codes are success codes3xx
response codes are redirection codes and usually show that an HTTP request was made and the request should be repeated as an HTTPS request4xx
response codes are errors with the request, meaning something was wrong with the request and the API could not act on it5xx
response codes are errors with the Kamma API’s servers and are extremely rareHTTP response codes also allow for 1xx
codes and are informational codes that the Kamma API does not use.
In addition to the HTTP response codes, the API also returns a set of properties that describe an error in more detail and may allow you to respond to and correct the error programmatically.
status
– the HTTP response codemessage
– the human-readable description of the HTTP response codecode
– a Kamma API error code that qualifies the HTTP response codedescription
– a human-readable description of the Kamma API error coderesponse_id
– a unique identifier assigned to the API request; this identifier can be used by the Kamma support team to help diagnose and resolve problemsThis is an example of an error code returned as a result of the API receiving a bad request:
{
"status": 400,
"message": "Bad Request",
"code": 101000,
"description": "The identity token was invalid, must be in the form of geoplace:uprn:1234, kamma:address:123+Street or kamma:property:ea357bde17331f4217bd7898c50175fa. Please refer to docs for more information.",
"response_id": "1234-1234-1234-1234-1234"
}
When a breaking or backwards-incompatible change is made to the Kamma API, a new version is released. This guide describes Version 2 of the Kamma API which is the latest version.
Version 1 of the Kamma API is officially sunset; this means that we will continue to provide this version of the API but no new functionality or changes will be made, unless such changes are required to preserve the stability and security of the Kamma platform. No new API credentials will be offered to our customers for this version of the API.
We plan to deprecate and cease to provide access to Version 1 of the API at a future date and will continue to provide the service for a period of at least 9 months prior to the deprecation date.
The Version 1 API’s user guide and detailed supporting API documentation will continue to be made available until Version 1 is deprecated.
A property is identified in the API as a machine tag, sometimes called a triple tag. This takes the form namespace:predicate:value
:
A Kamma property identifier can be one of the following three machine tag variants:
geoplace:uprn:100011623123
kamma:property:ea357bde17331f4217bd7898c50175fa
kamma:address:thanet+house+231+strand+london+WC2R+1DA
Detailed API documentation for Version 2 of the API is available as part of the API at https://kamma.api.kammadata.com/docs.
At a high level, the API provides methods that allow you to perform the following tasks
Book a demo or get in touch
If you'd like to see the power of the Kamma platform in action, you can book a demo with us by simply clicking on the Book a Demo link at the top of the page.
Otherwise, email us at hello@kammadata.com or let us know your contact details using this form and we will get back to you as soon as we can.
Sending message...
Sorry, but something went wrong. Please let us know and we'll do our best to fix it.
Hi
Thanks for sending us your message. You'll be hearing from us shortly.