👋 How can we help you?

Using API Keys to access AbuseHQ

You can create and manage API Keys in AbuseHQ. (Settings - API Keys) Those API keys can be used to access HTTP resources of AbuseHQ.

Last updated on Invalid Date

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 using the token and adding it in an authorization header to the HTTP request. The header should look like the following line; just replace 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/

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

Did this answer your question?
😞
😐
🤩