Using an Authorization helper

GET https://api.nasa.gov/planetary/apod

We are going to re-create the same request as the previous example, but this time using an Authorization helper. Using an Authorization helper allows us to [re-use the same authorization] throughout an entire collection, folder, or as seen here - a single request.

Add an Authorization helper

Under the Authorization tab, select API Key from the TYPE dropdown. Add your Key and Value here. In this example, we will configure the helper to add this data to Query Params. You can preview this under the Params tab.

Note: auto-generated query parameters and headers are included in the [Qodex-generated code snippets] but not included in the [Qodex documentation] rendered in the web.

If you want to be explicit in the documentation about required parameters, then manually add the parameters as shown in the previous example. If you want to be explicit in the documentation about required headers, then manually add a request header, as shown in the next example.

RESPONSES

status: OK

{"date":"2020-06-02","explanation":"Humanity is under attack. The attack is not from large tentacle-flailing aliens, but from invaders so small they can barely be seen, and so strange they are not even clearly alive.  All over planet Earth, the human home world, DNA-based humans are being invaded by the RNA-based SARS-CoV2.  The virus, which creates a disease known as  COVID-19, specializes in reprogramming human cells into zombies that manufacture and release copies of itself.   Pictured here is a high magnification image of a human cell covered by attacking novel coronavirus SARS-CoV2 (orange).  Epic battles where two species square off in a fight to the death are not unusual on Earth, with several just involving humans typically ongoing at any time.  Even so, most humans are predicted to survive. After several years, humanity expects to win this war -- but only after millions of humans have died and trillions of coronaviruses have been destroyed.   Wash your hands: Tips for humans on how to survive this SARS-CoV2 assault","hdurl":"https://apod.nasa.gov/apod/image/2006/SarsCov2_Niaid_4096.jpg","media_type":"image","service_version":"v1","title":"Novel Coronavirus Attacks Humanity","url":"https://apod.nasa.gov/apod/image/2006/SarsCov2_Niaid_960.jpg"}