Additional Resources
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.

Using the API

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


Using the Developer Portal

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.

Retrieve Credentials Via the API

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

  1. Select Apps in the left navigation bar to view a list of your registered apps.
  2. Click the icon under Credentials to view the following credentials for your app.
    1. App ID: The unique ID for your app
    2. Client ID and Client Secret: Generates an access token for authentication
    3. Tenant ID and Tenant URL: Specify the path to the sandbox environment you’re using.
  3. To copy your credentials, click the copy icon next to the credential.
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.