CrowBar | Account Contacts | Corvus Skip to main content

Account Contacts

An account's contacts are the brokers on it. One of them is the broker of record, the broker who created the account. You can add other brokers, and designate any of them as a servicing contact: the broker who handles the account day to day and receives its email.

How to call it

  • Send your API key and the user headers X-USER-EMAIL and X-USER-NAME, the same headers you use to create accounts. The call runs as that broker, on behalf of the broker of record (see Authentication).
  • An API key on its own is read-only. Every mutation on this page needs both user headers.

What a servicing contact is

When an account has servicing contacts, the account's email goes to them in place of the usual recipients. The broker of record is copied on the email unless you turn that off with copyBrokerOfRecord. An account without servicing contacts keeps its usual recipients.

Emails sent to servicing contacts
Email Includes Sent to servicing contacts at launch
Quote emails Submission received, declined, needs more info, quote ready and quote revised. Yes
Bind and policy documents Bind confirmation, subjectivity reminders and the policy documents, including the invoice. Yes
Renewals Pre-renewal solicitations, renewal notices and the auto-quoted renewal. Yes
Notices Rescission and non-renewal notices. Yes
Claim status Updates on a claim reported on the account. Yes
Scan and risk reports Scan results and risk reports for the account. No. These keep their existing recipients.

Copying the broker of record

copyBrokerOfRecord is a setting on each account. It defaults to true, so the broker of record is copied on the account's email while it has servicing contacts. To stop copying them, call setCopyBrokerOfRecord with false. The setting has no effect while the account has no servicing contacts.

Rules

  • A servicing contact must belong to the account's brokerage.
  • addBroker with servicing: true on a broker who is already a contact on the account marks them as servicing and changes nothing else.
  • addBroker without servicing behaves as it always has, including inviting a new user and sending them the registration email.
  • Removing a servicing contact removes them from the account and ends their servicing. The last broker on an account cannot be removed.
  • When the last servicing contact is removed, the account's email goes back to its usual recipients.
  • The setting is per account, and it also applies to the account's renewal email.
  • Only the account's broker of record can change copyBrokerOfRecord.
addBroker(clientId: $clientId, email: $email, name: $name, servicing: $servicing)
Method
POST
Endpoint
Sandbox: https://api-sandbox.corvusinsurance.com/q Production: https://crowbar.corvusinsurance.com/q
Authentication
Send the headers X-API-KEY, X-USER-EMAIL, X-USER-NAME with every request. See Authentication.
Adds a broker to the account, and invites them if they are new, which sends them the registration email. The invited user is placed at your brokerage.

Arguments for addBroker

Required Required to submit Optional

Pass these as variables.

addBroker arguments
Name Type Required Description
clientId ID! Required

Id of the account (see Create Client).

email String! Required

Email of the broker to add. A new email address invites a new user.

name String! Required

Name of the broker to add.

servicing Boolean Optional

Whether the broker is a servicing contact. Defaults to false. Passing true for a broker who is already a contact marks them as servicing.

Response fields for addBroker

Select only the fields you need in the selection set.

addBroker response fields
Name Type Description
id ID!

The broker that was added.

email String!

Email of the broker.

name String

Name of the broker.

removeBroker(clientId: $clientId, userId: $userId)
Method
POST
Endpoint
Sandbox: https://api-sandbox.corvusinsurance.com/q Production: https://crowbar.corvusinsurance.com/q
Authentication
Send the headers X-API-KEY, X-USER-EMAIL, X-USER-NAME with every request. See Authentication.
Removes a broker from the account. If they were a servicing contact, they stop receiving the account's email.

Arguments for removeBroker

Required Required to submit Optional

Pass these as variables.

removeBroker arguments
Name Type Required Description
clientId ID! Required

Id of the account (see Create Client).

userId ID! Required

Id of the broker to remove, as returned in accountContacts.

Response fields for removeBroker

Select only the fields you need in the selection set.

removeBroker response fields
Name Type Description
id ID!

The broker that was removed.

email String!

Email of the broker.

name String

Name of the broker.

setCopyBrokerOfRecord(clientId: $clientId, copyBrokerOfRecord: $copyBrokerOfRecord)
Method
POST
Endpoint
Sandbox: https://api-sandbox.corvusinsurance.com/q Production: https://crowbar.corvusinsurance.com/q
Authentication
Send the headers X-API-KEY, X-USER-EMAIL, X-USER-NAME with every request. See Authentication.
Only the broker of record can call this. Calling it again with the same value changes nothing.

Arguments for setCopyBrokerOfRecord

Required Required to submit Optional

Pass these as variables.

setCopyBrokerOfRecord arguments
Name Type Required Description
clientId ID! Required

Id of the account (see Create Client).

copyBrokerOfRecord Boolean! Required

Whether the broker of record is copied on the account's email while it has servicing contacts.

Response fields for setCopyBrokerOfRecord

Select only the fields you need in the selection set.

setCopyBrokerOfRecord response fields
Name Type Description
copyBrokerOfRecord Boolean!

The setting after the call.

client(id: $clientId)
Method
POST
Endpoint
Sandbox: https://api-sandbox.corvusinsurance.com/q Production: https://crowbar.corvusinsurance.com/q
Authentication
Send the headers X-API-KEY, X-USER-EMAIL, X-USER-NAME with every request. See Authentication.
Lists the account's contacts at your brokerage and reports the copyBrokerOfRecord setting. Select these fields on the client query, alongside any others you need (see Get Clients).

Arguments for accountContacts

Required Required to submit Optional

Pass these as variables.

accountContacts arguments
Name Type Required Description
id ID! Required

Id of the account (see Create Client).

Response fields for accountContacts

Select only the fields you need in the selection set.

accountContacts response fields
Name Type Description
copyBrokerOfRecord Boolean!

Whether the broker of record is copied on the account's email while it has servicing contacts. true unless it was changed.

accountContacts [AccountContact!]!

The account's contacts at your brokerage.

brokerOfRecord Boolean!

Whether the contact is the broker of record, the broker who created the account.

servicing Boolean!

Whether the contact is a servicing contact.

user User!

The contact.

id ID!

Id of the contact.

email String!

Email of the contact.

name String

Name of the contact.

Error cases

Errors come back in the response's errors list (see Errors).

Account contact error cases
When Error message
The account is outside your brokerage. Every operation on this page returns this, so a call does not reveal that the account exists. not_found
The contact you add has a role at another brokerage, as a broker or in any other role. Nothing changes. a role for this user already exists
You remove the last broker on the account. last broker cannot be removed
You call setCopyBrokerOfRecord as a broker who is not the broker of record. unauthorized
You send a mutation with only your API key. unauthorized