Look up a client by email address

Developer docs · Updated November 27, 2026

An inbox add-in, a help desk, a CRM or an email-triage agent usually knows one thing about the person: their address. Three calls take you from that address to the client, their open requests and the items still missing. Usual for Outlook is built on exactly these calls.

Every call takes a token (Authorization: Bearer usl_…, see Authentication) and runs with the access of the person who made it.

1. Find the client

curl "https://api.usual.so/v1/clients?email=dee%40harborautorepair.com" \
  -H "Authorization: Bearer $USUAL_TOKEN"
{
  "clients": [
    {
      "id": "556ae219-5743-46e1-ab1e-801bdf4e3394",
      "number": "1201",
      "name": "Harbor Auto Repair",
      "kind": "entity",
      "email": "dee@harborautorepair.com",
      "archived": false
    }
  ]
}
  • email matches any contact on the client, not only the primary one, and ignores case. URL-encode it (@ is %40).
  • The answer is always a list. Two clients can share an address (a married couple filing separately, an owner with two businesses). Active clients come first and archived ones last, so clients[0] is a sensible default. Show a choice when there is more than one active match.
  • An empty list means nobody at the firm has that address. Tokens see the whole workspace, so there is no partial view to account for.
  • The email field in each row is the client's primary contact, which may differ from the address you searched for.

2. List their open requests

curl "https://api.usual.so/v1/requests?clientId=556ae219-5743-46e1-ab1e-801bdf4e3394" \
  -H "Authorization: Bearer $USUAL_TOKEN"
{
  "requests": [
    {
      "id": "8d3c2f0e-6b1a-4c55-9f0d-3e7a1b2c4d5e",
      "clientId": "556ae219-5743-46e1-ab1e-801bdf4e3394",
      "clientName": "Harbor Auto Repair",
      "name": "Monthly bookkeeping close – October 2026",
      "status": "waiting",
      "dueAt": "2026-12-08T17:00:00.000Z",
      "received": 1,
      "required": 4,
      "percent": 25,
      "toReview": 0
    }
  ]
}

clientId combines with scope: open requests by default, scope=completed or scope=archived for the others. received and required count required items only. A status of draft or scheduled means the client hasn't been sent it yet.

3. See what's still missing

GET /v1/requests/{id} returns every item. An item is still owed when all three hold:

FieldValueWhy
requiredtrueOptional items never hold a request open
visibletruefalse when the client's answers hide it, such as the follow-up to a question they answered no
statustodo or redoNot in yet, or sent back to the client. submitted is in and waiting for your review
const res = await fetch(`https://api.usual.so/v1/requests/${id}`, {
  headers: { Authorization: `Bearer ${token}` },
});
const { items } = await res.json();
const missing = items.filter(
  (i) => i.required && i.visible && (i.status === "todo" || i.status === "redo"),
);

Skip the visible check and you will list documents the client was never asked for, like rental income statements for a client who said they have no rental property.

4. Send a checklist, adding the client first if needed

When the lookup came back empty, create the client with the sender as its contact, then send:

curl https://api.usual.so/v1/clients \
  -H "Authorization: Bearer $USUAL_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"kind":"person","name":"Dee Walsh","contact":{"firstName":"Dee","lastName":"Walsh","email":"dee@harborautorepair.com"}}'
curl https://api.usual.so/v1/requests \
  -H "Authorization: Bearer $USUAL_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: outlook-8f2c1d" \
  -d '{"clientId":"556ae219-…","templateId":"<checklist id>","dueDate":"2026-12-15","send":true}'

GET /v1/templates lists the checklists to choose from, the firm's own and the built-in library (builtIn: true). With send: true the client is emailed the link and reminders start on the firm's schedule. Send an Idempotency-Key from anything a person can click twice. The full request body is in the quickstart.

GET /v1/me returns appUrl, the firm's own web app address (null if it can't be worked out). Open a client's panel with {appUrl}/clients?viewClient={clientId}, or a request's with {appUrl}/requests?viewRequest={requestId}.

Errors to handle

  • 401: the token was revoked, or the person who made it lost access or stopped being an owner or admin. Ask them to connect again.
  • 403: the firm limits API access to allowed networks and the call came from somewhere else.
  • 400: a malformed clientId (not a UUID) or dueDate (not YYYY-MM-DD).

The rest are in Errors, limits and pagination. Every endpoint and field is in the API reference.

Something missing or wrong here? Write to support@usual.so. A person answers, usually within a business day.