Testing your access token
Once you've created your access token, you can test it by sending a request to our health endpoint:
curl -X GET "https://api.intruder.io/v1/health/" \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"The response looks like this:
{
"status": "All is good!",
"authenticated_as": "<your email>"
}If authenticated_as shows your email address, your token is valid. If it says Not authenticated…, the token is missing, invalid, expired or revoked.
The health check doesn't check your plan or user role. To confirm you have full API access, try listing your targets with GET /v1/targets/.
You can now dive into the API reference.
Updated 2 days ago
Did this page help you?
