Summary
In this chapter, we looked at working with the OpenAI API. We started with an introduction/review of what an API is and then we became familiar with the basics of the HTTP protocol. We reviewed the OpenAI API endpoints and covered how to access the API using basic authentication with an OpenAI API key and how to authenticate for an account with access to multiple organizations. From there, we learned about the JSON data-interchange format before learning how to make API calls to the Completions endpoint, the Engines endpoint, and the Semantic Search endpoint using Postman.
In the next chapter, we'll put the knowledge acquired in this chapter to work and dive into using code to call the API.