2 min read

What is the Directus API URL?

The Directus API is a powerful tool that connects your database to your website or device with ease. There are 2 frameworks to choose from, REST API or GraphQL.
What is the Directus API URL?

The Directus API is a powerful tool that connects your database to your website or device with ease. There are 2 frameworks to choose from, REST API or GraphQL. This article will cover what URL to use for both methods.

The URL for the Directus REST API is:

https://directus.example.com/items/collection_name

The URL for the Directus GraphQL API is:

https://directus.example.com/graphql
💡
Make sure to change directus.example.com to your address for Directus

Some people have asked if Directus has a GraphQL playground, it does not. However, you can use Postman and create your own playground of GraphQL requests using the Directus API Documentation.

API Reference | Directus Docs
Directus 9. An Instant App & API for your SQL Database.

Here are some other useful articles:

How to use Postman with Directus
Postman is an essential tool in any project. You can connect the Directus API and test out the various endpoints and responses.
How to use Directus REST API on your website?
REST APIs are a very powerful method for retrieving your data from Directus. In this article, I’ll show you how you can query, create, update and delete records as well as some advanced techniques that will be useful when creating websites.
How you can use Directus GraphQL on your website?
GraphQL is a very powerful API for retrieving your data from Directus. In this article, I’ll show you how you can query, create, update and delete records.

By continuing to use our website, you consent to use essential cookies. We also use optional tracking cookies which help us gather statistics to improve our services. Do you consent to these cookies?

I Consent Do not track