Using API Keys to access data in AbuseHQ

Overview

You can create and manage API Keys in AbuseHQ. Those API keys can be used to access HTTP resources of AbuseHQ. We are using standard JSON Web Tokens (JWTs). Authentication is done by adding the token in an authorization header to the HTTP request. The header should look like the following line; just replace it with the API Key created in AbuseHQ.

Auth Header

Authorization: Bearer <token>

The following is an example of how to use the API in python with the popular requests library:

import requests
import json
headers = {
    'Authorization': 'Bearer <API-KEY>',
    'Content-Type': 'application/json',
}
url = 'https://<YOURNAME>.abusehq.net/api/v1/networks/tags'
response = requests.request('GET', url, headers=headers)
print(response.text)

 

The API documentation can be found here: https://YOUR_INSTANCE_NAME.abusehq.net/api/v1/docs/

💡
Note: Some parts of the API documentation in /api/v1/docs/ may be deprecated and could be removed in the future. We will send notices to our customers when this happens.

 

Send us a message

Having trouble with your setup or a technical issue? Get in touch with our team of Abusix experts.

Click the chat button at the bottom and send us your questions. Alternatively, you can email us at [email protected]