Getting started with the API
Follow our quick start guide to started right away.Calling conventions
When calling the API, the client should select a resource and HTTP method matching the expected operation result. The client then sends a request to the API and it replies with the response or returns an error. The general convention for choosing an HTTP method is:POST
results in the creation of a new resource of a given type.
GET
returns the given resource’s representation without any side effects.
PATCH
partially or fully changes the state of the given resource.
PUT
replaces a given resource or creates (upserts) a new resource if the given resource does not already exist.
DELETE
removes or hides a given resource making it inaccessible.
Responses
All responses are returned as JSON documents and will contain at least one of the top-level keys:meta
: A meta object that contains non-standard information (pagination, warnings, etc.). Including the meta key is optional.data
: Contains the actual response information (requested resource representation). The document’s “primary data”.errors
: An array of error objects.
data
and errors
will never coexist in the same response.
The primary data is either:
- a single resource object, a single resource identifier object, or null, for requests that target single resources.
- an array of resource objects, an array of resource identifier objects, or an empty array ([]), for requests that target resource collections.
Fixed field types
Countries
Countries returned by the API are conform to the ISO 3166-1 alpha-2 standard, meaning that all countries are represented by a 2-character code, e.g.DE
for Germany.