Add client creation to api