# Add a new Contact
When you want to add new contact to the location services, you need to specify description about the contact such as first name, last name and email address.
To create a new contact, we'll be leveraging the POST /locations/contacts
endpoint.
# Building your request
Ensure that you authenticate the request with the JWT you've previously obtained, by passing the JWT as an Authorization
header.
Great, let's create a contact! All that you have to do now, is to tell us to process the request. To do so, we will call the POST /locations/contacts
endpoint to create a new contact.
This endpoint requires some additional core information, such as:
Contact attributes:
firstName
- First name of the Contact.lastName
- Last name of the Contact.emailAddress
- Email address of the Contact. This must be a unique and valid email address, not used by another contact.
# Sample request:
In our example, we're going to be creating a contact
# Sample response:
{
{
"data": {
{
"type": "contact",
"id": "1012940468872282112",
"attributes": {
"firstName": "karthik",
"lastName": "tam",
"emailAddress": "test@test.com"
}
}
}
}
}
# 🚀 ☀️ ⭐️ Congratulations! ⭐️ ☀️ 🚀
You have now created a contact and received the response, to help your users drive further goodness in the world!