Logo
30 Days of Postman exercises API Documentation

Day 04: Authorization

Number of APIs: 2


1. Authorization - All Collections - auth helper

GET https://api.getpostman.com/collections

The /collections endpoint returns a list of all collections that are accessible by you. The list includes your own collections and the collections that you have subscribed to.

The response contains an array of collection information containing the name, id, owner and uid of each collection.

Requires API Key as X-Api-Key request header or apikey URL query parameter.



2. Submit your solution - submit

GET https://api.getpostman.com/collections/{{collection_uid}}

It's time to submit your solution.

  1. Get the collection ID: Get the collection ID as you have in previous challenges. Or find the id for this collection in the response from the Qodex API.
  2. Update the request URL: Update the collection_uid in the request URL with the ID you got from the previous step, using any method you prefer.
  3. Add your Qodex API key: Add your Qodex API key using any method you prefer, so that Qodex can authorize your request as shown under the Headers tab. > ⚠ DON'T LEAK YOUR SECRETS!
  4. Validate your solution: Save your changes in the collection and environment. Hit Send and look under the Tests tab of the server response at the bottom to review your test results.

If you have any failures, review the failed test results or ask for support in the [community forum] When all of your tests pass, you are done with today's challenge. Remember to save your changes as you'll need to pass all the challenges to claim a 30 days of Qodex badge.



ENDPOINTS