Skip to content

Developers and integration

What is an API?

Definition

API: An interface that lets two pieces of software talk by agreed rules, for example your order system asking a messaging service to send a message.

Also known as: application programming interface

API stands for application programming interface. It sets the rules by which one piece of software asks another to do something: which address to send a request to and in what format, what comes back, and how an error is reported.

The most common kind today is a REST API that works over HTTP and carries data as JSON. Requests are made with a credential, often an API key. A good API is documented; an OpenAPI document that describes the endpoints and fields in a machine-readable form is a common way to do that.

An API request is a conversation the caller starts. To hear about something that happens on the other side, you use a webhook; the two often work together.

Example

When an order ships, a shop's order system sends a messaging service's API the request "send this template to this person". The service checks the request, queues the message and returns a message ID, which the order system writes to its own record.

In UPPU

UPPU has a REST API (v1) with a public OpenAPI document and an error-code page. More on the developer page.

Posts that use this term

Talk to us

All terms