Skip to content

API portal

Introduction

Retain Cloud APIs let you integrate Retain Cloud services into your platform. The Retain API Portal allows you to test your Retain Cloud APIs.

The following Help pages provide you with all the information you need to start using Retain Cloud APIs. Use these help pages in conjunction with the API Portal. A lot of information, for example - a detailed list of query parameters along with their datatypes, is provided on the API portal itself.

Quick start

  1. Enable API Portal access in Settings → Security Profiles → General → API Portal

    Security profile access to API portal

  2. Login to the API Portal

    Login to the API portal (See links), enter your tenant name and login credentials

  3. Select 'APIs' menu-option from the top-right menu

    A list of API categories will be shown. You can also search for an API by entering your criteria in the 'Search APIs' box. The category 'DataAccessAPI-Portal' is shown in the screen above.

  4. Click to select an API category from the list

    The screen will change to display a list of endpoints belonging to the selected API category.

  5. Click to select an endpoint

  6. Click Try it to test the endpoint

    Refer to the help pages for examples on how to use the endpoints.

Try it

  1. Select Implicit from the Authorisation dropdown. Authentication type is OAuth2.

    A bearer token will be generated for your use. This is valid for an hour by default. After an hour, select Implicit again from Authorisation to continue working. Learn about Implicit authorisation in Microsoft documentation.

  2. Select the Request body format in the Body section

  3. Enter the sample Request body

    Examples are provided in the API Help pages.

  4. Click Send

  5. A response is returned
  6. If successful, copy the response and paste it in your code or save it for later

Note

The IDs and Resource URL specified in the API Help pages are tenant dependent. For example, tenant specific details will replace 'TenantID' and 'Environment' in the Resource URL specified below:

https://{environment}.retaincloud.com/DataAccessAPI/{tenant}/api/tableaccess/booking.

Similarly the booking_guids and other ids returned by responses shown in the examples are tenant dependant.