# Create a new account Creates a new account. This endpoint requires JWT authentication. Endpoint: POST /api/v1/accounts Version: 2.0.0 Security: JWTAuth ## Request fields (application/json): - `account_name` (integer, required) Example: 12345 - `phone` (string, required) Example: "3361231234" - `email` (string, required) Example: "business@business.com" - `first_name` (string, required) Example: "First" - `last_name` (string, required) Example: "last" - `address_1` (string, required) Example: "2307 West Cone Blvd." - `address_2` (string, required) Example: "Suite 200" - `city` (string, required) Example: "Greensboro" - `state` (string, required) Example: "NC" - `postal` (string, required) Example: "27410" - `website_url` (string, required) Example: "https://www.semify.com" - `external_account_identifier` (object) - `external_account_identifier.field_name` (string) Example: "Great Plains ID" - `external_account_identifier.field_value` (string) Example: "TestAccount5555" ## Response 200 fields (application/json): - `data` (object, required) Example: {"account_id":123456,"campaign_id":987654} - `data.account_id` (integer) Example: 123456 - `data.campaign_id` (integer) Example: 987654 - `error` (boolean, required) - `pagination` (object, required) Example: {"totalPages":1,"maxRows":0,"offset":0,"page":1,"totalRecords":1} - `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 successfully created"] ## 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 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"]