An API is an application programming interface defining how software can use selected data or functions of other software. It enables controlled exchange but does not guarantee that every desired connection is already available.
We explain the term using a website that passes a customer enquiry to a business system, then outline the questions to ask a provider.
What is an API and where might a small business use one?
An API is a controlled way to access functions or information. APIs exist within programs and between systems; they do not have to be publicly accessible over the internet.
The MDN API documentation explains this general meaning. MDN is the name of developer documentation maintained by Mozilla and other contributors. Our example uses a web API, where programs exchange requests and responses through web technology.
Consider a small electrical business. A customer asks about an installation through its website. Office staff want those details in customer management and a task prompting them to respond. With a suitable interface, the website can request creation of the intended record without someone copying everything again.
A customer relationship management (CRM) system manages customer relationships and related cases. The API is not the CRM itself. It provides access through which other software may use selected CRM functions.
That boundary matters. A CRM may display quotations in its interface without providing an API for creating them. “Has an API” is therefore only the start of assessment. Ask which particular action and fields it supports.
How does a request through a web API work?
A program sends a documented request with appropriate inputs. The receiving software checks it and returns a result or error.
At the electrical business, the website might send name, contact route and enquiry to the intended customer-management endpoint. An endpoint has a particular address and defined purpose. Documentation describes required information and expected results.
Many web APIs use HTTP, the Hypertext Transfer Protocol. It governs communication through requests and responses. The HTTP semantics specification is the primary source. For a business, the essential point is that an integration checks outcomes as well as sending information.
Customer management might return a reference for the saved case. That reference helps assign later questions and changes to the same enquiry. Person and enquiry are different things: one customer can submit several enquiries. An email address should not automatically become the unique reference for every case.
| Example information | Purpose | Rule to check |
|---|---|---|
| Contact reference | Find the contact again | Match an existing contact correctly |
| Case reference | Track one enquiry | Recognise repeats |
| Name and contact route | Enable a response | Permitted formats and required details |
| Enquiry and source | Assign work | Transfer only necessary information |
The contact describes the person or organisation. The case describes one enquiry. Contact details and the request enable a response. Keeping them distinct prevents several needs from the same customer being accidentally treated as one job.
What happens after errors, limits or unclear responses?
An integration needs different responses to invalid inputs, missing permissions and temporary faults. Automatically retrying every error is not a reliable strategy.
A status code is a technical number in a response. The MDN HTTP status overview explains the categories. Codes help classify outcomes but do not replace provider documentation. Particular functions may have additional messages and their own rules.
Invalid input needs correction of the affected field. Missing permission requires assessment of the account. A rate limit restricts requests within a period. Status 429 describes too many requests; its specification permits information about how long to wait before another attempt.
For the electrical business, a timeout is especially important. A timeout means the sending program did not receive a complete response within its waiting period. The case may nevertheless already be saved. Blindly creating it again could produce a duplicate enquiry.
Idempotency means repeating an action should not create an additional equivalent result. Payment provider Stripe documents idempotency keys for this purpose. Under documented conditions, suitable requests can be repeated using the same key. This is a particular provider example; another API does not automatically support an equivalent mechanism.
Agree how to reconcile uncertain outcomes. A pending case can remain in a durable queue until the connection processes it or a person intervenes. Staff need a visible exception rather than an unnoticed endless retry loop.
How do API keys differ from OAuth?
An API key identifies or authorises access under the provider's rules. OAuth 2.0 is a standard framework allowing software to obtain limited access to a service.
The OAuth specification describes delegated access. In an office, an application might read calendar availability without receiving the personal account password as a permanent credential. Available permissions and revocation depend on the service and its implementation.
Not every API key is secret. Stripe's key documentation distinguishes publishable keys for particular limited tasks from sensitive keys for other access. Restricted keys can be given selected permissions there. According to Stripe, only publishable keys may be exposed outside your own server; a secret key has unrestricted permissions, which is why Stripe recommends restricted keys for most uses. Identify a key's type before sharing it.
The electrical business's website connection should use only required functions. Creating enquiries does not automatically require access to all reports or settings. Secret keys and access tokens, meaning technical access credentials, belong in an appropriate secure store.
Agree account ownership, the responsible person and a deputy. Document replacement or revocation and how the connection will resume afterwards. Keep sensitive credentials out of public files and ordinary email messages.
Is a webhook a different kind of connection?
A webhook reports an event to a prepared recipient. It may call a web API itself, so it is not the opposite of an API.
With an ordinary query, a program actively requests information. With a webhook, an event triggers a message, such as an appointment change. GitHub's webhook documentation explains this event-driven approach using requests to a configured address.
At the electrical business, a connected appointment program might report that a customer rescheduled. Customer management processes the message and updates the intended case. Check whether your booking program provides a suitable webhook for this.
Retries and outages still need rules. Receiving a message twice should not create the same task twice. If the recipient is temporarily unavailable, establish whether and how the provider delivers again. Also check how the recipient recognises authentic messages from the provider.
A combination can be useful: a webhook reports a change, then an API request retrieves the required current details. Our guide to connecting a website and CRM explains the business context of these handovers.
Which questions should you ask before an integration?
Require evidence for the actions, fields, permissions and failure cases you need. Assess scope, costs and ongoing maintenance using a specific application.
The electrical office should test a new enquiry, change, duplicate request and connection fault. Results should show where the case is stored and who handles exceptions. A prepared successful request alone is insufficient.
Limits need to suit actual usage. Here is an exercise: an assumed 1,000 enquiries with three calls each and 100 extra retries produce 3,100 calls per month. Pagination, change checks or additional workflow steps can add usage too.
Check the actual plan with its date, currency and billing method. Setup, API usage, monitoring, technical maintenance and human exception handling are separate cost categories. Freely documented access does not mean free operation of the complete integration.
A public API also does not prove complete export. It may not supply every history, file or relationship. Read a test export and check whether another system can use the required information. This applies to custom development as well as standard software.
- Required actions and fields are documented and tested.
- Access is limited to the necessary scope.
- Invalid inputs, missing permissions and limits have suitable responses.
- Repeats do not create unwanted duplicate cases.
- Pending cases are visible and have an owner.
- Usage, maintenance and provider changes are considered.
- Export and handover were tested in practice.
Conclusion: An API becomes useful through the actual workflow
An API enables controlled access to functions and information. Suitable permissions, confirmed outcomes and clear error handling make a connection reliable. Assess your task using the programs involved. Our business systems provide the framework; a conversation with WebDrift can help define the exchange you need.
Related reading: What is a customer portal and when is it worth it?.




