Account
Query identity and workspace access through the WebPixie GraphQL API.
myUser
The authenticated identity behind the current request. No arguments.
query {
myUser {
email
name
role
}
}Response: a MyUser:
| Field | Type | Description |
|---|---|---|
email | String! | The user's email address. |
name | String! | The user's display name. |
language | Language! | The user's preferred language — EN or TR. |
role | [UserRole!]! | System-level roles held by the user. |
permission | [UserPermissions!]! | System-level permissions held by the user. |
payload | [KeyValue!] | Additional key/value metadata attached to the user. |
createTime / updateTime | String! / String | ISO 8601 timestamps for creation / last update. |
mySites
A lightweight list of your sites — no pagination or filtering, unlike findSite. No arguments.
query {
mySites {
id
domain
isFavorite
}
}Response: [MySite!]!:
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier for the site. |
domain | String! | The monitored domain. |
rootDomain | String! | The registrable root domain. |
favicon | String | URL of the site's captured favicon. |
isFavorite | Boolean! | Whether the site is marked as a favorite. |
myWorkspaces
Workspaces the current identity has access to, with your role in each. No arguments.
query {
myWorkspaces {
id
name
role
}
}Response: [AuthorizedWorkspace!]!:
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier for the workspace. |
name | String! | The workspace's display name. |
role | [WorkspaceUserRole!]! | Your role(s) in this workspace. |
subscription | Subscription! | The workspace's current subscription. |
notification | WorkspaceNotificationConfig! | Workspace-wide kill switch for incident notifications — { all: Boolean! }. Must be enabled, alongside the site's or monitor's own setting, for notifications to send. |