Like almost every API, the ReadMe API requires you provide an API key in your requests to get responses. A ReadMe documentation project comes with an API key that anyone who uses the API to control the docs needs to use.
The ReadMe API uses basic authentication. Your API Key can be found by:
- Navigating to Configuration
- Selecting API Key
If you are using the Authorization header, the API Key will need to be encoded.
If you are using the
-user option, your project API key is your username and the password field is left blank.
If you're unfamiliar with API authorization, then follow these steps to get your API key and make a first test request to your project:
- Navigate to the API key of your project settings on the dash at
- Copy the API key (it is automatically generated when you first create the documentation project).
- If you don't already have Postman, download it at https://www.getpostman.com/downloads/.
You can use many different REST clients to make API requests. For example, in the command line, you can install and use cURL. For these instructions, we use Postman.
- Open the Postman app and create a new request. You can fill in the new request's name, description, and collection with any text, for example, "test."
- In your new request, insert the following endpoint into the field next to GET:
- In the Authorization tab (below the box where you inserted the endpoint), select Basic Auth from the Type dropdown.
- Insert your API Key into the Username field. Leave the Password field blank.
- Click Send.
The response appears in the lower pane. For example:
The response shows a list of the 10 most recent posts in your project's Changelog.
Updated 5 days ago