The Prospect API manages the complete sales pipeline and opportunity workflow for prospects (leads and conversions). It covers prospect workflow creation and management, multi-stage customizable pipelines, automated and manual task handling, custom field definitions and values, lead-to-prospect conversion, meeting tracking, health scoring, and email notifications.
Base URL:https://api.altafid.dev.altafid.net
All requests require standard auth headers — see Authentication and Global Headers.
Key Concepts: A Prospect Workflow represents an opportunity (person or organization) moving through your sales pipeline. Each workflow progresses through customizable Stages, with automatic or manual Tasks assigned to drive progression. Custom Fields extend the data model, and health scoring identifies at-risk or hot opportunities.
Authentication and headers
All endpoints below require standard headers. x-tenant-uuid is mandatory and scopes every request to a single tenant.
Optimistic locking version for concurrent updates.
If-Match
optional
ETag for concurrency control.
Idempotency-Key
optional
Unique key for idempotent request handling.
Workflows
Manage prospect workflows through the sales pipeline. Workflows represent opportunities and progress through customizable stages with automatic task completion, status transitions, and comprehensive tracking.
List and create workflows
Endpoint
Purpose
GET/api/v1/prospect/workflows
List workflows with advanced filtering (table/kanban view). Supports pagination, sorting, filtering by stage, priority, status, date ranges, currency.
POST/api/v1/prospect/workflows
Create new workflow. Request: contactUuid, stageUuid, priority, opportunityValue, prospectDueDate, autoAdvance (optional), custom field values.
GET/api/v1/prospect/workflows/{workflowUuid}
Get complete workflow detail including stage state, custom fields, tasks, meetings, notes, and history.
PATCH/api/v1/prospect/workflows/{workflowUuid}
Update workflow. Can update: priority, opportunityValue, prospectDueDate, stageDueDate, auto-advance setting, and custom field values.
Define and manage custom fields to extend the prospect workflow data model. Custom fields can be text, numbers, dates, dropdowns, or multi-select with optional validation rules.
Add option to dropdown field. Request: optionLabel, optionValue.
Leads
Manage leads and convert them to prospects. Leads originate from external sources or manual entry and move through a lead-scoring workflow before conversion to prospects.
Endpoint
Purpose
GET/api/v1/prospect/leads
List leads with pagination and filtering by status, source, date range.
PATCH/api/v1/prospect/leads/{contactUuid}/status
Update lead status. Request: status (NEW, QUALIFIED, DISQUALIFIED, CONVERTED).
POST/api/v1/prospect/leads/{contactUuid}/convert
Convert single lead to prospect. Request: initialStageUuid, priority, opportunityValue (optional).
POST/api/v1/prospect/leads/bulk-convert
Bulk convert leads to prospects. Request: array of {contactUuid, initialStageUuid, priority, opportunityValue}.
Access a contact's current workflow and pipeline state. This endpoint provides a single contact's perspective on their prospect status in the pipeline.