Objects
Create a contact
Create a contact in the tenant and project derived from the access token. Either email or phone must be provided.
Overview
Use this endpoint to create a contact with one or more properties. Include either an email property or a phone property. You can optionally create initial associations to existing records in the same request. It requires public api oauth access token authentication and the crm.contacts.write scope.
/api/objects/contactscURL
POSTcurl --request POST \ --url 'https://crm.notifyy.io/api/objects/contacts' \ --header 'Authorization: Bearer nfy_public_api_access_token' \ --header 'Content-Type: application/json' \ --data '{ "properties": [ { "internal_name": "firstname", "value": "Jane" }, { "internal_name": "email", "value": "jane@example.com" }, { "internal_name": "tags", "values": [ "vip", "newsletter" ] } ], "associations": [ { "to": { "object": "company", "id": "456" } }, { "to": { "object": "deal", "id": "789" } } ]}'Sample Request Body
{ "properties": [ { "internal_name": "firstname", "value": "Jane" }, { "internal_name": "email", "value": "jane@example.com" }, { "internal_name": "tags", "values": [ "vip", "newsletter" ] } ], "associations": [ { "to": { "object": "company", "id": "456" } }, { "to": { "object": "deal", "id": "789" } } ]}Sample Response
{ "success": true, "message": "Contact created successfully", "data": { "id": 999, "firstname": "Jane", "lastname": null, "email": "jane@example.com", "phone": null, "createdAt": "2026-07-31T10:15:30Z", "updatedAt": "2026-07-31T10:15:30Z" }}Status Codes
| Code | Description |
|---|---|
| 201 | Contact was created. |
| 400 | Request body is invalid, uses forbidden internal fields, or includes invalid associations. |
Headers
Public API OAuth bearer token.
Example: Bearer nfy_public_api_access_token
Request body media type.
Example: application/json
| Object | Description |
|---|---|
Authorization string | RequiredPublic API OAuth bearer token. Example: Bearer nfy_public_api_access_token |
Content-Type string | RequiredRequest body media type. Example: application/json |
Request body
Contact properties to create. At least one property is required, and the set must include either email or phone.
Internal property name. Forbidden internal fields such as cin and project_id are not allowed. The request must include either email or phone as one of the property names.
Example: firstname
Scalar property value.
Example: Jane
Multi-value property values.
Example: ["vip","newsletter"]
Associations to create along with the contact.
Associated object type, such as company or deal.
Example: company
Associated record ID. Must be numeric.
Example: 456
| Object | Description |
|---|---|
properties object[] | RequiredContact properties to create. At least one property is required, and the set must include either email or phone. |
properties[].internal_name string | RequiredInternal property name. Forbidden internal fields such as cin and project_id are not allowed. The request must include either email or phone as one of the property names. Example: firstname |
properties[].value any | OptionalScalar property value. Example: Jane |
properties[].values array | OptionalMulti-value property values. Example: ["vip","newsletter"] |
associations object[] | OptionalAssociations to create along with the contact. |
associations[].to.object string | RequiredAssociated object type, such as company or deal. Example: company |
associations[].to.id string | RequiredAssociated record ID. Must be numeric. Example: 456 |
Response fields
Whether the request succeeded.
Example: true
Human-readable result message.
Example: Contact created successfully
Contact record ID.
Example: 999
First name property value.
Example: Jane
Last name property value.
Email property value.
Example: jane@example.com
Phone property value.
Creation timestamp.
Example: 2026-07-31T10:15:30Z
Last update timestamp.
Example: 2026-07-31T10:15:30Z
| Object | Description |
|---|---|
success boolean | Whether the request succeeded. Example: true |
message string | Human-readable result message. Example: Contact created successfully |
data.id integer | Contact record ID. Example: 999 |
data.firstname string | null | First name property value. Example: Jane |
data.lastname string | null | Last name property value. |
data.email string | null | Email property value. Example: jane@example.com |
data.phone string | null | Phone property value. |
data.createdAt string<date-time> | Creation timestamp. Example: 2026-07-31T10:15:30Z |
data.updatedAt string<date-time> | Last update timestamp. Example: 2026-07-31T10:15:30Z |