Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New WPT requirement: API key should be in the headers #81

Open
xpfgg opened this issue May 16, 2024 · 1 comment
Open

New WPT requirement: API key should be in the headers #81

xpfgg opened this issue May 16, 2024 · 1 comment

Comments

@xpfgg
Copy link

xpfgg commented May 16, 2024

Hi team!

Client X received feedback from Catchpoint that the API key should now be part of the X-WPT-API-KEY header of a request rather than as a parameter in the query,

Opening this issue and will follow-up with a PR shortly!

Cheers!

Xavier

Full details from support:

There have been recent changes to our API key requirement, which may impact the way you interact with our services. Effective immediately, we have made updates to the way API keys are requested and utilized.

Previously, we allowed API keys to be included as a query parameter (k=) in API requests. However, to enhance security and streamline our processes, we have made the decision to enforce the inclusion of the API key exclusively in the header of the request.

As a result, the use of the k= parameter in API requests will no longer be accepted. Instead, API keys must now be included in the X-WPT-API-KEY header of the request.

Here is an example of how to structure your API request with the updated requirements:

curl -X GET -i GET 'https://www.webpagetest.org/runtest.php?url=www.example.com" -H "Accept: application/json, text/plain, /" -H "X-WPT-API-KEY: your-api-key-here" -H "Content-Type: application/json"

@xpfgg xpfgg changed the title New WPT requirement API key should be in the headers New WPT requirement: API key should be in the headers May 16, 2024
@xpfgg
Copy link
Author

xpfgg commented May 16, 2024

Added PR: #83 (just my 2cents, not tested)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant