Skip to content

Commit

Permalink
Note about query parameters and api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jwcooper authored Jul 30, 2024
1 parent 01e83d1 commit c9b52c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/includes/_authentication.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ api = Adafruit::IO::Client.new key: api_key, username: username
When making HTTP requests to Adafruit IO, you can include the API key as a query parameter named `x-aio-key` or as a request header named `X-AIO-Key`. In both cases, "X-AIO-Key" is case insensitive.

**NOTE**: if you regenerate your AIO key, your old key will be immediately invalidated, so you'll have to replace it in any scripts or sketches where it is in use.

**NOTE**: it is a best practice to avoid including your API key in the URL as a query parameter. Some situations may require this, but try to avoid it if you can.

0 comments on commit c9b52c3

Please sign in to comment.