Query
query MachineUsers {
machineUsers {
edges {
cursor
node {
id
fullName
publicName
description
type
isCustomAgent
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"machineUsers": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"fullName": "string",
"publicName": "string",
"description": "string",
"type": "API_USER",
"isCustomAgent": true
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
machineUsers
Returns a paginated list of all machine users in the workspace. Use the optional filters.type argument to restrict results to a specific machine user type (e.g. API_USER or AI_AGENT). Deleting a machine user, and creating, changing or deleting its API keys, are done by the user in the Plain app, so a key’s secret never passes through an agent. The Plain app page is https://app.plain.com/workspace/w_…/settings/machine-users/<machineUserId>, or …/api-keys/add and …/api-keys/<apiKeyId> under it for keys.
QUERY
machineUsers(filters: MachineUsersFilter, first: Int, after: String, last: Int, before: String): MachineUserConnection!Arguments
filters
first
Int
after
String
last
Int
before
String
Returns
edges
[MachineUserEdge!]!
pageInfo
Query
query MachineUsers {
machineUsers {
edges {
cursor
node {
id
fullName
publicName
description
type
isCustomAgent
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"machineUsers": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"fullName": "string",
"publicName": "string",
"description": "string",
"type": "API_USER",
"isCustomAgent": true
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

