SourCherry Help Centre
Home â€ș App marketplace â€ș Get Started w/ App Marketplace

What is the App Installer Details API?

The App Installer Details API helps Marketplace developers identify who installed their app and the exact agency/sub‑account context—plus agency white‑label data for branding. Use it to personalize onboarding, align UI with agency branding, and engage the agency owner without requesting broad company‑level OAuth scopes. This improves retention, accelerates setup, and preserves white‑label integrity.



TABLE OF CONTENTS


What is the App Installer Details API?


The App Installer Details API returns verified information about the user who installed your Marketplace app and the exact context where the app is installed (sub-account and agency). It also surfaces agency profile and white‑label data so you can personalize onboarding, branding, and communications—without requesting broad company‑level OAuth scopes.


The App Installer Details API returns verified information about the user who installed your Marketplace app and the exact context where the app is installed (sub-account and agency). It also surfaces agency profile and white‑label data so you can personalize onboarding, branding, and communications—without requesting broad company‑level OAuth scopes. The endpoint is designed for Marketplace developers who need to: identify the installer, respect white‑label boundaries, and tailor their app experience for agencies and sub‑accounts.


Key Benefits of App Installer Details

Use these benefits as a checklist for what to automate after you fetch installer context.


Authentication Options


Choosing the right token determines what context the API resolves. This section explains which token to use and how it affects the response so you remain least‑privilege and consistent with Marketplace policies.

Note: Exact permission requirements follow Marketplace norms. Use the minimal token that can read install context; do not request broad agency scopes solely to obtain branding.



Endpoint & Request Examples

Concrete examples reduce integration time. Replace placeholders below with your actual base URL and endpoint path once confirmed in the official API reference.


cURL
curl -X GET \ "{BASE_URL}/marketplace/app-installer/details" \ -H "Authorization: Bearer {AGENCY_OR_SUB_ACCOUNT_TOKEN}" \ -H "Content-Type: application/json"



Response Schema (Field Reference)

A clear, field‑by‑field reference enables developers to map data into their systems with confidence. Treat nullable fields and optional white‑label attributes defensively.


Key fields (representative; confirm names/types in official docs)


White‑Label Data Usage Guidelines


White‑label integrity is a core expectation in SourCherry implementations. Use agency branding thoughtfully to enhance UX without exposing upstream identity to end clients.


Rate Limiting & Caching


Proactive handling of limits and caching keeps your app resilient. Use exponential backoff on transient errors and reduce duplicate calls with strategic caching.


Error Handling


Anticipating error states improves developer velocity and user trust. Map API errors to actionable guidance in your UI.



HTTP
Likely Cause
Example Error Body
Recommended Action
401
Missing/invalid token
{ "error": "unauthorized" }
Refresh token; confirm header format
403
Token lacks privileges for context
{ "error": "forbidden" }
Use appropriate Agency/Sub‑account token
404
App not installed for context
{ "error": "not_found" }
Prompt install or switch to valid account
429
Rate limit exceeded
{ "error": "rate_limited" }
Apply backoff + caching
5xx
Temporary service issue
{ "error": "server_error" }
Retry with exponential backoff



Versioning & Availability


Knowing the maturity and rollout status helps teams plan rollouts and avoid surprises during upgrades.


How To Setup App Installer Details in Your App


A simple, repeatable setup sequence ensures teams integrate the endpoint quickly and safely. Complete these steps in development before moving to production.


Step 1: Confirm Tokens

Step 2: Add the Request

Step 3: Map the Response

Step 4: Handle Errors + Retries

Step 5: Validate White‑Label Integrity


Step 6: Ship with Observability


Frequently Asked Questions


Q1. Which token should I use—Agency or Sub‑account?
Use the token that matches your current execution context. Agency tokens resolve agency + installer and can reference sub‑account installs; Sub‑account tokens resolve the current location’s agency context.


Q2. Does this endpoint require company‑level OAuth scopes?
No. A key advantage is avoiding broad company‑level scopes just to read agency details.


Q3. What white‑label fields are typically returned?
Brand name, support email/URL, branded domain, and optional assets such as logo and favicon. Treat fields as optional and cache with a short TTL.


Q4. Can I cache the response?
Yes. Cache per token/context and refresh when sessions start or when you detect branding changes.


Q5. What happens if the installer leaves the agency?
Expect stable agency/sub‑account context. The installer record may reflect the historical user; handle null/unknown gracefully.


Q6. Is pagination involved?
No. This endpoint returns a single installer context payload for the current token.


Q7. How should I handle rate limits?
Use exponential backoff with jitter on 429 responses and reduce call frequency via caching.


Q8. Can I use this to message the agency owner directly?
Yes—owner details are returned for relationship‑building. Use thoughtfully and follow your privacy policy.