post to api with key