# Retreive all accounts v2 The accounts GET endpoint retrieves all account information linked to a reseller. Endpoint: GET /api/v2/accounts Version: 2.0.0 Security: JWTAuth ## Response 200 fields (application/json): - `data` (array, required) - `data.attributes` (array) - `data.attributes.field_value` (string) Example: "Field1_Value_Sample" - `data.attributes.field_name` (string) Example: "Field1Name_Sample" - `data.status` (string) Enum: "active", "deactivated" - `data.account_id` (integer) Example: 1234567 - `data.campaign_id` (integer) Example: 7654321 - `data.phone` (string) Example: "1-888-266-6432" - `data.postal` (string) Example: "14607" - `data.state` (string) Example: "NY" - `data.last_name` (string) Example: "Williams" - `data.email` (string) Example: "info@semify.com" - `data.first_name` (string) Example: "Joe" - `data.account_name` (string) Example: "Semify" - `data.external_account_manager` (object) - `data.external_account_manager.name` (string) Example: "Account Manager" - `data.external_campaign_manager` (object) - `data.city` (string) Example: "Rochester" - `data.country` (string) Example: "USA" - `data.address_1` (string) Example: "123 Elm Street" - `data.address_2` (string) Example: "Suite B" - `data.website_url` (string) Example: "https://www.semify.com" - `error` (boolean, required) - `pagination` (object, required) - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) Example: 1 - `messages` (array, required) Example: ["Account created successfully."] ## Response 400 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Missing parameter"] ## Response 401 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Invalid Authorization"] ## Response 404 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Not Found"] ## Response 405 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Method Not Allowed"] ## Response 422 fields (application/json): - `data` (object, required) Example: {} - `error` (boolean, required) Example: true - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":0} - `pagination.totalPages` (integer) Example: 1 - `pagination.maxRows` (integer) - `pagination.offset` (integer) - `pagination.page` (integer) Example: 1 - `pagination.totalRecords` (integer) - `messages` (array, required) Example: ["Unprocessable Entity"]