Skip to main content

Getting Started

Welcome! This guide walks you through the minimum 3 steps to get Octopus SDK running in your app.

  • Step 1: Request your API key
  • Step 2: Install the SDK
  • Step 3: Display the UI

1) Get an API Key

Fill out the form to request your API key. Required fields: Email, First Name, Last Name. Company is optional.

Request an API Key

Fill in the details to receive your sandbox API key.

Company or project name.

2) Install the SDK

Choose your platform and install the SDK:

Add Maven Central and the dependency in your Gradle files:

// build.gradle (project)
allprojects {
repositories {
google()
mavenCentral()
}
}

// build.gradle (module)
dependencies {
implementation("com.octopus:octopus-sdk:<latest>")
}

Initialize the SDK early in your app (e.g., Application):

class MyApp : Application() {
override fun onCreate() {
super.onCreate()
OctopusSDK.init(
context = this,
apiKey = BuildConfig.OCTOPUS_API_KEY // store securely
)
}
}

Replace <latest> with the current version and inject your API key via secure config.

3) Display the UI

Once the SDK is installed and initialized, present the community UI:

From an Activity or Fragment:

OctopusSDK.displayCommunity(context = this)