Objects
Create a lead
Create a lead in the tenant and project derived from the access token.
Overview
Use this endpoint to create a lead with one or more properties. Pipeline-aware objects use the public aliases pipeline and stage instead of internal ID fields. It requires public api oauth access token authentication and the crm.leads.write scope.
/api/objects/leadscURL
POSTcurl --request POST \ --url 'https://crm.notifyy.io/api/objects/leads' \ --header 'Authorization: Bearer nfy_public_api_access_token' \ --header 'Content-Type: application/json' \ --data '{ "properties": [ { "internal_name": "name", "value": "Acme Lead" }, { "internal_name": "status", "value": "new" }, { "internal_name": "pipeline", "value": "default_pipeline" }, { "internal_name": "stage", "value": "new_stage" } ], "associations": [ { "to": { "object": "company", "id": "456" } } ]}'Sample Request Body
{ "properties": [ { "internal_name": "name", "value": "Acme Lead" }, { "internal_name": "status", "value": "new" }, { "internal_name": "pipeline", "value": "default_pipeline" }, { "internal_name": "stage", "value": "new_stage" } ], "associations": [ { "to": { "object": "company", "id": "456" } } ]}Sample Response
{ "success": true, "message": "Lead created successfully", "data": { "id": 999, "name": "Acme Lead", "description": null, "leadSource": null, "status": "new", "source": null, "leadTemperature": null, "lastActivityTs": null, "createdAt": "2026-07-31T10:15:30Z", "updatedAt": "2026-07-31T10:15:30Z" }}Status Codes
| Code | Description |
|---|---|
| 201 | Lead was created. |
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
Lead properties to create. At least one property is required.
Internal property name. Use public aliases pipeline and stage instead of pipeline_id and stage_id.
Example: name
Scalar property value.
Example: Acme Lead
Associations to create along with the lead.
Associated object type.
Example: company
Associated record ID. Must be numeric.
Example: 456
| Object | Description |
|---|---|
properties object[] | RequiredLead properties to create. At least one property is required. |
properties[].internal_name string | RequiredInternal property name. Use public aliases pipeline and stage instead of pipeline_id and stage_id. Example: name |
properties[].value any | OptionalScalar property value. Example: Acme Lead |
associations object[] | OptionalAssociations to create along with the lead. |
associations[].to.object string | RequiredAssociated object type. 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: Lead created successfully
Lead record ID.
Example: 999
Lead name.
Example: Acme Lead
Lead status.
Example: new
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: Lead created successfully |
data.id integer | Lead record ID. Example: 999 |
data.name string | null | Lead name. Example: Acme Lead |
data.status string | null | Lead status. Example: new |
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 |