By · Updated

folders, a data table and magnifying glass on a desk
Practical method

Prepare for external API failure or change

An external API is a dependency: accessible documentation does not guarantee your application can use it. Plan what happens when responses are missing, late or structurally different.

01

Identify the dependency and its effects

List functions using the API, received data, permissions and the monitoring owner. Distinguish a catalogue describing a service from operational access actually obtained.

The official job-offers API record currently publishes a notice that it is no longer exposed on pole-emploi.io. This illustrates why a documentation URL alone cannot validate integration; it does not establish permanent closure.

02

Define a deadline and fallback

Choose a timeout compatible with the user’s task. On expiry, show a clear state: unavailable data, a dated previous result or deferred processing. Do not replace missing data with a plausible value.

Fictional example: an indicator comparison page can remain useful when it shows the last result date. It must not display “no vacancies” when the search service fails to respond.

03

Simulate errors in isolation

Prepare fictional responses: success, empty response, authorisation error, timeout and missing field. Compare display and logs with expected outcomes without multiplying calls to the real service.

For an action writing to another system, also simulate a lost response after execution. Recovery must check what actually happened before retrying, otherwise an operation may occur twice.

04

Separate freshness from availability

If results are retained, define what may be displayed, for how long and with which date. An old value may help a history view but mislead in an immediate situation.

Document data that must not be retained or is too sensitive, along with reuse permissions. A cache does not automatically authorise indefinite storage or republication.

05

Organise recovery and monitoring

Prepare proportionate reporting, an owner and a verification task after restoration. Check schema changes and pending records before declaring recovery complete.

Keep a manual procedure for essential functions. Monitoring must follow actual journey usefulness: a correct HTTP response may still contain unusable information.

06

Allocate time across dependencies

A journey may call several services in sequence. Set an acceptable duration for the complete task, then allocate waiting time between calls. Giving every dependency the full allowance can make the final response much slower than intended.

Keep retries within that budget. Temporarily suspending calls to a clearly unavailable service can avoid repeated failures. Explain what remains usable and what needs recovery rather than displaying fictional success.

07

Plan catch-up when service returns

During an outage, distinguish refused, queued and partly executed requests. Give operations references permitting status checks. Do not indiscriminately replay every logged request when the dependency returns.

Start with a small batch and respect ordering where operations depend on earlier work. A modification may require a completed creation. Monitor progress, duplicates and new failures with a stopping mechanism rather than immediately recreating overload.

Worked decision

A timeout does not prove an operation failed

Fictional teaching example, not a client result or a market benchmark.

An application submits a request to an external service. The connection times out before a response arrives. The team does not know whether processing occurred; immediately repeating the action could create a duplicate.

On a small screen, scroll horizontally to read every column. You can focus the table area and use the left and right arrow keys.

Decide from what is actually known
SituationPlanned behaviourEvidence to inspect
Read unavailableShow unavailable status or an allowed dated copyFreshness date and understandable message
Creation without responseMark outcome for verification before retryingRequest identifier and provider-side status
Request limit reachedWait according to service guidanceReceived status and scheduled next attempt
Service restoredReconcile pending requestsResolved requests and remaining exceptions

Separate reads from actions that create records, charge or notify. Repeating a read may be acceptable while repeating a creation needs duplicate protection. Check the guarantees actually documented by the API.

Set a maximum attempt count and an owner for exceptions. Make degraded operation explicit: old availability must not be presented as a confirmed booking.

What to record before deciding

Record affected operations, time limit, recovery rules, unknown outcomes and reconciliation results after recovery.

A record to keep with the decision

Minimum evidence for a review
ItemEvidence
DependencyService, function, access and owner.
FallbackTimeout, message and usable data.
TestsFictional cases and expected outcomes.
RecoveryPending-task review and recovery evidence.

Frequently asked questions

Does HTTP 200 prove integration works?

No. Check contents, schema, permissions and business outcome.

Should every error be retried automatically?

Not without knowing the action and duplicate effects. Writes require particular care.

Reference material

Insee · Catalogue des API

France Travail · Avis de distribution de l’API Offres d’emploi

The practical checklist is an editorial synthesis to adapt to your service. It does not constitute a certification or an audit result.

Continue with a related decision