Skip to content
Docs

Add known contacts

POST
/api/workspaces/{ws}/known-contacts

Owners and admins only. Each value is an email address, a domain (client.example or @client.example) or a phone number with country code; addresses and domains are kept in lower case, numbers as + and digits. Values already kept are left as they are, and only the new ones come back.

Authorization

session
cookiebetter-auth.session_token<token>

Set by POST /api/auth/sign-in/email.

Path Parameters

ws*string

The workspace id (from GET /api/me).

Request Body

application/json
  1. body
values*array<>

Email addresses (ali@client.com), domains for everyone there (client.com) or phone numbers with country code (+971501234567). Ones already kept are left as they are.

Items1 <= items <= 5000

Response Body

The contacts newly kept.

application/json
Example Request
curl -X POST 'https://app.useroster.work/api/workspaces/string/known-contacts' \  -H 'Content-Type: application/json' \  -d '{  "values": [    "string"  ]}'
Example Response
{  "added": [    {      "id": "3f1c…",      "value": "ali@client.example",      "kind": "email",      "source": "added",      "createdAt": "2026-11-06T09:00:00.000Z"    }  ]}