The 3DM Publisher API is a JSON-based API.
All documented routes are relative to the 3DM Publisher Server Root Location.
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.
The default way to make a request is:
Content-Type: application/json;[HTTP Method] [Server URL]/[API Route]?[Query arguments][Request body]The access token is provided using the “access_token” query argument.
Content-Type: plain/text;POST [Server URL]/<API Route>{ "_http_envelope_": true, "access_token": "xxx", "method": [HTTP Method], "query": { [Query arguments] }, "body": { [Request body] } }
The access token is provided in the post body “access_token” field.
This method has the advantage of:
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>.
POST /api/3/login
{ "username": "xxx", "password": "xxx", "publicationName": "xxx", }
Fields:
username - The usernamepassword - The passwordpublicationName - For a non-admin login, this must be an existing publication name.{ "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 }
This operation will instruct the server to reload the following configuration files from disk :
configuration.iniconfig/resource.xmlconfig/user.xmlconfig/usergroup.xmlpublications/*bookmarks/*accessprovider/*
GET /api/3/reload
No content