Knowledge base
Breadcrumbs

Retrieving a REST API Token From XMLAPI


Purpose

This document explains how to retrieve a REST API token through XMLAPI.

Introduction

It is possible to retrieve a REST API token through the XMLAPI action GETRESTTOKEN by using the XMLAPI apptoken.

Solution

Prerequisites

This procedure requires a super user account.

Solve

  1. Generate an API Token in the OUTSCAN UI Menu Menu -> Settings -> Security Policy.

    1. With that key, run the API command.

      https://<O24-URL>/opi/XMLAPI?ACTION=GETRESTTOKEN&APPTOKEN=<Key from Step 1>
      


      The <O24-URL> could be either https://outscan.outpost24.com/ or your HIAB IP Address/FQDN.

  2. A token is returned that lasts 10 minutes from the REST API.