Flat illustration of a request flowing through sequential gate icons toward a document
API Design

How Draftbase's Content API Works

A delivery API call hits auth, rate limits, a Mongo query, and a cache header. Here's the real request path, end to end.

Samer Alsayegh··5 min read
Flat vector illustration of directional arrow icons pointing at a database cylinder icon, connected by a network cable path
API Design

What Is a REST API Endpoint?

What is a REST API endpoint? See the URL and method model, real design patterns, and why safe retries matter most.

Samer Alsayegh··5 min read
Flat vector illustration of a GraphQL query tree branching to selected fields feeding a phone and a desktop, next to a rejected fixed-shape REST box
API Design

What Is GraphQL Used For? Playground and Python Examples

What is GraphQL used for in 2026? See real use cases, why GraphQL Playground is old, and a working Python code example.

Samer Alsayegh··5 min read
Flat vector illustration of two stacked layers: a query-language document tree on top and a single HTTP POST arrow into one endpoint below
API Design

GraphQL Queries and Requests Explained

GraphQL queries and requests, explained. See how the language and the HTTP layer differ, plus when to use graphql-request or fetch.

Samer Alsayegh··6 min read
Flat vector illustration of a GraphQL API endpoint: a single node receiving query, mutation, and subscription requests and fanning out into resolved data fields
API Design

GraphQL API Endpoint: How It Works

A GraphQL API endpoint is a single URL that handles every query and mutation. Learn how it differs from REST, why it uses POST, and when each one fits.

Samer Alsayegh··8 min read
Flat vector illustration of a bell pushing an event outward next to two boxes connected by a back-and-forth arrow, representing a webhook versus a request-response API call
API Design

Webhooks vs APIs: What's the Difference?

A webhook vs an API: what's the real difference? Webhooks push data the moment an event fires. APIs wait for your app to ask.

Samer Alsayegh··6 min read
Flat vector illustration of a central content database box branching into document, image, and list resource icons, representing a REST API exposing headless CMS resources
API Design

REST API Development for Headless CMS

How do you design a REST API for a headless CMS? Name things well, filter with query params, page with cursors, and pick one version scheme.

Samer Alsayegh··7 min read
Flat vector illustration of a laptop sending a request arrow to a server rack and receiving a response arrow back, representing a single API call round trip
API Design

API Call Example: What Is an API Call and How It Works

What is an API call? It's a request one program sends another over HTTP — see a call api example, plus methods, status codes, and rate limits.

Samer Alsayegh··6 min read

Draftbase is a headless CMS built for React devs.