Skip to content

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

Description

@xpfgg

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions