Automation & AIModule 2: Automation building blocksLesson 8 of 15
Course progress47%

20 min lesson · Updated August 2026

What are APIs, webhooks and integrations?

An API defines supported programmatic requests to a system, a webhook pushes an event to a receiving endpoint, and an integration connects systems by handling authentication, mapping, errors and ongoing change.

What you will learn

By the end, you will understand:

  • Explain request/response APIs and webhook events
  • Protect endpoints with authentication and signature validation
  • Plan versioning, rate limits, mapping and failure recovery

Visual explainer

See the idea clearly.

API is a contract

An application programming interface describes operations, inputs, authentication and responses that software can use. A client may request a record, create an item or update a status.

The API exposes only what the provider supports. Scraping a screen and relying on hidden fields is more fragile and may violate terms.

Webhook pushes an event

Instead of repeatedly asking “did anything change?”, a system sends an HTTP request to a registered endpoint when an event occurs. The payload identifies the event and relevant data.

Webhooks can arrive late, more than once or out of order. Authenticate the sender, validate the signature over the raw payload as documented, acknowledge quickly and process safely.

Integration handles the messy middle

ConcernExample
AuthenticationAPI key, OAuth token, signed webhook or service identity.
MappingCustomer email in one system becomes contact.email in another.
TransformationDates, currencies, enums and phone formats differ.
ReliabilityRetries, queues, idempotency, rate limits and partial failures.
GovernancePermissions, retention, logs, owner, vendor terms and deletion.

Protect webhook endpoints

  • HTTPS
  • Unpredictable endpoint where appropriate but not sole control
  • Signature/secret validation
  • Timestamp/replay protection
  • Schema and size limits
  • No secrets in query string
  • Fast acknowledgement
  • Queue for processing
  • Rate limiting
  • Safe logs
  • Rotation plan
  • Test/live separation

Credentials belong server-side

API keys, client secrets and webhook signing secrets should not be embedded in browser JavaScript, public repositories, shared screenshots or lesson content. Store them in an approved secrets system and grant least privilege.

Rotate compromised credentials and design the integration so rotation does not require editing many workflows manually.

Plan for provider change

  1. 01

    Read current API/docs

  2. 02

    Pin supported version

  3. 03

    Build contract tests

  4. 04

    Monitor deprecation notices

  5. 05

    Handle rate limits

  6. 06

    Stage migration

  7. 07

    Test representative events

  8. 08

    Roll out gradually

  9. 09

    Keep fallback/rollback

No-code does not remove engineering responsibility

A connector can simplify setup but still moves data, uses credentials and depends on vendor behavior. Review what fields leave each system, where they are stored and who can edit the workflow.

Use test accounts/data and avoid giving a connector broad administrator access solely for convenience.

Real-world example

Example: payment webhook without duplicate fulfilment

Example

The payment provider sends a signed event. The server verifies the signature and event ID, stores it, returns a quick acknowledgement and processes fulfilment from a queue. A repeated event finds the same ID and does not ship twice.

Try this

Create an integration contract card

For one connection, record systems, trigger/request, authentication, fields, permissions, rate limit, duplicate strategy, failure alert, owner and deprecation source.

Common questions

Questions beginners ask.

What is an API?

A documented programmatic interface through which software can request supported data or actions.

What is a webhook?

An event message sent by one system to a registered receiving endpoint.

What is an integration?

The connection logic that authenticates systems, maps/transforms data and handles reliability and governance.

Why validate webhook signatures?

To verify the payload came from the expected provider and was not altered, according to its documented method.

Can a webhook arrive twice?

Yes. Design idempotency and event storage to avoid duplicate effects.

Where should API secrets be stored?

In an approved server-side credential/secrets system with least privilege, rotation and access control.

What is a rate limit?

A provider limit on request volume over time; workflows should respect and handle it.

Is a no-code connector automatically secure?

No. Review permissions, data movement, credentials, vendor terms, logs and failure behavior.

Assessment

Check what you understood.

5 questions · instant explanations

1. What does a webhook do?
2. Why can webhook events need idempotency?
3. Where should an API key not appear?
4. What does an integration map?
5. True or false: no-code integrations remove the need to manage permissions and failures.

Sources

Primary references.