Discussions

Ask a Question
Back to All

Rest API error 400

I'm trying to get started using the REST api in python.

The following code is giving an error:

url = "https://api.servicem8.com/api_1.0/asset.json"

headers = {"Accept": "application/json"}

response = requests.request("GET", url, headers=headers, auth=('username', 'password'))

print(response.text)

The error:

{"errorCode":400,"message":"asset requires addon activation on this account prior to use"}

Please help!