Skip to main content
Endpoint extensions allow you to add custom API routes to Directus.

Creating an Endpoint

Endpoint Structure

Router

The router is an Express router. You can use all Express methods:

Request Object

The request object includes:

Using Services

Access Directus services:

Authentication

Endpoints respect Directus authentication:

Error Handling

Accessing External APIs

Next Steps

Hooks

Create server hooks

Operations

Create flow operations