Server

Access to where Directus runs. Allows you to make sure your server has everything needed to run the platform, and check what kind of latency we're dealing with.

Endpoints
   GET /server/info
   GET /server/ping

Retrieve Server Info

Perform a system status check and return the options.

Parameters

No URL parameters available.

Query

super_admin_token required

The first time you create a project, the provided token will be saved and required for subsequent project installs. It can also be found and configured in /config/__api.json on your server.

Returns

Lists if you have all the requirements needed for Directus and shows some other useful information.

Endpoint
   GET /server/info
Response
{
  "data": {
    "directus": "8.3.1",
    "server": {
      "type": "Apache/2.4.25 (Debian)",
      "rewrites": null,
      "os": "Linux",
      "os_version": "#1 SMP Tue Jul 2 22:58:16 UTC 2019"
    },
    "php": {
      "version": "7.2.22-1+0~20190902.26+debian9~1.gbpd64eb7",
      "max_upload_size": 104857600,
      "extensions": {
        "pdo": true,
        "mysqli": true,
        "curl": true,
        "gd": true,
        "fileinfo": true,
        "mbstring": true,
        "json": true
      }
    },
    "permissions": {
      "public": "0755",
      "logs": "0755",
      "uploads": "0755"
    }
  }
}

Ping the server

Ping, pong. Ping.. pong. 🏓

Parameters

No URL parameters available.

Query

No query parameters available.

Returns

pong

Endpoint
   GET /server/ping
Response
pong