Description
Get all Accounts under the reseller's account.
URL
https://portal.phishingbox.com/api/v1/Account/all
Method
GET
URL Params
Required:
N/A
Optional:
N/A
POST Params
N/A
HTTP Headers
api-token: {api_token}
Success Response
Code: 200
{ "response_code": 200, "success": true, "data": [ { "account_id": "0", "date_created": "1970-01-31 11:48:39", "contact_name": "Jane Doe", "company": "Acme, inc.", "address": "P.O. Box 0001", "address_two": null, "city": "Portland", "state": "OR", "country": null, "zip": "12345", "account_type": "manual", "monthly_targets": "0", "monthly_fee": "0.00", "contact_phone": "(555) 555-5555", "billing_address": "P.O. Box 0001", "billing_address_two": null, "billing_city": "Portland", "billing_state": "OR", "billing_zip": "12345", "billing_country": null, "billing_name": "J DOE", "auth_email_from": "example@example.com", "auth_email_reply_to": "example@example.com", "auth_email_link_text": null, "paid_through": null, "is_active": "Yes", "default_time_zone": "-3", "default_test_length": "5", "default_cname": "example.com", "emails_per_hour": "3000", "allow_custom_attachment": "No", "seats_purchased": "60000", "account_license_type": "multi", "one_use_targets": "39", "default_excluded_ips": null, "default_ip_include_start": null, "default_ip_include_end": null, "msp_account_id": "0", "allotment_interval": "monthly", "api_token": null, "msp_percent": "0", "api_whitelist": "10.0.0.0, 11.0.0.0" }, "..." ] }
Error Response
Code: 401 Unauthorized
Content:
{ "response_code":401, "success":false, "error_message":"Invalid API user token", "data":[] }
Code: 403 Unauthorized
Content:
{ "response_code":403, "success":false, "error_message": "API Accessed from Unauthorized Location", "data":[] }
Notes
N/A
cURL Example
curl --location --request GET 'https://portal.phishingbox.com/api/v1/Account/all' \ --header 'api-token: 2c4763d7c10e1194c0070c7c17ab288823055edb'
Comments
0 comments
Please sign in to leave a comment.