Create application with APK upload
const url = 'https://mmp.affise.com/api/v2/upload/applications';const form = new FormData();form.append('store', 'null');form.append('url', 'null');form.append('apple_id_package', 'example');form.append('package_name', 'com.example.app');form.append('package_description', 'My application description');form.append('timezone', 'Europe/Moscow');form.append('app_status', 'apk');form.append('currency', 'USD');form.append('name', 'My App');form.append('icon', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...');form.append('client_url', 'example');form.append('apk', 'file');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://mmp.affise.com/api/v2/upload/applications \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form store=null \ --form url=null \ --form apple_id_package=example \ --form package_name=com.example.app \ --form 'package_description=My application description' \ --form timezone=Europe/Moscow \ --form app_status=apk \ --form currency=USD \ --form 'name=My App' \ --form 'icon=data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...' \ --form client_url=example \ --form apk=@fileCreate a new application with APK file upload support. This endpoint uses upload token (JWT) passed as Bearer token instead of standard Sanctum token.
Base URL: https://mmp.affise.com
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
The application store. Must be one of: google, apple, huawei, xiaomi, rustore, nashstore, other. Must be left out when app_status is “apk”.
Example
nullThe store URL for the application. Required unless app_status is “apk” or “not_published”.
Example
nullRequired if store is “apple”. The Apple bundle identifier.
The application package name.
Example
com.example.appThe application description.
Example
My application descriptionThe timezone for the application.
Example
Europe/MoscowThe application status. Must be one of: in_store, not_published, apk.
Example
apkThe currency ISO code.
Example
USDThe application name.
Example
My AppThe application icon as a base64 data uri.
Example
data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...The client URL.
Required if app_status is “apk”. The APK file to upload.
Responses
Section titled “ Responses ”object
object
object
object
object
object
object
object
Example
{ "data": { "id": 383, "status": "active", "store": "telegram", "url": "https://t.me/+G-SOmeChaNNeluRl", "client_id": 1, "package_name": "Velit et.", "package_description": "SAID was, 'Why is a very interesting dance to watch,' said Alice, as she spoke; 'either you or your head must be on the floor, as it left no mark on.", "timezone": "America/La_Paz", "app_status": "at_store", "currency": "MNT", "currency_iso": "MNT", "name": "architecto eius et", "icon": "https://downloads.affattr.com/public/applications/icons/icon.jpeg", "is_default": false, "secret_key": "ca3d0f20-5b17-4258-9fec-f8067bbd9caa", "api_secret_key": null, "token": "0O3GGDESDR2PH", "agency_invite_token": "8Z6BU87RBSJSR", "is_active": true, "decryption_key": null, "fb_app_id": null, "fb_meta_pixel_id": null, "fb_access_token": null, "fb_pixel_access_token": null, "fbc_api_enabled": null, "fbc_api_events": null, "fbc_api_events_mapping": null, "fb_marketing_events_mapping": null, "fb_pixel_events_mapping": null, "fbc_api_value": null, "fbc_api_send_organic": null, "use_pixel_api": null, "market_is_active": null, "market_last_error": null, "pixel_is_active": null, "pixel_last_error": null, "fb_send_organic": false, "fb_send_googleads": false, "fcm_key": null, "created_at": "2026-11-25T12:56:09.000000Z", "updated_at": "2026-11-25T12:56:08Z", "probabilistic": true, "apple_s2s_tracking_url_v1": null, "apple_s2s_tracking_url_v2": null, "cross_postback_url": null, "default_postback_url": null, "rejected_postback_url": null, "postback_url": null, "send_organic": false, "cross_postback_for_all_conversions": false, "secure_code": null, "fingerprint_available": null, "device_id_available": null, "impression_fingerprint_available": null, "impression_device_id_available": null, "re_attribution": null, "is_google_adwords_enabled": false, "sdk_callback": null, "anti_fraud_settings": { "social_traffic": null, "emulators": null, "ctit_sec": null, "session_count": null, "session_sec": null, "proxy": null, "24metrics_enabled": null, "24metrics_level": null }, "google_ads_attribution": { "api_events_mapping": null, "link_id": null }, "google_firebase_attribution": { "project_id": null }, "subscriptions": { "saved": null, "urls": null, "secure_code": "6RSDa5", "paddle": { "has_webhook_secret": false } }, "settings": [], "signature": { "apk_signing_mode": "per_app", "active_source": "default_shared", "ks_key_alias": null, "cert_sha256": null }, "storages_links": [] }, "message": "Application successfully created"}