Skip to main content
Every plain.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Companies

fetch

companies.fetch Fetch a company by ID. Risk: read
Input Output

update

companies.update Create or update a company by ID or domain. Risk: write
Input
Output

Customer Groups

addCustomer

customerGroups.addCustomer Add a customer to one or more customer groups. Risk: write
Input
Output

create

customerGroups.create Create a customer group. Risk: write
Input Output

list

customerGroups.list List customer groups with cursor pagination. Risk: read
Input
Output

removeCustomer

customerGroups.removeCustomer Remove a customer from one or more customer groups. Risk: write
Input
Output

Customers

delete

customers.delete Delete a customer asynchronously. Risk: write
Input Output

getByEmail

customers.getByEmail Fetch a customer by email address. Risk: read
Input Output

getById

customers.getById Fetch a customer by Plain customer ID. Risk: read
Input Output

list

customers.list List customers with optional filters and cursor pagination (first/after or last/before). Risk: read
Input
Output

upsert

customers.upsert Create or update a customer by identifier. Risk: write
Input
Output

Graphql

run

graphql.run Run an arbitrary GraphQL query or mutation. Risk: write
Input
Output: lazy

Threads

create

threads.create Create a thread for a customer. Risk: write
Input
Output

fetchIssues

threads.fetchIssues Fetch external thread links for a customer and flatten as issue records. Risk: read
Input Output

getById

threads.getById Fetch a thread by Plain thread ID. Risk: read
Input Output

listDeprecated

threads.listDeprecated Deprecated threads listing operation; use threads.query. Risk: read
Input
Output

query

threads.query List threads with filters, sort, and cursor pagination. Risk: read
Input
Output

sendMessage

threads.sendMessage Reply to a thread via Plain routing. Risk: write
Input
Output

update

threads.update Update a thread title. Risk: write
Input Output

Tiers

fetch

tiers.fetch Fetch a tier by ID. Risk: read
Input Output

list

tiers.list List tiers with cursor pagination. Risk: read
Input Output

Users

delete

users.delete Delete a workspace user. Risk: write
Input Output

getById

users.getById Fetch a workspace user by ID. Risk: read
Input Output