# CrossIndie Web SDK
Cross-promotion banner for websites, web tools and micro-SaaS. No dependencies, no build step, about 2 KB gzipped.
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
Use the hosted script (preferred):
```html
```
Or `npm install @crossindie/web` (package ships `embed.js` and TypeScript types; it exposes `window.CrossIndie`).
## Usage
### Declarative slots (recommended)
Any element with `data-ci-app-id` becomes one independent slot:
```html
```
Attributes: `data-ci-app-id` (required), `data-ci-category`, `data-ci-format`, `data-ci-country` (e.g. "US"), `data-ci-close="false"` to hide the dismiss button, `data-ci-api-base` (overrides the script tag's `data-api-base`).
### Single slot from the script tag
```html
```
Script-tag attributes: `data-app-id`, `data-category`, `data-format`, `data-country`, `data-close`, `data-target` (element id, default `crossindie-banner`), `data-api-base`.
### Programmatic
```js
window.addEventListener("load", () => {
CrossIndie.createBanner({
el: "#banner", // element, id or selector; default "crossindie-banner"
appId: "YOUR_APP_ID",
category: "web_tool", // game | web_tool | saas | mobile_app (default "game")
format: "rectangle", // card | rectangle | leaderboard | mobile | text (default "card")
apiBase: "https://api.crossindie.com",
lang: "en", // optional targeting
country: "US", // optional targeting
video: true, // set false to never request video
close: true, // small X; a dismissed slot earns nothing
onError: (e) => console.warn(e),
});
});
```
`createBanner` returns a Promise (true if shown). `CrossIndie.initSlots(defaultApiBase)` re-scans the page for `data-ci-app-id` slots (useful after client-side routing).
Formats: card (320 px wide), rectangle (300x250), leaderboard (728x90), mobile (320x50), text (no image).
## Pitfalls
- `apiBase` is required for programmatic use and must be `https://api.crossindie.com`. Without `data-api-base` on the script tag, declarative slots have no backend.
- In SPAs (React, Next.js, Vue) load the script once, and call `CrossIndie.initSlots(apiBase)` after the slot elements mount. Do not render the slot element server-side with content inside it.
- Set **Allowed web domains** on the app in the dashboard so the app_id only works on your own hosts.
- Ad blockers may hide the slot. That is expected; nothing to fix.
- Do not hide the banner with CSS or cover it: impressions require continuous visibility.
- Conversion tracking (optional): clicks land on your URL with a `ci_ref` query parameter; POST `{ "ref": ci_ref }` to `https://api.crossindie.com/api/v1/ad/convert` once when the user converts.
---
# CrossIndie Android SDK (Kotlin)
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
Distributed through JitPack. Add `maven("https://jitpack.io")` to the repositories in `settings.gradle(.kts)`, then add the dependency. The exact coordinates and latest version are in the README: https://github.com/Cross-Indie/sdks/tree/main/android (one artifact for Views, an optional one for Jetpack Compose).
The app needs ``.
## Usage (XML / Views)
```xml
```
## Usage (Jetpack Compose)
```kotlin
CrossIndieBanner(appId = "YOUR_APP_ID")
```
Check the README for the full list of attributes / parameters (category, format, callbacks) and the exact imports.
## Pitfalls
- Use category `mobile_app` for apps and `game` for games.
- The package name is sent automatically so the dashboard can confirm the SDK runs inside your store app.
- Impressions count only while the banner is at least 50% on screen with the app in the foreground for 1.5 seconds. Do not cover it.
- Clicks open the external browser and are reported once per ad.
---
# CrossIndie iOS SDK (Swift)
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
Swift Package Manager: in Xcode, File > Add Package Dependencies, enter `https://github.com/Cross-Indie/sdks` and add the CrossIndie library. The exact package URL / product name and minimum iOS version are in the README: https://github.com/Cross-Indie/sdks/tree/main/ios
## Usage (SwiftUI)
```swift
import CrossIndie
CrossIndieBanner(appId: "YOUR_APP_ID")
```
## Usage (UIKit)
```swift
import CrossIndie
let banner = CrossIndieBannerView(appId: "YOUR_APP_ID")
view.addSubview(banner)
```
Check the README for every option (category, format, callbacks) and layout notes.
## Pitfalls
- Use category `mobile_app` for apps and `game` for games.
- The bundle id is sent automatically so the dashboard can confirm the SDK runs inside your store app.
- Impressions count only while the banner is at least 50% on screen with the app active for 1.5 seconds.
- Clicks open Safari and are reported once per ad.
---
# CrossIndie Flutter SDK
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
Not on pub.dev yet. Add a git dependency in `pubspec.yaml`, then run `flutter pub get`:
```yaml
dependencies:
crossindie:
git:
url: https://github.com/Cross-Indie/sdks.git
path: flutter
```
Dependencies: `http` and `url_launcher` only. Android release builds need `` in `android/app/src/main/AndroidManifest.xml`.
## Usage
```dart
import 'package:crossindie/crossindie.dart';
const CrossIndieBanner(appId: 'YOUR_APP_ID')
```
Parameters: `appId` (required), `category` (`CrossIndieCategory.game | webTool | saas | mobileApp`, default mobileApp), `format` (`CrossIndieFormat.card | rectangle | leaderboard | mobile | text`, default card), `apiBase` (default `https://api.crossindie.com`), `packageName` (optional String), `country`, `lang`, `closeable` (default true), `refreshInterval` (Duration?, null = no rotation, min 30 s), callbacks `onAdLoaded(CrossIndieAd)`, `onNoAd()`, `onImpression(CrossIndieAd)`, `onClick(CrossIndieAd)`, `onError(Object)`.
```dart
CrossIndieBanner(
appId: 'YOUR_APP_ID',
category: CrossIndieCategory.game,
format: CrossIndieFormat.mobile, // 320 x 50
packageName: info.packageName, // e.g. from package_info_plus (optional)
)
```
## Pitfalls
- The widget renders nothing until an ad arrives (and nothing at all on errors or when there is no ad). Do not reserve fixed space you then cover.
- Pure Dart cannot read the package name, so pass `packageName` if you want the dashboard to confirm the SDK runs inside your store app.
- Impressions need at least 50% of the banner on screen (and inside any scroll view), the app resumed and its route on top, continuously for 1.5 s.
- Clicks open the external browser via url_launcher.
---
# CrossIndie React Native / Expo SDK
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
Pure JS/TS, no native modules: works in Expo Go, Expo dev builds and bare React Native. Not on npm yet; vendor it from the SDK repo (`lib/` is prebuilt):
```bash
npx degit Cross-Indie/sdks/react-native vendor/crossindie-react-native
npm install ./vendor/crossindie-react-native
npx expo install expo-application # optional: lets the SDK send your bundle id
```
The package name is `@crossindie/react-native`.
## Usage
```tsx
import { CrossIndieBanner } from "@crossindie/react-native";
```
Props: `appId` (required), `category` ("game" | "web_tool" | "saas" | "mobile_app", default "mobile_app"), `format` ("card" | "rectangle" | "leaderboard" | "mobile" | "text", default "card"), `apiBase` (default `https://api.crossindie.com`), `packageName` (auto from expo-application), `country`, `lang`, `visible` (boolean, default true), `closeable` (default true), `refreshSeconds` (optional rotation, min 30), `style`, `onAdLoaded`, `onNoAd`, `onImpression`, `onClick`, `onError`.
## Pitfalls
- With React Navigation, pass `visible={useIsFocused()}`: stacked screens stay mounted when hidden.
- The component returns null until an ad arrives and on any error.
- Impressions need non-zero size, at least 50% inside the window and the app active, continuously for 1.5 s.
- Clicks open the external browser via `Linking.openURL`.
---
# CrossIndie in Capacitor, Ionic and Cordova apps
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
There is no separate SDK: a hybrid app is a web page inside a WebView, so the web embed (see https://crossindie.com/docs/llms/web.md) works unchanged. Add it to `index.html`:
```html
```
## Single-page frameworks (Ionic Angular / React / Vue)
Load the script once in `index.html` and call `CrossIndie.initSlots("https://api.crossindie.com")` after the slot element mounts (`ngAfterViewInit`, `useEffect`, `onMounted`), or use `CrossIndie.createBanner({ el, appId, category: "mobile_app", format: "mobile", apiBase: "https://api.crossindie.com" })`.
## Pitfalls
- Banner links use `target="_blank"`. Capacitor opens them in the system browser. On Cordova keep `` in `config.xml` (or use cordova-plugin-inappbrowser).
- The WebView origin is `localhost` (`capacitor://localhost`, `https://localhost`, `http://localhost`). If you set Allowed web domains on the app, add `localhost`, or leave the list empty.
- Use category `mobile_app` (or `game` for games).
---
# CrossIndie Godot SDK (Godot 4.x)
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
1. Copy `addons/cross_indie/` from the SDK repo (https://github.com/Cross-Indie/sdks, folder `godot/`) into the project's `res://addons/`.
2. Enable it in Project > Project Settings > Plugins > CrossIndie.
3. Add a `CrossIndieBanner` node (it is a custom node type) to a UI scene.
## Configure
Exported properties: `api_base` (String), `app_id` (String), `category` (enum game | web_tool | saas | mobile_app), `auto_load` (bool, default true), `banner_format` (enum image | card | banner, default card).
```gdscript
@onready var banner := $CrossIndieBanner
func _ready() -> void:
banner.api_base = "https://api.crossindie.com"
banner.app_id = "YOUR_APP_ID"
banner.category = "game"
banner.banner_format = "card"
banner.auto_load = false
banner.ad_loaded.connect(func(ad_name): print("ad: ", ad_name))
banner.ad_failed.connect(func(reason): push_warning(reason))
banner.load_ad()
```
Method: `load_ad()`. Signals: `ad_loaded(ad_name: String)`, `ad_failed(reason: String)`, `impression_tracked`, `clicked`.
## Pitfalls
- The default `api_base` is `http://localhost:8000`. Always set it to `https://api.crossindie.com`.
- Set properties before `load_ad()`. With `auto_load = true` the ad is fetched in `_ready`, so set properties in the Inspector or before the node enters the tree.
- The node is a Control: give it a size (custom minimum size or a container). A zero-size node shows nothing.
- Impressions count only while `DisplayServer.window_is_focused()` is true and the node is visible.
- Web exports: requests are made from the browser, so the backend must allow your game's origin (CORS).
- Clicking opens the store page with `OS.shell_open()`.
---
# CrossIndie Unity SDK (uGUI)
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
Package Manager > Add package from disk > `com.crossindie.banner/package.json` from https://github.com/Cross-Indie/sdks (folder `unity/`), or copy `com.crossindie.banner` into the project's `Packages/`. Works from Unity 2021.3 LTS.
## Usage
1. Create a UI `RawImage` where the banner should appear.
2. Add the `CrossIndieBanner` component (namespace `CrossIndie`) to it.
3. Configure in the Inspector or from code.
Public fields: `apiBase` (string), `appId` (string), `category` (string: game | web_tool | saas | mobile_app), `autoLoad` (bool). Events: `onAdLoaded(string)`, `onAdFailed(string)`. Method: `LoadAd()`.
```csharp
using CrossIndie;
var banner = rawImage.gameObject.AddComponent();
banner.autoLoad = false;
banner.apiBase = "https://api.crossindie.com";
banner.appId = "YOUR_APP_ID";
banner.category = "game";
banner.onAdFailed.AddListener(reason => Debug.LogWarning(reason));
banner.LoadAd();
```
## Pitfalls
- Default `apiBase` is `http://localhost:8000`. Set it to `https://api.crossindie.com`.
- The component needs a `RawImage` on the same GameObject and a Canvas with a GraphicRaycaster plus an EventSystem in the scene, or clicks will not register (it implements `IPointerClickHandler`).
- Set fields before `LoadAd()`; with `autoLoad` the ad is requested in `Start`.
- Impressions count only while `Application.isFocused` is true.
- Clicks use `Application.OpenURL`.
- WebGL builds need the backend to allow your page's origin (CORS).
---
# CrossIndie Unreal Engine 5 plugin
## Concepts
- **app_id**: the id of your app, shown in the dashboard under My Apps (https://crossindie.com/dashboard/apps). It is public; it goes into your app, game or site code.
- **App API key** (`api_key`): secret, used only for the account API and the MCP server. Never put it in a shipped app, game or web page.
- **api_base**: `https://api.crossindie.com`.
- **category**: `game`, `web_tool`, `saas` or `mobile_app`. Games are shown only to games; web tools and SaaS share a pool.
- Every placed banner is an independent earning slot. An impression only counts after the banner has been visible for at least 1.5 seconds (while the window or app is focused). All credit and anti-fraud checks run on the server.
- New apps may need review before they are served. Check the app status in the dashboard.
- An app is promoted only once it is live on a store. For Google Play and App Store links the package (`play_package`) or numeric id (`appstore_id`) is derived from `target_url`; CrossIndie checks store liveness every 12 hours and shows `store_status` (live, not_found, error, unknown). Web apps do not need a store listing.
## Install
1. Copy `CrossIndie` from https://github.com/Cross-Indie/sdks (folder `unreal/CrossIndie`) into the project's `Plugins/` directory.
2. Regenerate project files and build. The plugin needs the `HTTP`, `Json` and `JsonUtilities` modules (already declared in its Build.cs).
3. Enable CrossIndie in Edit > Plugins and restart the editor.
## Usage
`UCrossIndieBannerComponent` is an ActorComponent. Properties: `ApiBase` (FString), `AppId` (FString), `Category` (FString, default "game"), `bAutoLoad` (bool). Delegates: `OnAdLoaded(Name, Description, BannerImageUrl, TargetUrl)` and `OnAdFailed(Reason)`. Functions: `LoadAd()`, `HandleClick()`. All are Blueprint-exposed.
```cpp
UCrossIndieBannerComponent* Banner = NewObject(this);
Banner->ApiBase = TEXT("https://api.crossindie.com");
Banner->AppId = TEXT("YOUR_APP_ID");
Banner->Category = TEXT("game");
Banner->bAutoLoad = false;
Banner->RegisterComponent();
Banner->OnAdLoaded.AddDynamic(this, &AMyHud::HandleAdLoaded); // UFUNCTION with (const FString&) x4
Banner->LoadAd();
```
## Pitfalls
- The component does not draw anything. Bind `OnAdLoaded`, download `BannerImageUrl` into a texture or brush, and render it in UMG.
- Call `HandleClick()` from your widget's click event; it opens the target URL and reports the click.
- Default `ApiBase` is `http://localhost:8000`. Set it to `https://api.crossindie.com`.
- Impressions accrue only while `FApp::HasFocus()` is true.
- Delegate handlers bound with AddDynamic must be UFUNCTIONs.
---
# CrossIndie Testers (free Google Play closed-testing exchange)
CrossIndie Testers is Android and Google Play only (there is no iOS/TestFlight exchange). Google Play requires new personal developer accounts to run a closed test with at least 12 opted-in testers for 14 continuous days before production access. CrossIndie Testers is a free exchange where indie developers test each other's apps. It cannot guarantee Google's approval; real use and real feedback are required.
Public pages: https://crossindie.com/testers, https://crossindie.com/testers/guide, https://crossindie.com/testers/12-testers-14-days, https://crossindie.com/testers/free-cross-test-android.
## Flow
1. Everyone joins one shared Google Group (`crossindie-testers@googlegroups.com`, https://groups.google.com/g/crossindie-testers) with the Gmail used on Google Play. Every listed app adds this group as its closed-test tester list.
2. **Test credits** are earned by testing other developers' apps in the open pool (daily check-ins, feedback in the first-impression window on days 1 to 2 and the day-7 window on days 7 to 9, and a completion bonus). They cannot be bought and are separate from ad credits.
3. **Program lifecycle**: `draft` (create, set `group_added`, add an app icon, upload a Play Console screenshot as setup proof) then `POST /activate` moves it to `pending_review`. An admin approves it: open-pool programs become `active`, squad programs become `approved` and may join a squad. A rejection returns it to `draft` with a `review_note`. A program paused by tester reports must be fixed and then `POST /reconfirm`.
4. **Pledge**: joining a program or a squad requires `{"pledge": true}`: the tester promises to stay opted in, keep the app installed and open it for the whole test.
5. A **squad** is 16 apps; the 16 owners test each other's 15 apps for 14 days. Entry costs credits (free while the community is small), refunded if you leave the queue first.
6. **Daily check-in**: `POST /enrollments/{id}/checkin`. Some days require proof: the response then has `checked_in: false` and `proof_required` of type `question` (resend with `answer`; 2 tries) or `screenshot` (use the multipart screenshot endpoint). Owners approve or reject screenshots; a rejection needs admin confirmation, and the tester may dispute once.
7. **Installed app required**: joining a program or a squad needs the CrossIndie app (PWA) installed on the tester's Android phone with notifications allowed; otherwise the API answers 403 with `detail.code: "install_app_required"` (`GET /config` returns `require_app`). Ask the user to do that on their phone, then retry. Daily check-ins are never blocked by this.
8. Strikes: 3 strikes block joining new tests. Reputation is shown publicly only as a tier (low, mid, high).
9. After a squad completes, members rate each other 1 to 5 stars.
10. Owners can open a production-access report with a ready summary and timeline: `GET /my/programs/{id}/report`.
11. Squad members can send each other short 1:1 text messages in the dashboard (squad peers only, up to 30 days after the squad ends; no links or contact details). Messaging is website-only.
## API (prefix https://api.crossindie.com/api/v1/testing)
Public: `GET /config`, `GET /stats`, `GET /programs?category=&q=&limit=&offset=`, `GET /programs/{slug}`, `GET /squads/current`.
Authenticated (cookie session):
- Profile and credits: `GET|PATCH /me`, `GET /credits/history` (returns `{balance, items}`).
- Owner: `POST /programs` (fields: name, package_name, category, mode `open|squad`, short_description, description, instructions, testers_needed 12..100 (default 12), days_required 14..30, group_added, proof_questions up to 5 as `{question, answers[]}`), `PATCH /programs/{id}`, `POST /programs/{id}/setup-proof` (multipart `file`), `POST /programs/{id}/icon` (multipart `file`: square PNG/JPEG/WebP, at least 256 px, max 1 MB; or set an https `icon_url`; required before `/activate`), `POST /programs/{id}/activate|reconfirm|pause|complete`, `DELETE /programs/{id}`, `GET /my/programs` (roster, pending_proofs, safety_margin, feedback), `GET /my/programs/{id}/report`.
- Owner review: `POST /proofs/{proof_id}/approve|reject`, `POST /enrollments/{id}/flag` with `{reason}` (squad programs allow only `no_feedback`, `low_quality_feedback`, `not_using_app`, `wrong_proofs`).
- Tester: `POST /programs/{id}/join` with `{pledge: true}`, `GET /my/enrollments`, `POST /enrollments/{id}/checkin` with `{answer?, feedback?, kind?}` (feedback 20 to 1000 characters; kind `auto|first_impression|day7|extra`), `POST /enrollments/{id}/checkin/screenshot` (multipart: `file`, optional `feedback`, `kind`), `POST /enrollments/{id}/leave`, `POST /proofs/{proof_id}/dispute`, `POST /programs/{id}/report` with `{reason, detail?}` (`cant_join_test`, `app_not_installable`, `cant_use_app` with detail `opens_browser|needs_account|paywall|crashes`, `link_wrong`, `inappropriate`). Owner: `POST /programs/{id}/fixed` closes fixable reports (and resumes a paused app); `test_access` (≤300 chars) on create/PATCH is shown only to enrolled testers.
- Squads: `POST /programs/{id}/squad/join` with `{pledge: true}`, `POST /programs/{id}/squad/leave`, `GET /my/squad`, `POST /squads/{squad_id}/rate` with `{target_user_id, stars}`.
Optional sign-in with Google: `POST https://api.crossindie.com/api/v1/auth/google` with `{id_token}`.
## Guidance for assistants
- Never fabricate testers or check-ins; the exchange only works with real use.
- Tell users it is free and that approval is up to Google.
---
# CrossIndie MCP server
Hosted MCP (Streamable HTTP): `https://api.crossindie.com/mcp`
Auth: **OAuth 2.1** (sign in with your CrossIndie account; used by claude.ai, Claude Desktop, ChatGPT and other
OAuth-capable clients), or a bearer API key for developer tools: `Authorization: Bearer `
(the account API key from https://crossindie.com/dashboard/integration).
## Connect with OAuth (no key: claude.ai, Claude Desktop, ChatGPT)
claude.ai / Claude Desktop:
1. Settings > Connectors > **Add custom connector**.
2. Name `CrossIndie`, Remote MCP server URL `https://api.crossindie.com/mcp`. Leave the advanced OAuth client id / secret empty.
3. Click **Add**, then **Connect**. A CrossIndie page opens: log in (or create an account) and press **Allow**.
4. In a chat, enable the CrossIndie connector (tools menu) and ask, e.g. "Add my app to CrossIndie".
ChatGPT: Settings > Apps & Connectors > Advanced: enable **Developer mode**, then **Create** a connector with the
URL `https://api.crossindie.com/mcp` and authentication **OAuth**. Connect, log in, Allow.
Disconnect any time: https://crossindie.com/dashboard/integration > Connected AI apps.
How it works (for client developers): `POST /mcp` without credentials answers 401 with
`WWW-Authenticate: Bearer resource_metadata="https://api.crossindie.com/.well-known/oauth-protected-resource"` (RFC 9728).
Authorization server metadata: `https://api.crossindie.com/.well-known/oauth-authorization-server` (RFC 8414).
Dynamic client registration: `POST https://api.crossindie.com/oauth/register` (RFC 7591, public clients, redirect URIs must be
https, loopback http, or a native app scheme). Authorization code flow with **PKCE S256** at
`https://api.crossindie.com/oauth/authorize` (the user consents on https://crossindie.com), tokens at `https://api.crossindie.com/oauth/token`
(`authorization_code`, `refresh_token`; access tokens last 1 hour, refresh tokens 30 days and rotate on
every use), revocation at `https://api.crossindie.com/oauth/revoke`.
## Connect with an API key (Claude Code, Cursor, other dev tools)
Claude Code:
```bash
claude mcp add --transport http crossindie https://api.crossindie.com/mcp --header "Authorization: Bearer YOUR_KEY"
```
Cursor (`~/.cursor/mcp.json`) / Claude Desktop (via mcp-remote):
```json
{
"mcpServers": {
"crossindie": {
"url": "https://api.crossindie.com/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}
```
```json
{
"mcpServers": {
"crossindie": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.crossindie.com/mcp", "--header", "Authorization: Bearer YOUR_KEY"]
}
}
}
```
## Tools
Adding an app (ad network):
- `list_my_apps`: list the account's apps with ids and status.
- `create_app`: register an app (needs a public store or website link). It is checked automatically: a link that isn't live and public comes back `rejected` with `review_feedback` and `next_steps`.
- `get_app_status`: review status + feedback, store check, ownership, SDK connection and a `next_steps` list. Use it to guide the user.
- `update_app`: change the link / name / description / category / tags. Editing a rejected app resubmits it.
- `verify_ownership`: Google Play apps. Without `code` it e-mails a 6-digit code to the developer address on the Play listing (instant if that is the account e-mail); call again with `code`.
- `get_integration_snippet`: ready code for an app and engine (web, godot, unity, unreal).
- `check_integration`: is the SDK calling us (works before approval too) and are ads showing.
- `get_app_stats`: impressions, clicks and credits for an app.
Free Testers (Google Play closed testing):
- `create_test_program`: list an Android app (draft). The icon and the Play Console screenshot are uploaded on the website.
- `verify_tester_group`: check the user's Play Gmail is in the tester Google Group (needed once before testing others).
- `list_testing_pool`: open-pool apps that need testers.
- `my_squad_today`: today's squad checklist.
- `answer_optin`: after opening an opt-in link, report "Become a tester" (true) or "App not available" (false).
- `testing_checkin`: record a daily check-in (only after the user really used the app).
- `my_testing_profile`: test credits, strikes and reputation tier of the account.
Treat the API key as a secret and never commit it.