---
title: "Prefix-search accounts in the partner org"
method: GET
path: "/accounts/search"
tags: ["accounts"]
---

# Prefix-search accounts in the partner org

`GET /accounts/search`

## Request

- Base URL: `https://api.waymark.com/v1`
- URL: `https://api.waymark.com/v1/accounts/search`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in header `Authorization`

Case-insensitive prefix autocomplete across `email`, `firstName`, and
`lastName` for accounts that belong to the requesting partner. A
whitespace-separated query (e.g. "John Smith") matches first name
prefix AND last name prefix together. Results are capped at 50.

## Query parameters

- `query` string, required

## Response `200`

Up to 50 accounts matching the prefix

- AccountSearchResults
  - `accounts` Account[]
    - `accountGuid` string, uuid, required
    - `email` string, required
    - `externalId` string
    - `firstName` string
    - `lastName` string
    - `status` 'ACTIVE' | 'INACTIVE' | 'PENDING_PASSWORD_SETUP', required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `total` integer
  - `limit` integer
  - `offset` integer

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/waymark/apis/waymark-api-v1.md) - [All operations](https://skmtc.dev/waymark/apis/waymark-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/waymark/apis/waymark-api-v1/revisions/0b315115f107?raw)
