Skip to content

API integration

API integration fundamentals for non-engineers

What an API is, why integrations break, and the questions to ask before connecting two systems.

By Hextara team · Published · Last reviewed

An API is a defined way for one piece of software to ask another to do something, such as create a customer, read an order or send a message. Most business integrations are APIs talking to each other.

Two common patterns

  • Request and response: your system asks, the other answers. Used for looking up or changing data on demand.
  • Webhooks: the other system calls yours when something happens, such as a payment completing. Used for reacting quickly to events.

Most web APIs use HTTP, the same protocol browsers use. The IETF's HTTP Semantics specification defines the methods and status codes that these APIs build on, such as the difference between a successful response and a server error.

Why integrations break

  • The provider changes or retires an endpoint.
  • Credentials expire or permissions change.
  • Rate limits are exceeded during busy periods.
  • Data does not match what was expected, such as a missing field.
  • A network call fails halfway and the same action is repeated.

What good integrations include

  • Retries with increasing delays for temporary failures.
  • Idempotency, so repeating a request does not create duplicates.
  • Logging and alerts, so failures are noticed.
  • Validation of incoming data.
  • A way to replay or fix failed items.

Questions to ask before connecting systems

  • Does each system have a documented API, and what does it cost?
  • Which system is the source of truth for each piece of data?
  • How fresh must data be: instant, hourly or daily?
  • What happens when one side is down?
  • Who will watch it and fix it?

A short glossary

  • Endpoint: an address you send a request to.
  • Authentication: proving who is calling, often with a key or token.
  • Rate limit: the number of calls allowed in a period.
  • Payload: the data sent or received.
  • Idempotent: safe to repeat without changing the result more than once.

Keep secrets safe

API keys are passwords for software. Store them in a secure vault, give each integration only the permissions it needs and rotate keys when people leave.

Tell us what you want to build.

Book a consultation to discuss your project, or send the details for a written estimate.