# 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:** 3\
**Page:** 1

<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 7, 2023, 2:07pm UTC](https://community.hubspot.com/t/contacts-api-getting-error-400/76631/1 "2023-03-07T14:07:04Z")

</div>

Using 2 identically formatted JSON files for loading contacts using Contacts API. One file loads with no issues, the other file is getting 400 error. The files look identical. Has anyone had this issue or can offer advice. We are using the V1 version of the API.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 8, 2023, 5:46pm UTC](https://community.hubspot.com/t/contacts-api-getting-error-400/76631/2 "2023-03-08T17:46:55Z")

</div>

Hi, @BPerz. Can you share an example request and response? This helps the community try to reproduce the issue. Otherwise, there likely isn’t enough information to offer a suggestion or guess.

Best,

Jaycee

---

<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
 }
 ]
 },

```
