# Rest API error 400

**URL:** <https://community.servicem8.com/t/rest-api-error-400/633>\
**Category:** API & SDK\
**Created:** [September 27, 2021, 8:18am UTC](https://community.servicem8.com/t/rest-api-error-400/633 "2021-09-27T08:18:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [September 27, 2021, 8:18am UTC](https://community.servicem8.com/t/rest-api-error-400/633/1 "2021-09-27T08:18:32Z")

</div>

**Originally posted by Dave**

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](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!
