Create subaccount
documentedCreate a new sub-account.
POST /v1/public/subaccount/createAPI Subaccountsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.octopush.com/v1/public/subaccount/create" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "api-login: {{OCTOPUSH_API_LOGIN}}" \
-H "api-key: {{OCTOPUSH_API_KEY}}" \
-H "cache-control: no-cache" \
-d '{"first_name":"{{$first_name}}", "last_name":"{{$last_name}}", "password":"{{$password}}", "company_name":"{{$company_name}}", "callbacks": {"callback_url_for_inbounds":"{{$callback_url_for_inbounds}}", "callback_url_for_deliveries":"{{$callback_url_for_deliveries}}", "callback_url_for_visits":"{{$callback_url_for_visits}}", "callback_url_for_blacklisted_numbers":"{{$callback_url_for_blacklisted_numbers}}", "email_for_inbounds":"{{$email_for_inbounds}}"}}'