Documentation Index
Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Using TypeScript? Check out our GraphQL SDK for a fully typed client.
- Get customers (To fetch more than one customer at a time)
- Get customer by ID
- Get customer by email
- Get customer by external ID
- Search for customers
customer:read
Get customers
Our API allows you to fetch customers as a collection using thecustomers query in GraphQL. This endpoint supports Pagination.
This is a very flexible endpoint which supports a variety of options for filtering and sorting, for full details try our API explorer.
Query
Variables
Get customer by ID
If you already have the ID of a customer from within Plain or one of our other endpoints you can fetch more details about them using thecustomer query in GraphQL.
Query
Variables
Get customer by email
To fetch a customer by email you can use thecustomerByEmail query in GraphQL.
Query
Variables
Get customer by external ID
If you store a stable identifier from your own system on Plain customers (for example your internal user ID), you can fetch the customer back by that value using thecustomerByExternalId query.
External IDs are unique within a workspace.
Query
Variables
Search for customers
ThesearchCustomers query lets you do a case-insensitive partial match across a customer’s name, email, short name and external ID. This is the same search behaviour as the customer picker in the Plain app and is best suited for human-driven lookups rather than precise programmatic resolution.
For exact lookups by email or external ID, prefer customerByEmail or customerByExternalId.
Query
Variables

