Skip to main content
The User Management API keeps your Connectly users in step with your own system of record. Add people when they join, change their role when their job changes, remove them when they leave, and read an audit log of every change. It works with the same users and roles as the Users page in the dashboard. A change made through the API shows up there at once, and the other way round.

How it works

1

Create a User Management key

An Owner creates an API key with the User Management (user.manage) scope and nothing else. See Get an API key.
2

Read your current users

Call List users and compare the result with your system of record by email.
3

Apply the differences

Add the people who are missing, change the role of those whose job changed, and remove those who left. Owners are read-only through the API, so skip them.
4

Keep a record

Read the audit log to see every change, who made it, and the roles before and after.
The calls are safe to repeat. Adding someone who is already a user returns 409 and changes nothing; removing someone already removed returns 404.

Get an API key

Follow Authentication & API Keys with two differences:
  • You must be an Owner of the business.
  • Select the User Management (user.manage) scope only. It cannot be combined with other scopes; create a separate key for any other API.
  • A key without scopes does not work here, even though it has full access to the other APIs. Create a User Management key for this integration.
Send the key in the X-API-Key header on every request. What a User Management key can and cannot do: To stop an integration, revoke its key from Settings → General → API Key and Webhook Secret. A revoked key stops working within about a minute.

Base URL

businessId is your Connectly business ID, shown in Settings → General → Business Profile.

Users and roles

A user looks like this:
Each user has one role in the API. An older account with several roles stored reads as the first of them in the order Owner, Marketing, Analytics, Agent, which is also the role the dashboard shows.

Businesses with Enterprise SSO

If your business provisions users through SCIM, your identity provider stays in charge of the people it manages. Someone your identity provider removed cannot be added back through this API; restore them in the identity provider instead. Users you add through the API can sign in with SSO like anyone else.

Errors

Errors return a JSON body that carries an errorCode and a message, among other fields:
Match on the HTTP status and errorCode, not on message, which may change.

Rate limiting

Each endpoint is limited per business:
  • Add, update and remove: 60 requests per minute each.
  • List users, get a user and list audit events: 120 requests per minute each.
Exceeding a limit returns HTTP 429 Too Many Requests.