For a non-superuser user to use the API, they must be granted special permission; this permission is associated with the group that the user is a member of. Go to the "Administration" -> "Administrators" -> "Groups" page, select the group that you just created (the one with the "DHCP-Admin" role), and edit it. Select the "Roles" tab (on the left) and then look for "Allowed Interfaces". For a user in this group to be able to use the API you must check the "API" checkbox. (If this group is only for API use then you can leave the "GUI" checkbox unchecked; then users in this group will not be able to login via the web interface.) Then click "Save and Close" to save the change to the group.