Common Room API
Connect Common Room integrations to Datum and review endpoint compatibility.
Overview
Datum fully supports Common Room’s Core API v1 at /community/v1. It partially supports API v2 at /api/v2.
Integrations that push from Zapier, Segment, workflow tools, or your backend can use Datum’s base URL and key. Most API v2 reads also work.
Datum checks both interfaces against Common Room’s published specifications. It accepts documented requests and validates responses against their schemas. Documented endpoints that Datum doesn’t support return 501 with an explanation, never 404. A path Common Room doesn’t document either returns 404.
The event catalogue describes commonroom.* topics for existing webhook consumers.
Configure
Change the base URL
Replace
https://api.commonroom.io/community/v1withhttps://<your-ocmgr-host>/community/v1.Swap the token
Replace the Common Room token with a Datum API key that has Read and write access. Create the key under Settings → Access, or at a terminal:
ocmgr apikey create --scopes read,write --name "zapier" --jsonCheck it worked
Run this request:
curl "https://<host>/community/v1/api-token-status" -H "Authorization: Bearer $OCMGR_API_KEY"The response identifies your key as
jti. It identifies your workspace ascommunityIdandcommunityName.
What is drop-in
| Endpoint | Notes |
|---|---|
GET /api-token-status |
Returns your key and workspace with Common Room’s field names. |
POST /source/{destinationSourceId}/user |
Maps or retains every documented field. Returns 202. Repeated requests are safe. |
POST /source/{destinationSourceId}/activity |
Also records the activity. Deduplicates by activity type and ID, as Common Room documents. |
GET /activityTypes |
Returns documented types and every type your workspace has received. |
GET /members?email= (or twitter, github, linkedin, discord) |
Returns the documented contact array. |
GET /user/{email} |
Returns [{id}] with member_id. |
DELETE /user/{email} |
Erases immediately without queuing. Requires an Admin key. |
GET /members/customFields |
Returns custom fields from your pushes. |
GET /segments, GET /segments/{id}/status |
Returns segments and their member counts. |
POST /segments/{id} |
Adds contacts to a segment by email or social handle. |
GET /tags, GET /tags/{id}, POST /tags, POST /tags/{id}, DELETE /tags/{id} |
Lists, creates, renames, and deletes tags. |
Contacts include member_id; segments include segment_id. Other Datum endpoints accept these IDs. Compatibility responses also provide stable integers where Common Room uses integer IDs.
Use member_id with other Datum member endpoints.
Request bodies
Send JSON with Content-Type: application/json and the same bearer key used above. The following writes require write scope.
Push a contact
curl -X POST "$OCMGR_URL/community/v1/source/product-signups/user" \
-H "Authorization: Bearer $OCMGR_API_KEY" -H 'content-type: application/json' \
-d '{"id":"user-123","fullName":"Ada Lovelace","email":"[email protected]","github":{"type":"handle","value":"ada"},"tags":[{"type":"name","name":"champion"}]}'
id is necessary. It accepts a string or a number. Reuse the source ID and contact ID when updating the same account.
| Optional field | JSON shape |
|---|---|
fullName, firstName, lastName, username, email, avatarUrl, bio |
String or null |
companyName, companyDomain, roleAtCompany, titleAtCompany |
String or null |
country, city, region, rawLocation |
String or null |
github, twitter, linkedin |
{"type":"handle","value":"ada"}; value is necessary, type is optional |
discord |
{"username":"ada","discriminator":"1234"}; both fields and type are optional |
externalProfiles |
[{"url":"https://example.com/ada","name":"Profile"}]; name is optional |
tags |
[{"type":"name","name":"champion"}] or [{"type":"id","id":"<tagId>"}] |
customFields |
[{"id":"plan","value":{"type":"string","value":"Pro"}}]; IDs accept strings or numbers |
Custom-field values accept strings, numbers, booleans, arrays, or null. Tags and custom fields allow 200 entries each; external profiles allow 100.
Social references in contact pushes are objects, not bare strings. Pushed email addresses remain unverified unless you explicitly trust the connection.
Push an activity
curl -X POST "$OCMGR_URL/community/v1/source/product-signups/activity" \
-H "Authorization: Bearer $OCMGR_API_KEY" -H 'content-type: application/json' \
-d '{"id":"event-123","activityType":"signup","user":{"id":"user-123","email":"[email protected]"},"timestamp":"2026-11-01T12:00:00Z","url":"https://example.com/events/123"}'
id, activityType and user are necessary. user uses the contact shape above.
Optional fields include timestamp, url, tags, parentActivity, and subSource.
Use {"id":"event-122","activityType":"signup"} for parentActivity and {"name":"Product"} for subSource.
activityTitle and content accept {"type":"text","value":"…"} or markdown blocks; Datum does not retain their text in the graph.
Add contacts to a segment
Read the segment ID from GET /community/v1/segments. Send existing contacts as an array under contacts:
curl -X POST "$OCMGR_URL/community/v1/segments/<segmentId>" \
-H "Authorization: Bearer $OCMGR_API_KEY" -H 'content-type: application/json' \
-d '{"contacts":[{"email":"[email protected]"},{"github":"grace"}]}'
Each contact names one lookup field: email, github, twitter, linkedin, or discord. Here, social handles are strings.
A bare array, such as [{"email":"[email protected]"}], or a single contact object also works.
Send at most 500 contacts per request. An emails array is not a supported body shape.
Create or update a tag
curl -X POST "$OCMGR_URL/community/v1/tags" \
-H "Authorization: Bearer $OCMGR_API_KEY" -H 'content-type: application/json' \
-d '{"name":"champion","description":"Community champions","entityTypes":["contact"]}'
curl -X POST "$OCMGR_URL/community/v1/tags/<tagId>" \
-H "Authorization: Bearer $OCMGR_API_KEY" -H 'content-type: application/json' \
-d '{"name":"community champion"}'
Creation requires a nonempty name. Updates accept any of name, description, and entityTypes; omitted fields stay unchanged.
description is a string. entityTypes is an array of strings, with at most 64 entries.
DELETE /community/v1/tags/{id} takes no body. Assign a tag through a contact push using the tags field above.
What is partial
GET /memberscan return multiple contacts. Two accounts that claim the same email remain separate until someone decides their relationship. Check the array before reading[0].common_room_member_urlopens Datum. It links to the member’s page on your instance.- Custom fields match by
name. Fields from pushes keep the supplied ID. Fields from imports receive a stable numeric ID. - Segments combine filters and manual membership. Status returns
explicitCount,filterCount, and the combinedmemberCount. It never returnspending. - Deleting tags removes their assignments. Datum keeps the tag with
deletedAt. Creating the same name restores it. - Datum discards text. It retains only lengths and links from
contentandactivityTitle.
API v2
The /api/v2 interface serves contacts, activities, activity types, tags, custom fields, connections as providers, and /me. It also supports listing, reading, creating, and renaming segments.
Responses use Common Room’s envelope and documented limit, cursor, sort, direction, and cols parameters. Pages contain at most 200 rows. Cursors retrieve subsequent rows.
- IDs use
c_<uuid>instead ofc_<number>. Requests accept the returned IDs. - Datum includes
primaryEmailonly after a source verifies it. - Activity
contentalways containsnull. GET /activity-categoriesandGET /activity-sentimentreturn[]. Datum does not classify text.- Segment
entityCountexcludes your staff. Segment contact listings include them.
What returns 501
The /community/v1 endpoints POST /organizations and POST /source/{sourceId}/organization return 501. Datum derives organizations from people’s email domains and GitHub organizations. It cannot derive a company without associated people.
These /api/v2 capabilities return 501:
| Endpoint | Reason |
|---|---|
| Lead scores | Datum scores account matches. It does not score purchase intent. |
| Prospector contacts and companies | These represent people outside your community. |
| Website visits | Datum has no web tracker. |
| Job openings, news, industries, tech stack | These require purchased data feeds. |
| Job titles, locations | Datum preserves source values without classification. |
| Topics | These require message text, which Datum does not store. |
| Custom objects | Datum does not implement this CRM capability. |
| Organizations | The compatibility API does not provide organizations. Use GET /v1/organisations. |
Requests can include unsupported columns, such as lead scores or recent web visits, in cols. Datum omits them without returning an error.
Trusted connections
The first push to a new destinationSourceId creates an untrusted connection named commonroom-compat:<sourceId>. Datum records its pushed email addresses as unverified.
An unverified address cannot merge people by itself. Two accounts with the same unverified address remain separate contacts. Datum creates a review item when the combined evidence reaches the review threshold. Sharing an unverified address alone does not guarantee a review item.
The push API cannot enable trust. A leaked push key therefore cannot change this setting. Enable trust as an owner through the connection:
ocmgr connection list --json
ocmgr connection update <connectionId> --config '{"trusted":true}' --json
Datum records social handles as cross-references. They do not provide proof of identity.
FAQ
Does a push to Datum count as live activity?
Yes, for matching, counts, and most routing. Rules that filter activity tags treat these pushes as history.
Use native POST /v1/sources/{id}/push with live: true for tag-filtered routing.
How do I bring over history Common Room already holds?
The API handles current source pushes. Import your Common Room export for history. Point subsequent pushes at Datum. See From Common Room.
Can I push a returning person's data after erasure?
The same source ID on the same connection returns 409 after erasure.
Use a new source ID for the returning person.
Are the rate limits the same as Common Room's?
Datum uses the same headers and 429 response body. The default limit is 600 requests per minute per key.