AbuseHQ

support people
Welcome to the AbuseHQ Documentation, where you'll
find comprehensive guides and documentation to help you get started
working with AbuseHQ as quickly as possible, as well as advanced
know-how about how to get the most out of AbuseHQ.

Get Started    

Using API Keys to access AbuseHQ

This article explains how to use the API Keys for authorization

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

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/network/tags'
response = requests.request('GET', url, headers=headers)
print(response.text)

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

If you have any questions, ideas or remarks please feel free to reach out to us.