Developers

API reference

41 actions. Run any of them with POST /api/v1/actions/{name} and a JSON body. New keys can run the Read ones until you give them more.

add_job_indicator Write Add an indicator to a job (for example Follow Up Needed or Photos Uploaded). Service Plan indicators cannot be added by hand.
FieldTypeWhat it is
job_idRequired string Job UUID
indicator_id string Indicator template UUID from list_indicators
name string Indicator name when indicator_id is not known
notes string Optional note saved on this job indicator
Example
curl -X POST https://revdek.ai/api/v1/actions/add_job_indicator \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id"}'
check_availability Read Check whether a date/time slot is free (no overlapping jobs).
FieldTypeWhat it is
dateRequired string Date YYYY-MM-DD
timeRequired string Start time HH:MM
end_time string End time HH:MM (default 1 hour after start)
branch_id string Optional branch UUID
exclude_job_id string Ignore a specific job during validation
Example
curl -X POST https://revdek.ai/api/v1/actions/check_availability \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"date":"your_date","time":"your_time"}'
create_customer Write Create a new customer (not a lead). Requires name, phone, and address.
FieldTypeWhat it is
first_nameRequired string Customer first name
last_name string Customer last name
phoneRequired string US phone number
addressRequired string Service address
email string Email address
service_plan string Service plan label
notes string Notes
Example
curl -X POST https://revdek.ai/api/v1/actions/create_customer \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"first_name":"your_first_name","phone":"your_phone","address":"your_address"}'
create_invoice Write Create an invoice for a customer.
FieldTypeWhat it is
customer_idRequired string Customer UUID
amountRequired number Invoice service amount before discount and card fee
discount_percent number Discount percent 0-100
card_fee_percent number Card processing fee percent 0-100, applied after discount
due_date string Due date YYYY-MM-DD
status Paid, Unpaid Default Unpaid
Example
curl -X POST https://revdek.ai/api/v1/actions/create_invoice \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"customer_id":"your_customer_id","amount":1}'
create_job Write Book a new job for a customer.
FieldTypeWhat it is
customer_idRequired string Customer UUID
dateRequired string Job date YYYY-MM-DD
timeRequired string Start time HH:MM
end_time string End time HH:MM (defaults to 1 hour after start)
address string Job address (defaults to customer address)
service_type array Service types
price number Job price
notes string
crew array Assigned crew member names
salesguy string Sales rep name
role_assignments object Additional role assignments by role name
branch_id string Branch UUID when branch scheduling is in use
check_conflicts boolean Return scheduling conflicts before saving (default true)
Example
curl -X POST https://revdek.ai/api/v1/actions/create_job \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"customer_id":"your_customer_id","date":"your_date","time":"your_time"}'
create_lead Write Create a new sales lead.
FieldTypeWhat it is
first_name string
last_name string
phoneRequired string US phone number
addressRequired string Address
email string
lead_source string Source e.g. Door Knock, Google
estimated_value number
notes string
Example
curl -X POST https://revdek.ai/api/v1/actions/create_lead \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"phone":"your_phone","address":"your_address"}'
find_open_slot Read Find the next available appointment slot within the next N days.
FieldTypeWhat it is
days_ahead integer Days to search (default 7)
preferred_time string Preferred time HH:MM
Example
curl -X POST https://revdek.ai/api/v1/actions/find_open_slot \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
get_available_automations Read List automation types available in RevDek Customize.
FieldTypeWhat it is
category string Optional category filter: jobs, billing, sales, engagement
Example
curl -X POST https://revdek.ai/api/v1/actions/get_available_automations \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
get_business_information Read Read business name, contact information, logo, and business links.

This action takes no input.

Example
curl -X POST https://revdek.ai/api/v1/actions/get_business_information \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
get_business_settings Read Read business settings and public business information for the signed-in workspace.

This action takes no input.

Example
curl -X POST https://revdek.ai/api/v1/actions/get_business_settings \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
get_communication_settings Read Read connected communication provider status and company inbox settings.

This action takes no input.

Example
curl -X POST https://revdek.ai/api/v1/actions/get_communication_settings \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
get_company_provider_connections Read Read connected Blooio and Quo provider state for the workspace.

This action takes no input.

Example
curl -X POST https://revdek.ai/api/v1/actions/get_company_provider_connections \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
get_conversation_messages Read Get recent messages for a provider-backed customer conversation.
FieldTypeWhat it is
conversation_idRequired string Internal RevDek conversation UUID
limit integer
Example
curl -X POST https://revdek.ai/api/v1/actions/get_conversation_messages \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"conversation_id":"your_conversation_id"}'
get_customer_timeline Read Get recent timeline activity for a customer: jobs (with indicators), invoices, notes, and messages when available.
FieldTypeWhat it is
customer_idRequired string Customer id
limit integer Max items (default 25)
Example
curl -X POST https://revdek.ai/api/v1/actions/get_customer_timeline \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"customer_id":"your_customer_id"}'
get_job Read Get a single job with scheduling, assignment details, and current job indicators (names, notes, auto-managed flags).
FieldTypeWhat it is
job_idRequired string Job UUID
Example
curl -X POST https://revdek.ai/api/v1/actions/get_job \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id"}'
get_job_indicators Read Get the indicators currently on a job, including names, notes, and whether they are auto-managed.
FieldTypeWhat it is
job_idRequired string Job UUID
Example
curl -X POST https://revdek.ai/api/v1/actions/get_job_indicators \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id"}'
get_metrics Read Get business metrics: job counts, revenue, unpaid invoices, and lead pipeline summary.
FieldTypeWhat it is
start_date string Start date YYYY-MM-DD (default: 30 days ago)
end_date string End date YYYY-MM-DD (default: today)
Example
curl -X POST https://revdek.ai/api/v1/actions/get_metrics \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
get_notification_preferences Read Read the signed-in user notification preferences.

This action takes no input.

Example
curl -X POST https://revdek.ai/api/v1/actions/get_notification_preferences \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
list_automations Read List business automations available to the workspace (job reminders, invoice messages, and similar).
FieldTypeWhat it is
category string Optional category filter: jobs, billing, sales, engagement
Example
curl -X POST https://revdek.ai/api/v1/actions/list_automations \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
list_indicators Read List job indicator templates for this workspace (Follow Up Needed, Service Plan, Payment Collected, and custom indicators).

This action takes no input.

Example
curl -X POST https://revdek.ai/api/v1/actions/list_indicators \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
list_invoices Read List invoices, optionally filtered by status or customer.
FieldTypeWhat it is
status Paid, Unpaid, All Filter by status
customer_id string Filter by customer UUID
limit integer
Example
curl -X POST https://revdek.ai/api/v1/actions/list_invoices \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
list_recent_conversations Read List recent provider-backed customer SMS conversations for the company inbox.
FieldTypeWhat it is
provider blooio, quo Optional provider filter
limit integer
Example
curl -X POST https://revdek.ai/api/v1/actions/list_recent_conversations \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
list_service_types Read List workspace service types used on jobs and estimates, including the calendar color for each.

This action takes no input.

Example
curl -X POST https://revdek.ai/api/v1/actions/list_service_types \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
mark_invoice_paid Write Mark an invoice as paid and record a payment.
FieldTypeWhat it is
invoice_idRequired string Invoice UUID
payment_method string e.g. Cash, Card, Check
Example
curl -X POST https://revdek.ai/api/v1/actions/mark_invoice_paid \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"invoice_id":"your_invoice_id"}'
remove_job_indicator Write Remove an indicator from a job. Service Plan and Pending Service Plan indicators cannot be removed by hand.
FieldTypeWhat it is
job_idRequired string Job UUID
job_indicator_id string Attached job indicator UUID from get_job_indicators
indicator_id string Indicator template UUID
name string Indicator name when ids are not known
Example
curl -X POST https://revdek.ai/api/v1/actions/remove_job_indicator \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id"}'
search_customer_conversations Read Search provider-backed customer SMS conversations by customer name, phone, or message text.
FieldTypeWhat it is
queryRequired string Search query
provider blooio, quo Optional provider filter
limit integer
Example
curl -X POST https://revdek.ai/api/v1/actions/search_customer_conversations \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"query":"your_query"}'
search_customers Read Search customers by name, email, or phone. Returns matching customer records.
FieldTypeWhat it is
queryRequired string Name, email, or phone fragment to search for
limit integer Max results (default 20)
Example
curl -X POST https://revdek.ai/api/v1/actions/search_customers \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"query":"your_query"}'
search_jobs Read Search scheduled jobs by customer name, date, completion status, or job indicator (for example Follow Up Needed or Service Plan). Results include the indicators on each job.
FieldTypeWhat it is
date string Filter by date YYYY-MM-DD
customer_name string Customer name fragment
completed boolean Filter by completed status
indicator string Filter jobs that currently have this indicator name, e.g. Follow Up Needed
limit integer
Example
curl -X POST https://revdek.ai/api/v1/actions/search_jobs \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
send_customer_message Texting Send an SMS through the company connected Blooio or Quo account.
FieldTypeWhat it is
textRequired string Message text
conversation_id string Internal RevDek conversation UUID
provider blooio, quo Provider when multiple are connected
provider_conversation_id string Provider-native conversation id
to string Recipient phone number when no conversation is provided
idempotency_key string Optional idempotency key for retries
Example
curl -X POST https://revdek.ai/api/v1/actions/send_customer_message \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"text":"your_text"}'
send_sms Texting Send an SMS through the company connected Blooio or Quo account.
FieldTypeWhat it is
to string Recipient phone number
bodyRequired string Message text
provider blooio, quo Provider when multiple are connected
conversation_id string Internal RevDek conversation UUID
Example
curl -X POST https://revdek.ai/api/v1/actions/send_sms \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"body":"your_body"}'
transition_job_status Write Mark a job as completed or reopen it.
FieldTypeWhat it is
job_idRequired string Job UUID
completedRequired boolean true to mark complete, false to reopen
Example
curl -X POST https://revdek.ai/api/v1/actions/transition_job_status \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id","completed":true}'
update_calendar_job_colors Write Turn Scheduling calendar job colors on or off, and set colors for paid/completed jobs and multiple jobs. Off by default.
FieldTypeWhat it is
enabled boolean When true, color jobs by service type on Scheduling
paid_job_color string Hex color (#RRGGBB) for completed and paid jobs
multiple_jobs_color string Hex color (#RRGGBB) for multi-service jobs and multi-job month cells
Example
curl -X POST https://revdek.ai/api/v1/actions/update_calendar_job_colors \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{}'
update_job_assignment Write Assign or reassign crew members, sales rep, roles, or branch on a job.
FieldTypeWhat it is
job_idRequired string Job UUID
crew array Crew names
salesguy string Sales rep name
role_assignments object Additional role assignments
branch_id string Branch UUID
Example
curl -X POST https://revdek.ai/api/v1/actions/update_job_assignment \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id"}'
update_job_details Write Update editable job details such as address, services, price, or customer.
FieldTypeWhat it is
job_idRequired string Job UUID
customer_id string New customer UUID
address string
service_type array
price number
Example
curl -X POST https://revdek.ai/api/v1/actions/update_job_details \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id"}'
update_job_indicator_notes Write Update or clear the note on an indicator attached to a job.
FieldTypeWhat it is
job_idRequired string Job UUID
job_indicator_id string Attached job indicator UUID from get_job_indicators
indicator_id string Indicator template UUID
name string Indicator name when ids are not known
notes string Replacement note. Empty or omitted clears the note.
Example
curl -X POST https://revdek.ai/api/v1/actions/update_job_indicator_notes \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id"}'
update_job_notes Write Update job notes.
FieldTypeWhat it is
job_idRequired string Job UUID
notesRequired string Notes text
Example
curl -X POST https://revdek.ai/api/v1/actions/update_job_notes \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id","notes":"your_notes"}'
update_job_schedule Write Reschedule a job and optionally validate conflicts before saving.
FieldTypeWhat it is
job_idRequired string Job UUID
dateRequired string New date YYYY-MM-DD
timeRequired string New start time HH:MM
end_time string New end time HH:MM
dry_run boolean Validate only without saving
Example
curl -X POST https://revdek.ai/api/v1/actions/update_job_schedule \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id","date":"your_date","time":"your_time"}'
update_job_status Write Mark a job as completed or reopen it.
FieldTypeWhat it is
job_idRequired string Job UUID
statusRequired open, completed Set job to open or completed
Example
curl -X POST https://revdek.ai/api/v1/actions/update_job_status \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"your_job_id","status":"your_status"}'
update_lead_stage Write Move a lead to a new pipeline stage by customer ID.
FieldTypeWhat it is
lead_idRequired string Lead customer UUID
lead_statusRequired new, contacted, quoted, won, lost, follow_up One of: new, contacted, quoted, won, lost, follow_up
Example
curl -X POST https://revdek.ai/api/v1/actions/update_lead_stage \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"lead_id":"your_lead_id","lead_status":"your_lead_status"}'
update_notification_preferences Write Update the signed-in user notification preferences.
FieldTypeWhat it is
updatesRequired object Map of notification category keys to in_app booleans
Example
curl -X POST https://revdek.ai/api/v1/actions/update_notification_preferences \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"updates":"your_updates"}'
update_service_type Write Update a service type’s calendar color, name, description, price, or whether it is shown in pickers.
FieldTypeWhat it is
service_type_idRequired string Service type UUID
color string Calendar color as #RRGGBB
name string Display name
description string or null
price number or null
enabled boolean
Example
curl -X POST https://revdek.ai/api/v1/actions/update_service_type \
  -H "Authorization: Bearer rdk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"service_type_id":"your_service_type_id"}'