```func NewHandler() *Handler { conf := ory.NewCo...
# ory-network
b
Copy code
func NewHandler() *Handler {
	conf := ory.NewConfiguration()
	conf.Servers = ory.ServerConfigurations{{
		URL: "<https://xxxx.projects.oryapis.com>",
	}}
	logger := log.New(os.Stderr, "app: ", log.LstdFlags|log.Lshortfile|log.Llongfile)
	oryAuthedContext := context.WithValue(context.Background(), ory.ContextAccessToken, "ory_pat_")
	return &Handler{
		ApiClient: ory.NewAPIClient(conf),
		ctx:       oryAuthedContext,
		logger:    logger,
	}
this is how am creating the api client
but all methods throws 400 bad request
am i doing something wrong in my end
Copy code
ory "<http://github.com/ory/client-go|github.com/ory/client-go>"
am using the latest sdk v1.1.4
am totally stuck at this point
Copy code
.
Solved it…