Table of Contents

3DM Publisher Admin API - Basics

Back to the index

The 3DM Publisher API is a JSON-based API.
All documented routes are relative to the 3DM Publisher Server Root Location.

Table of Contents

How to Send Requests

In this section, we describe how you can send a request to the server. Requests are sent using the HTTP protocol.
The basic elements of a request are:

A request can be sent to the server in multiple ways.

Default Interface

The default way to make a request is:

The access token is provided using the “access_token” query argument.

Post-only Interface

The access token is provided in the post body “access_token” field.

This method has the advantage of:

Operation: Login

Discussion

The Login operation creates a session that is valid for the next 900 seconds. Every time you send a request to the server, the session will again stay open for 900 seconds. When you are inactive for that duration, the session will be closed on the server side and be invalid from that point on.

If the server you are connecting to has “Access Providers” and you have a valid JWT access token for one of these providers, you can use that token for login as well. Leave the password field empty and format the username in the following way : [<code>]<accessToken>.

Request

POST /api/3/login

{
    "username": "xxx",
    "password": "xxx",
    "publicationName": "xxx",
}

Fields:

Response (http 200)

{
    "identifier": "6tOfZLBtPxP4xgA3",
    "created_at": "2024-11-25 15:44:48",
    "expires_at": "2024-11-25 15:59:48",
    "version": "24.4.0",
    "versionDate": "2024.11.22",
    "editingAllowed": false
}

Operation: Reload Server Configuration

Discussion

This operation will instruct the server to reload the following configuration files from disk :

Request

GET /api/3/reload

Response (http 204)

No content