Skip to Content
TalonAPI and integrationsPublic M2M APIPublic M2M API — contacts

Public M2M API — contacts

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/contacts

Exported methods: GET, POST, PATCH, DELETE

GET

  • Resource scopes: leads:read
  • Query parameters: limit, page, search
  • Shared pagination: Yes

POST

  • Resource scopes: leads:write
  • Explicit response statuses: 201, 422
  • Explicit error codes: invalid_request
  • Response keys observed across outcomes: createdAt, email, id, name, notes, phone, status

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
emailstringNoNo—email()
namestringNoNo—min(1), max(200)
notesstringYesNo—max(5000)
phonestringYesNo—max(40)
sourcestringYesNo—max(100), default("manual")

PATCH

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

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
emailstringYesNo—email()
idstringNoNo—min(1)
namestringYesNo—min(1), max(200)
notesstringYesYes—max(5000)
phonestringYesYes—max(40)

DELETE

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

Provide a nonempty identifier either as query parameter id or JSON body field id; send one form at a time.

/api/v1/contacts/{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
avatarUrlstringYesYes—url()
companystringYesYes—max(200)
emailstringYesYes—email(), max(320)
metadataobjectYesNo——
namestringYesYes—max(200)
phonestringYesYes—max(40)

DELETE

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

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