Quick Start

Obtain your Credentials

4min

Overview

In this guide, you'll learn how to register your first application with OS1. You have the flexibility to register your app either using the API or through the Developer Portal. Additionally, you'll learn how to retrieve and use your platform credentials. For more details, refer to the Apps and Solutions concept chapter.

Step 1: Register your App

Registering an app with OS1 can be done easily using either the API or the Developer Portal. Follow these steps to get your app registered and ready for integration on the platform.

Developers can register their applications via API by calling the RegisterApp endpoint. Follow the steps below to register an web app:

  1. Prepare the application details JSON based on the RegisterApp parameters.
  2. Set the required parameters like displayName, type, listingId, version, isConsoleCompatible, shortDescription, categories, and menu.
  3. Make a POST request to the endpoint RegisterApp with the application details JSON
  4. The API will validate the details and register the app.
  5. On success, the API returns a 201 status code with the registered application details
  6. The application will now be available in the Developer Portal.

Example Request

Register web app


Step 1: Obtain Credentials

To authenticate your apps on the platform, you need to obtain your credentials. You can access your credentials either through the API or the OS1 Developer Portal. However, keep in mind that your app must pass the tech review and have at least one approved version to get your credentials.

Prerequisites: Application registered on OS1 platform with ID {appId}

  1. Get the appId value for your application. You can find this in the RegisterApp response.
  2. Call GetProdCredentials with your appId.
  3. The JSON response contains your application's production credentials.
  4. Use the clientId and clientSecret to authenticate your production application requests to OS1 APIs.
JSON


View Credentials in Developer Portal

Document image


Service and Frontend: If you register one Web app type you will receive credentials for backend and frontend.

Service (backend): Use the Client ID and Client Secret in your backend to generate access tokens and make API calls on the platform.

Frontend (Mobile/Web): Use the front-end credentials within your front-end with Authentication And Authorization(AAA) SDK to generate an OTP that gives your users access to the platform resources through your UI.