# Custom Contact Properties

**URL:** <https://community.hubspot.com/t/custom-contact-properties/75815>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [February 23, 2023, 8:57am UTC](https://community.hubspot.com/t/custom-contact-properties/75815 "2023-02-23T08:57:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FarukhZahoor](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@FarukhZahoor](https://community.hubspot.com/u/FarukhZahoor)\
**Post date:** [February 23, 2023, 8:57am UTC](https://community.hubspot.com/t/custom-contact-properties/75815/1 "2023-02-23T08:57:12Z")

</div>

Hi, I have a website where people answer random questions. I want through latest API contact creation each question should be created as property name and each answer should be treated as property value.

please note questions are always random and thousands of questions can be asked. Please suggest how can I save multiple Q/A with single contact?

---

<div class="post-metadata">

**Author:** ![enrico\_baskey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/enrico_baskey/32/98852_2.png) [@enrico\_baskey](https://community.hubspot.com/u/enrico_baskey)\
**Post date:** [February 23, 2023, 11:41am UTC](https://community.hubspot.com/t/custom-contact-properties/75815/2 "2023-02-23T11:41:31Z")

</div>

Hello,

You can create properties through the API, and then fill the values.

Here is how you can create a property with the API:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-properties-v3%2Fguide)**

```lia-code-sample
POST https://api.hubapi.com/crm/v3/properties/contact
Authorization: Bearer {{apiToken}}
Content-Type: application/json

{
 "label": "{{question text}}",
 "value": "{{question_text}}",
 "type": "string",
 "fieldType": "text",
 "groupName": "contactinformation",
 "hidden": false,
 "displayOrder": 2,
 "hasUniqueValue": false,
 "formField": true
}

```

Here is how you can create a contact with the API:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-contacts-v3%2Fguide)**

You need to include atleast one of these properties: email, firstname, lastname to avoid duplicates.

And the **internal name** of the newly created property with the **value** key.

`POST https://api.hubapi.com/crm/v3/objects/contactsAuthorization: Bearer {{apiToken}}Content-Type: application/json{ "properties": { "email": "{{email}}", "{{question_text}}": "{{answer}}" }}`

Hope this helps, and if it does, please feel free to mark it as solution, so others can find it more easily. 🙂
