Help Center/Partners

Partners

The Apertur Partner Program lets you integrate Apertur into your own application and earn recurring commissions on referred customers. Build powerful photo collection workflows for your users with our OAuth API and Connect SDK.

Becoming a Partner

Joining the partner program is quick and free. Here's how to get started:

  1. Log in to your Apertur account and navigate to the Partner section.
  2. Submit a partner application with details about your platform and intended integration.
  3. Our team reviews your application (typically within 2 business days).
  4. Once approved, you gain access to partner tools: OAuth app management, referral links, and the commission dashboard.
  5. Start referring customers or integrating via OAuth to earn commissions.

Commission Rate

Partners earn a 10% recurring commission on all payments from referred customers. Commissions are tracked automatically and paid out monthly via PayPal.

OAuth Integration

OAuth lets your users connect their Apertur accounts to your application without sharing API keys. You can create sessions and manage destinations on their behalf.

Registering an OAuth App

  1. Go to the Partner dashboard and click "New OAuth App".
  2. Enter your app name, description, and website URL.
  3. Add one or more redirect URIs (these must be HTTPS in production).
  4. Save your client ID and client secret securely.

Authorization Flow

Apertur uses the standard OAuth 2.0 Authorization Code flow. Redirect your users to:

https://apertur.ca/oauth/authorize?
  client_id=your_client_id&
  redirect_uri=https://your-app.com/callback&
  response_type=code&
  scope=sessions:write destinations:read&
  state=random_csrf_token

Token Exchange

After the user authorises your app, exchange the authorization code for an access token:

curl -X POST https://api.apertur.ca/oauth/token \
  -H "Content-Type: application/json" \
  -d '{
    "grant_type": "authorization_code",
    "client_id": "your_client_id",
    "client_secret": "your_client_secret",
    "code": "auth_code_from_callback",
    "redirect_uri": "https://your-app.com/callback"
  }'

Using the Access Token

Include the access token in the Authorization header of all API requests made on behalf of the user. Tokens expire after 1 hour — use the refresh token to obtain a new one.

Authorization: Bearer oat_xxxxxxxxxxxx

Connect SDK

The Connect SDK provides a drop-in button that handles the entire OAuth flow in a popup window. No need to build the authorization UI yourself.

Public Key

Each OAuth app gets a unique public key (format: aptr_live_pk_...). This key is safe to expose in frontend code and is used to initialize the SDK. You can find it in your OAuth app settings.

Allowed Domains

Restrict which domains can use your public key by configuring allowed domains. Wildcards are supported: *.example.com matches any subdomain including nested ones (e.g. app.example.com, staging.app.example.com). Leave empty during development to allow all origins.

Installation

<script src="https://cdn.apertur.ca/sdk/aptr-connect.js"></script>

Usage

<script>
  AptrConnect.init({ publicKey: "aptr_live_pk_your_key_here" });

  document.getElementById("connect-btn").addEventListener("click", () => {
    AptrConnect.authorize({
      scopes: ["upload:create", "project:read"],
      onSuccess: (result) => {
        // Send result.code to your backend to exchange for a token
        console.log("Authorization code:", result.code);
      },
      onError: (err) => console.error(err),
    });
  });
</script>

The SDK handles token storage, refresh, and error handling. It supports React, Vue, and vanilla JavaScript. Full SDK documentation →

Commission Tracking

Apertur tracks commissions automatically for both referral links and OAuth-connected customers.

Partner Dashboard

View your earnings, referral count, and pending payouts in real time from the Partner dashboard. Filter by date range, customer, and commission status.

Referral Link Commissions

When a user signs up through your referral link and subscribes to a paid plan, you earn a commission on their payments. The referral is tracked via a cookie that lasts 90 days.

OAuth Commissions

When a user connects their Apertur account to your app via OAuth and subsequently subscribes or upgrades, you earn a commission. This is tracked automatically through the OAuth client ID.

PayPal Payouts

Commissions are paid out monthly via PayPal. Here's how to set up and manage your payouts:

  1. Go to the Partner dashboard and open the Payouts section.
  2. Enter your PayPal email address.
  3. Verify your PayPal email by clicking the confirmation link.
  4. That's it — payouts will be sent automatically each month.

Payouts are processed on the 15th of each month for commissions earned in the previous calendar month. A minimum balance of $50 CAD is required for a payout to be triggered.

Payout Timeline

Commissions have a 30-day holding period to account for refunds and chargebacks. After the holding period, they become eligible for the next monthly payout.

Best Practices

Secure Token Storage

Store OAuth access tokens and refresh tokens securely on your server. Never expose them in client-side code or local storage.

Request Minimal Scopes

Only request the OAuth scopes your integration actually needs. This builds trust with your users and limits the impact of a potential token compromise.

Test in Sandbox

Use test API keys and sandbox mode during development. This lets you verify your integration without affecting real data or incurring charges.

Provide Clear Documentation

Document your integration steps for your users. Explain what permissions you're requesting and how their Apertur data will be used.

Was this article helpful?

Need more help? Contact our support team.

Partners | Help center | Apertur