Map your CRM users to DoubleTick agents

Links users in your CRM to the DoubleTick agents they sign in as, so they can open DoubleTick inside your CRM.

Before you call

  • identifier (your Custom CRM integration) and mappings (at least one) are required.
  • Each mapping has a crmUserId (up to 255 characters) and a doubleTickAgentNumber.
  • The Custom CRM integration must be connected and must have a List Users API configured.
  • Each crmUserId must appear in your List Users API response.
  • Your account needs permission to add integrations.
  • Write agent numbers with a leading + and country code. Numbers without + are also tried as Indian numbers.

How it works

  • This does the same as mapping agents by hand under Settings → Integrations → Custom CRM.
  • Until a CRM user is mapped, creating an embed login for them fails with 403 user_not_mapped.
  • Before mapping, DoubleTick calls your List Users API. If that call fails, this endpoint returns 502.
  • Each row is handled separately, and the response is 200 even if every row fails. Read mapped and failed, not just the status code.
  • Failed rows are listed in failures with a reason: invalid_phone_number, duplicate_crm_user, crm_user_not_found, agent_not_found or agent_already_mapped.
  • Only the first 100 failed rows are listed. When there are more, failuresTruncated is true.
  • You can safely re-send a batch. A new mapping replaces that CRM user's earlier one, including a mapping set by hand in the dashboard.
  • An agent can belong to only one CRM user. agent_already_mapped includes ownedByCrmUserId, the CRM user who holds that agent now.
  • Conflicts are checked against the mappings as they were before the call. A chain (A takes B's agent while B moves) needs the batch sent twice. A straight swap must be done in the dashboard.
  • This endpoint cannot remove a mapping.

Rate limit

  • 60 requests per minute.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
uuid
required

The Custom CRM integration's identifier, shown in DoubleTick under Settings → Integrations → Custom CRM → View integration details. The same value you pass when minting an embed token.

mappings
array of objects
required
length ≥ 1

One entry per CRM user to map. There is no fixed maximum; the request body is capped at 1 MiB, which is roughly 10,000 entries.

mappings*
string
required

Phone number of the DoubleTick agent this CRM user signs in as. The agent must be an active team member of your organisation (not an AI agent). Send the country code with a leading +, e.g. +919812345678 or +14155550100. Spaces and dashes are ignored. Indian numbers also work without the country code (9812345678). Numbers from any other country must include their country code: a US number sent as 4155550100 is read as an Indian number and the row fails with agent_not_found. A number with no + whose digits can be read both as an Indian number and as a full foreign number is looked up both ways; if the two readings match two different agents, the row fails with agent_not_found rather than guessing.

string
required
length ≤ 255

The user's id in your own CRM, exactly as your List Users API returns it.

Responses

mapped and failed. On a clean run only mapped and failed are present.

400

Request body failed validation, or the integration has no List Users API configured yet (list_users_api_not_configured).

401

Missing or invalid API key.

403

The integration is not connected (integration_disabled), or the API key’s user lacks permission to manage integrations.

404

No Custom CRM integration with this identifier exists in your organisation (integration_not_found).

413

Request body larger than 1 MiB.

502

Your List Users API could not be reached, returned an error, or returned an unexpected shape (EXTERNAL_API_ERROR).

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json