createEndpoint