Create single link
const url = 'https://app.affisemmp.com/api/v2/client/single-links';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"b","android_app_id":16,"ios_app_id":16,"huawei_app_id":16,"samsung_app_id":16,"xiaomi_app_id":16,"oppo_app_id":16,"vivo_app_id":16,"custom_app_id":16,"android_storage_link_id":16,"ios_storage_link_id":16,"huawei_storage_link_id":16,"samsung_storage_link_id":16,"xiaomi_storage_link_id":16,"oppo_storage_link_id":16,"vivo_storage_link_id":16,"custom_storage_link_id":16,"destination_url":"http://bailey.com/"}'};
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://app.affisemmp.com/api/v2/client/single-links \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "b", "android_app_id": 16, "ios_app_id": 16, "huawei_app_id": 16, "samsung_app_id": 16, "xiaomi_app_id": 16, "oppo_app_id": 16, "vivo_app_id": 16, "custom_app_id": 16, "android_storage_link_id": 16, "ios_storage_link_id": 16, "huawei_storage_link_id": 16, "samsung_storage_link_id": 16, "xiaomi_storage_link_id": 16, "oppo_storage_link_id": 16, "vivo_storage_link_id": 16, "custom_storage_link_id": 16, "destination_url": "http://bailey.com/" }'Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
Must not be greater than 255 characters.
Example
bThis field is required when none of ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present. The id of an existing record in the applications table.
Example
16This field is required when none of android_app_id, ios_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, and custom_storage_link_id are present.
Example
16This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, and vivo_storage_link_id are present.
Example
16Must be a valid URL. Must not be greater than 1000 characters.
Example
http://bailey.com/Responses
Section titled “ Responses ”object
object
object
Example
{ "data": { "id": 92, "name": "Quos velit et.", "link": "https://trk.affattr.com/sl/129b23?clickid={clickid}&pid={pid}", "impression_link": "https://trk.affattr.com/sl/imp/129b23?clickid={clickid}&pid={pid}", "destination_url": "https://gaylord.com/modi-deserunt-aut-ab-provident-perspiciatis.html", "android_app_id": null, "ios_app_id": null, "huawei_app_id": null, "samsung_app_id": null, "xiaomi_app_id": null, "oppo_app_id": null, "vivo_app_id": null, "custom_app_id": null, "android_storage_link_id": null, "ios_storage_link_id": null, "huawei_storage_link_id": null, "samsung_storage_link_id": null, "xiaomi_storage_link_id": null, "oppo_storage_link_id": null, "vivo_storage_link_id": null, "custom_storage_link_id": null, "applications": [], "partners_single_links": [ { "partner_id": 1, "partner_name": "S.H.I.E.L.D", "single_link": "https://trk.affattr.com/sl/129b23?clickid={clickid}&pid=1", "impression_link": "https://trk.affattr.com/sl/imp/129b23?clickid={clickid}&pid=1" } ], "created_at": "2026-11-25T12:56:09Z", "updated_at": "2026-11-25T12:56:09Z" }, "message": "Single link successfully created."}