You’ll need to authenticate your requests to access (some of) the endpoints in the WPLatest API. In this guide, we’ll look at how authentication works.

Bearer Token

When requesting resources, you will need your API key. This key is used to authenticate your requests. You can find your API key in the WPLatest dashboard.

Here’s how to add the API key to the request header using cURL:

curl https://wplatest.co/api/v1/... \
  -H "Authorization: Bearer wplatest_xxx"

Always keep your API key safe and reset it if you suspect it has been compromised.