Guides
Submitting your first deal
Send a sales lead to Karia by creating a contact and then an origination deal
Submitting Your First Deal
This guide shows the simplest sales lead flow: create the lead as a Karia contact, then create an origination deal connected to that contact.
Workflow
- Collect and validate the lead details from your form or sales intake flow.
- Create the contact in the target organisation and workspace.
- Use the returned
contact.data.idas thecontactIdfor the deal. - Create the origination deal with priority, follow-up, expected closure, salary, and sales context.
- Return a successful response only after both Karia records have been created.
Related OpenAPI Operations
Create the contact
Create the customer record first. The returned contact ID is required when you submit the deal.
POST
/organisation/{orgId}/workspace/{workspaceId}/contactAuthorizationv
{
"type": "Bearer API key"
}Pathv
Endpoint
/organisation/{orgId}/workspace/{workspaceId}/contact{
"orgId": "org_123",
"workspaceId": "workspace_123"
}Operation ID
contact.createBodyv
{
"firstName": "Jane",
"lastName": "Citizen",
"preferredName": "Jane",
"contactMethods": [
{
"value": "jane.citizen@example.com",
"type": "email"
},
{
"value": "+61400111222",
"type": "phone"
}
]
}Create the origination deal
Submit the sales lead as a deal once the contact exists. Use the created contact ID in the deal payload.
POST
/organisation/{orgId}/workspace/{workspaceId}/origination/dealAuthorizationv
{
"type": "Bearer API key"
}Pathv
Endpoint
/organisation/{orgId}/workspace/{workspaceId}/origination/deal{
"orgId": "org_123",
"workspaceId": "workspace_123"
}Operation ID
origination.deal.createBodyv
{
"name": "Jane Citizen",
"contactId": "contact_123",
"assignedTo": "00000000-0000-0000-0000-000000000000",
"priority": "high",
"expectedClosureDate": "2026-06-15T00:00:00.000Z",
"followUpDate": "2026-05-05T00:00:00.000Z",
"description": "New Deal for Jane Citizen, lease Term: 36 months, Annual KMs: 15000, Salary: 90000",
"employerName": "Example Employer",
"grossAnnualSalary": "90000"
}Create The Contact
Create the contact first so the deal can be linked to a known customer record. Include the lead's email and phone number as contact methods when you have them.
- Map the lead's legal name to
firstNameandlastName. - Use
preferredNamewhen the lead has supplied one; otherwise the first name is a sensible default. - Send any known email and phone values in
contactMethods. - Stop the flow if the contact create request returns an error.
Create The Deal
Once the contact exists, create the origination deal. The example below schedules follow-up for tomorrow and sets expected closure six weeks from submission.
- Set
contactIdto the ID returned by the contact create request. - Use a clear
nameanddescriptionso the Karia workspace can identify the lead. - Set
followUpDatebased on when your sales team should next act on the lead. - Set
expectedClosureDatebased on the expected sales cycle for the opportunity. - Replace placeholder
assignedToandemployerNamevalues with real workspace data before using this in production. - Return success to your caller only after the deal create request succeeds.

