Requesting a Token
Once you have an access key, you can request a token using the token REST API. A typical request includes these elements:
URL
HTTP Header:
Content-type:application/json |
The parameters in the HTTP header are described in this table.
Parameter | Description |
---|---|
x-api-key | The access key ID for which you want to generate a token. its unique for each partner |
Request Body
The request body contains all URL parameters as JSON body
{ |
The parameters in the body are described in this table.
Parameter | Description |
---|---|
auth | API key associated with the partner |
userId | partner defined user id |
fileUrl | URl to the file to open. Read only access |
file | Identifier of designated file in backend system (instead of fileUrl; if both are passed file is taken with priority) |
server | Url of the API server |
locale | Set the user interface language |
access | Set the editing or view UIĀ (edit or view)
|
autosavedisabled | Set disabled auto save (false or true)
|
sessionId | id send with each API request |
workspace | Overwrite the default UI workspace used for editing UI (see https://graebert.atlassian.net/wiki/x/DAFgRg) |
viewerWorkspace | Overwrite the default UI workspace used for view UI (see https://graebert.atlassian.net/wiki/x/DAFgRg) |
mobile | Load a mobile friendly UI (false or true) |
debug | Provide debugging output and features (false or true) |
Response
If successful, the service will return a 200 status code with the token and expiration time.
status: 200 Ok |
On error, the service will return a 403 error code with a descriptive error message.
status: 403 Forbidden |
Token validation
You can optionally validate a token with the verification endpoint
URL
HTTP Header
Content-type:application/json |
The parameters in the HTTP header are described in this table.
Parameter | Description |
---|---|
x-api-token | token generated using |
Response
If successful, the service will return a 200 status code with all URL parameters which is passed using /generate
endpoint
Status: 200 OK |
On error, the service will return a 403 error code with a descriptive error message.
status: 403 Forbidden |