# Contacts API getting error 400

**URL:** <https://community.hubspot.com/t/contacts-api-getting-error-400/76631>\
**Category:** APIs & Integrations\
**Tags:** developer\
**Created:** [March 7, 2023, 2:07pm UTC](https://community.hubspot.com/t/contacts-api-getting-error-400/76631 "2023-03-07T14:07:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BPerz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bperz/32/52876_2.png) [@BPerz](https://community.hubspot.com/u/BPerz)\
**Post date:** [March 8, 2023, 6:32pm UTC](https://community.hubspot.com/t/contacts-api-getting-error-400/76631/3 "2023-03-08T18:32:03Z")

</div>

Thanks for asking Jaycee. Here are the additional details

For both the json files we are following the same process. I included a snip from the json file that is getting the 400 error also:

1. Endpoint: (This includes the request method, the endpoint URL, and any query parameters.)

url = ‘[https://api.hubapi.com/contacts/v1/contact/batch](https://api.hubapi.com/contacts/v1/contact/batch)’

r = requests.post(

url,

data=json.dumps(sub\_set),

headers=headers,

verify=False,

timeout=(5, 10),

stream=True

)

1. **Headers**

headers = {

‘Authorization’: “Bearer pat-na1-51fcebd9-\*\*\*\*-\*\*\*-\*\*\*\* -\*\*\*\*\*\*\*\*\*\*\*\*\*”,

‘Accept’: ‘application/json’,

‘Content-Type’: ‘application/json’,

}

1. the status code and full error body

status code: 400

full error body: b’{“status”:“error”,“message”:“property must be textual”,“correlationId”:“c134ccd5-a8e7-4d41-b374-a5084335223a”}

```lia-code-sample
[
 {
 "email": "09linecar@gmail.com",
 "properties": [
 {
 "property": "XlinkUserID",
 "value": 729015901
 },
 {
 "property": "register_time",
 "value": "2023-02-27"
 },
 {
 "property": "linked_alexa",
 "value": 0
 },
 {
 "property": "linked_googlehome",
 "value": 0
 },
 {
 "property": "dual_mode_soft_white_a19_0x80_",
 "value": 2
 },
 {
 "property": "zip",
 "value": null
 }
 ]
 },
 {
 "email": "114579088@qq.com",
 "properties": [
 {
 "property": "XlinkUserID",
 "value": 729014179
 },
 {
 "property": "register_time",
 "value": "2023-02-28"
 },
 {
 "property": "linked_alexa",
 "value": 0
 },
 {
 "property": "linked_googlehome",
 "value": 0
 },
 {
 "property": "n0x89_direct_connect_full_color_bulb__a19_",
 "value": 1
 },
 {
 "property": "zip",
 "value": null
 }
 ]
 },

```

---

_[View the full topic](https://community.hubspot.com/t/contacts-api-getting-error-400/76631)._
