Why it matters

Without the header, everything your integration writes belongs to the user your client credentials are linked to, often a shared account such as a help desk user. Sales reps then see that account as the owner of their own calls and visits, activity counts credit the wrong person, and reps can't edit records they created.

Send the header

Put the dealer user's crmSeries email address in X-On-Behalf-Of, alongside your usual bearer token:

curl --request POST 'https://apiv2.crmseries.com/api/v2/notes' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'X-On-Behalf-Of: rep@yourdealer.com' \
  --header 'Content-Type: application/json' \
  --data '{ "companyId": 1234, "recordId": 1234, "recordType": "Company", "typeId": 2, "noteDate": "2026-10-19", "comments": "Called about the excavator quote" }'

The request then runs as that user. For this note, the user is its owner and is recorded as having entered it, so it counts toward their activity and they can edit it in crmSeries. Leave the header out and the request behaves exactly as before.

What the user is recorded as

  • Creating a record (for example a note): the user is the owner and the person who entered it.
  • Updating a record (for example a lead or contact): every field change in the record’s history is recorded under the user.
  • Updating an existing note: the note is re-assigned to the user, who becomes its owner and the person recorded as entering it. Use this to fix notes written before you started sending the header.
  • Reading a user’s own data (for example open activities): you get that user’s list instead of your client user’s.

The user's own settings also apply, such as their time zone for timestamps and the record access their role gives them.

Which operations accept it

Operations that accept the header list X-On-Behalf-Of as a header in the Parameters section of their API reference page. They include creating and updating notes, updating and acknowledging leads, updating contacts, creating, updating and completing tasks, and listing open activities. Other operations ignore the header and run as your client user.

Rules and errors

  • The header is only accepted with a bearer token obtained through client credentials.
  • The email must belong to exactly one active user in your dealership. Matching ignores upper and lower case and surrounding spaces.
  • There is no fallback: if the email can't be matched, the request is rejected and nothing is saved, rather than being saved under your client user.
400No active user has that email, or more than one does. The error message names the email.
403The header was sent with a credential other than a client-credentials token, such as an API key.
{
  "errors": [
    { "propertyName": "BAD_REQUEST", "errorMessage": "X-On-Behalf-Of: no active user has the email 'rep@yourdealer.com'." }
  ],
  "isSuccess": false,
  "message": "Invalid request."
}

Check who was recorded

The change log operation returns a record's history, newest first: who entered it, who changed each field, and the old and new values. Use it while testing to confirm your requests are credited to the right people.

curl 'https://apiv2.crmseries.com/api/v2/utility/change-logs?recordType=Lead&recordId=8224' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Updating a lead also acknowledges it

When you update a lead that hasn't been acknowledged yet, crmSeries acknowledges it as part of the update, under the user in X-On-Behalf-Of. A separate acknowledge request afterwards returns 400 because the lead is already acknowledged. If your workflow acknowledges a lead as its own step, send the acknowledge request before the update.

Using an API key instead

API keys don’t accept X-On-Behalf-Of. With an API key, send the user’s email in X-User-Email instead, as described in authentication.