A crm tool works on the CRM connected to your account. These two endpoints give you what its crmAction needs: the CRM’s id, and the fields the AI may read or update.
Requires a connected CRM
A CRM app connects itself to your Sendiee account. Connecting CRM apps is open to selected accounts for now. Until a CRM is connected, the provider list is empty and crm tools cannot be created.
List connected CRMs
GET/v2.0/tools/crm/providers
Returns the CRMs connected to your account. Use an id as crmAction.providerId. Scope: tools:read.
What the CRM supports: fields, lookup, update, task. A tool whose action the CRM does not support fails when the AI calls it.
lastSuccessAt / lastFailureAt
string | null
Optional
When Sendiee last reached the CRM, and when a call last failed.
lastError
string
Optional
The last failure, empty when the latest call worked.
Get a CRM’s fields
GET/v2.0/tools/crm/providers/:providerId/fields
Asks the CRM for the fields on its customer record. Copy the entries you want into crmAction.fields as { key, label, type, options }, and add a hint to tell the AI when to use each one. Scope: tools:read.
text | long_text | number | boolean | date | datetime | select | multi_select | email | phone | currency | name | person.
options
array
Required
For select and multi_select: the choices as { value, label }. Empty for other types.
read
boolean
Required
A lookup tool may use this field.
write
boolean
Required
An update tool may use this field. The CRM's admin allows it, and the type can be written: long_text, phone and person fields are read only.
Errors
Errors use the usual { error, code, message } shape.
Status
Code
Meaning
404
PROVIDER_NOT_FOUND
No CRM with this id on your account
403
FEATURE_NOT_ENABLED
CRM tools are not enabled for this account
409
PROVIDER_DISCONNECTED
The CRM is no longer connected. Reconnect it from the CRM
409
PROVIDER_DISABLED
The CRM is turned off
422
The CRM’s own code
The CRM refused the request; the message is the CRM’s
503
PROVIDER_UNREACHABLE
The CRM did not answer within 10 seconds. Try again later
503
PROVIDER_BAD_RESPONSE
The CRM answered with something Sendiee could not read
Building a crm tool step by step
1. GET /v2.0/tools/crm/providers and pick the CRM. 2. GET /v2.0/tools/crm/providers/:providerId/fields. 3. Create the tool with toolType: "crm" and the fields you chose. Creating a tool with a CRM that is not connected returns 422 with details[].codeCRM_PROVIDER_NOT_FOUND.