handle response on config api