Account Management
Managing Sub-Accounts
Create Sub-Accounts API
8 min
overview the sub accounts api allows you to programmatically create and configure sub accounts under your primary momentscience account, when creating a sub account, you can define login credentials and basic profile details copy campaigns, snippets, and behavior settings from the parent account apply default configurations such as timezone, test mode, or delivery preferences this api is authenticated with a bearer token and requires the accounts permission scope prerequisites before you start, make sure you have an api key generated from the momentscience dashboard the api key must include the accounts permission scope docid\ cd0hkzwhbqxqwkyfo czg endpoint post https //api adspostx com/native/account json request headers true 145,100,100left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type query parameters use query parameters to inherit configurations from the parent account when creating a sub account true 209,209,209left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type request body true 178,75,100,100left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type example request example request curl x post "https //api adspostx com/native/account json?copyparentcampaigns=true\©parentsnippets=true" \\ h "authorization bearer \<your api key>" \\ h "content type application/json" \\ d '{ "email" "newuser\@example com", "password" "example123!", "confirmpassword" "example123!", "firstname" "jane", "lastname" "doe", "country" "us", "zipcode" "10001", "internalnotes" "partner onboarding", "settings" { "timezone" "america/new york" } }' api response once the success response 200 ok the api response includes data account contains the newly created sub account details, including fields provided in the request data settings contains the full configuration object for the sub account, including all default platform settings and feature flags { "status" "success", "data" { "account" { "id" 5074, "firstname" "jon", "lastname" "peter", "username" "newuser\@example com", "email" "newuser\@example com", "sdk id" "605590e3bc3863ca", "organization" "acme corp" }, "settings" { "no of ads" 3, "is active" true, "timezone" "america/los angeles", "delivery options" { "platform" { "mobile" 100, "tablet" 100, "desktop" 100, "unknown" 100 } } } } } π’ if you're running into any issues while going through the integration process, feel free to contact us at