Skip to Content

Public M2M API — leads

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/leads

Exported methods: GET, POST

GET

  • Resource scopes: leads:read
  • Query parameters: limit, ownerUserId, page, status
  • Shared pagination: Yes
  • Explicit response statuses: 400
  • Explicit error codes: invalid_request

POST

  • Resource scopes: leads:write
  • Explicit response statuses: 201, 409, 422
  • Explicit error codes: conflict, invalid_request

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
contactEmailstringNoNo—email()
contactNamestringNoNo—min(1), max(200)
contactPhonestringYesNo—max(40)
notesstringYesNo—max(5000)
ownerUserIdstringYesNo——
sourceenumNoNoemail, call_in, call_out, web_form, booking, manual—

/api/v1/leads/{id}

Exported methods: GET, PATCH, DELETE

GET

  • Resource scopes: leads:read
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found

PATCH

  • Resource scopes: leads:write
  • Path parameters: id
  • Explicit response statuses: 404, 422
  • Explicit error codes: invalid_request, not_found

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
notesstringYesNo—max(5000)
ownerUserIdstringYesYes——

DELETE

  • Resource scopes: leads:write
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: ok

Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.

/api/v1/leads/{id}/activities

Exported methods: GET, POST

GET

  • Resource scopes: leads:read
  • Path parameters: id
  • Query parameters: limit
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: data

POST

  • Resource scopes: leads:write
  • Path parameters: id
  • Explicit response statuses: 201, 404, 422
  • Explicit error codes: invalid_request, not_found

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
authorIdstringYesNo——
directionenumYesNoinbound, outbound, system—
kindenumYesNoEMAIL_SENT, EMAIL_RECEIVED, CALL_IN, CALL_OUT, BOOKING_CREATED, BOOKING_COMPLETED, BOOKING_NO_SHOW, NOTE, STATUS_CHANGE, SCORE_RECALCULATED, SEQUENCE_ENROLLED, SEQUENCE_STEP_FIRED, SEQUENCE_STOPPEDdefault("NOTE")
metadataobjectYesNo——
refIdstringYesNo——
summarystringNoNo—min(1), max(4000)

/api/v1/leads/{id}/status

Exported methods: POST

POST

  • Resource scopes: leads:write
  • Path parameters: id
  • Explicit response statuses: 404, 422
  • Explicit error codes: invalid_request, not_found

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
statusenumNoNoNEW, QUALIFIED, NURTURE, WON, LOST—