# POST-Request: Create Contact: Relate Contact to Company, but not by Name

**URL:** <https://forum.mautic.org/t/post-request-create-contact-relate-contact-to-company-but-not-by-name/24524>\
**Category:** Development\
**Tags:** community\
**Created:** [June 21, 2022, 11:52am UTC](https://forum.mautic.org/t/post-request-create-contact-relate-contact-to-company-but-not-by-name/24524 "2022-06-21T11:52:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ooralas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ooralas/32/7060_2.png) [@ooralas](https://forum.mautic.org/u/ooralas)\
**Post date:** [June 21, 2022, 11:52am UTC](https://forum.mautic.org/t/post-request-create-contact-relate-contact-to-company-but-not-by-name/24524/1 "2022-06-21T11:52:22Z")

</div>

Hi, does anyone know if it is possible to relate Contacts with Companies with the following Request [Mautic Developer Documentation](https://developer.mautic.org/#create-contact) ?  
Normally it is possible by adding company-parameter to the postdata like this:  
$contactData = [  
‘firstname’ =\> ‘John’,  
‘lastname’ =\> ‘Doe’,  
‘email’ =\> 'john@doe.com,  
‘company’ =\> ‘Company Name A’]  
But we have Companies that can share the same Company-Name, which is why we added an additional custom Field as unique identifier in Mautic GUI.  
Is it possible to define the Contact-Company-Relation during [Mautic Developer Documentation](https://developer.mautic.org/#create-contact) while using custom fields for the unique identifier instead of the companyname?
