Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Endpoint

Also: endpoints

In plain words

An address a program calls to do a set task. One address might accept a file; another might return a reply.

Ordering from a kitchen you never see
  1. You orderA program sends a request: here is the text, here is what to do.
  2. The waiter carries itThe API delivers it to the model and waits.
  3. The kitchen cooksThe model produces the answer.
  4. The plate comes backThe answer returns to the program, which shows it to you.

An API is the doorway between programs. Every chat app uses one behind the scenes; programmers can use the same doorway directly.

The fuller definition

An endpoint is a specific address or access point for an operation in an API. For a web API it commonly includes a URL path and an HTTP method.

Go deeper

How it fits together
  1. Address

    /documents/A01

  2. Method

    GET

  3. Result

    Document metadata

A simplified relationship, not a screenshot or a complete design.

A concrete example

GET /documents/A01 requests a document record; POST /summaries might request a new summary.

The distinction that matters

The address alone does not grant access or explain every required input.

Related terms

Where it is taught

APIs and JSON: connect a model to a small program

Source and further reading

MDN · Web technology glossary

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC