Skip to content

Manage API

Everything /manage can ask for and everything it can change. /manage/graphql accepts a bearer carrying masks:manage or one of the narrower manage roles, issued for this tenant’s manage resource and no other. A mutation the bearer’s roles do not cover answers with an error naming the scopes it needs.

Generated from ManageSchema by ./dev reference. CI fails when this page and the schema disagree.

The explorer shows this schema in GraphiQL, an in-browser tool for writing GraphQL queries. Autocomplete, the docs pane, and validation all work on this page. The explorer answers only introspection queries, which ask about the schema itself. It sends nothing to a server.

To run a query, send it to your own server’s /manage/graphql.

Field Type Description
viewer Actor!
manageLevels [String!]! What the viewer’s token may do here: read, support, security, and owner.
tenant Tenant!
actors
search: String
activated: Boolean
holds: String
pendingApproval: Boolean
recoveryRequested: Boolean
suspended: Boolean
afterId: ID
limit: Int
[Actor!]!
actorCount
search: String
activated: Boolean
holds: String
pendingApproval: Boolean
recoveryRequested: Boolean
suspended: Boolean
Int!
actor
uuid: ID!
Actor
sessions
actor: ID
limit: Int
[Session!]!
devices
actor: ID
blocked: Boolean
unattached: Boolean
agent: String
limit: Int
[Device!]!
device
id: ID!
Device
minimumPassword Int!
clients
search: String
archived: Boolean
afterId: ID
limit: Int
[Client!]!
clientCount
search: String
archived: Boolean
Int!
client
clientId: ID!
Client
tokens
actor: ID
client: ID
kind: String
live: Boolean
limit: Int
[Token!]!
consents
actor: ID
client: ID
revoked: Boolean
limit: Int
[Consent!]!
namespaces [Namespace!]!
scopesSupported [String!]!
appPresets [AppPreset!]!
signInPolicies
archived: Boolean
[SignInPolicy!]!
signInPolicy
key: ID!
SignInPolicy
defaultSignInPolicy SignInPolicy!
samlMetadataUrl String!
providers
archived: Boolean
[Provider!]!
provider
key: ID!
Provider
providerPresets [ProviderPreset!]!
connections
actor: ID
provider: ID
revoked: Boolean
limit: Int
[Connection!]!
domainClaims [DomainClaim!]!
organizations
archived: Boolean
limit: Int
[Organization!]!
organization
key: ID!
Organization
groups [Group!]!
group
key: String!
Group
senders
kind: String
archived: Boolean
[Sender!]!
senderServices [SenderService!]!
mailPreviews
client: ID
[MailPreview!]!
mailTemplates [MailTemplate!]! One entry for each email the tenant can reword, and the signature.
tally Tally!
activity
days: Int
[ActivityDay!]!
events
actor: ID
client: ID
device: ID
action: String
grave: Boolean
organization: ID
since: ISO8601DateTime
afterId: ID
limit: Int
[Event!]!
eventCount
actor: ID
client: ID
device: ID
action: String
grave: Boolean
organization: ID
since: ISO8601DateTime
Int!
eventActions [EventAction!]!
eventStreams
archived: Boolean
[EventStream!]!
health [HealthCheck!]! The latest result of each health check for this tenant and the server it runs on. Empty until the first scheduled run.
release Release The newest release when it is newer than this server. Null while the server is current, or while MASKS_RELEASE_CHECK is off.
provisioningTokens [ProvisioningToken!]!
scimBaseUrl String!
ldapCredentials [LdapCredential!]!
ldapBaseDn String! The base DN of this tenant’s LDAP directory.
ldapPort Int! The port masks serves LDAP on.
ldapTls Boolean! Whether that port speaks LDAPS.
ldapLocalOnly Boolean! Whether the directory answers only on the server’s own machine, since it has no certificate and MASKS_LDAP_PLAINTEXT is not set.
Field Type Description
createActor
nickname: String
email: String
password: String
scopes: [String!]
CreateActorPayload
inviteActors
emails: [String!]!
groups: [String!]
InviteActorsPayload
resendInvitation
uuid: ID!
ResendInvitationPayload
resetPassword
uuid: ID!
ResetPasswordPayload
verifyEmail
uuid: ID!
VerifyEmailPayload
updateActor
uuid: ID!
nickname: String
email: String
phone: String
name: String
givenName: String
familyName: String
middleName: String
profileUrl: String
pictureUrl: String
websiteUrl: String
gender: String
birthdate: String
zoneinfo: String
locale: String
UpdateActorPayload
approveActor
uuid: ID!
ApproveActorPayload
setActorScopes
uuid: ID!
scopes: [String!]!
SetActorScopesPayload
signOutActor
uuid: ID!
SignOutActorPayload
suspendActor
uuid: ID!
SuspendActorPayload
restoreActor
uuid: ID!
RestoreActorPayload
deleteActor
uuid: ID!
DeleteActorPayload
issueProvisioningToken
label: String!
expiresIn: Int
organization: ID
IssueProvisioningTokenPayload
revokeProvisioningToken
id: ID!
RevokeProvisioningTokenPayload
issueLdapCredential
label: String!
clientId: ID
IssueLdapCredentialPayload Issues a bind DN and secret an app uses to search this tenant’s LDAP directory. The secret is returned once.
revokeLdapCredential
id: ID!
RevokeLdapCredentialPayload Revokes an LDAP credential. Apps binding with it are refused from then on.
generateBackupCodes
uuid: ID!
GenerateBackupCodesPayload
disableAuthenticator
uuid: ID!
DisableAuthenticatorPayload
resetSecondFactors
uuid: ID!
ResetSecondFactorsPayload
dismissRecovery
uuid: ID!
DismissRecoveryPayload
createGroup
source: String
rule: [GroupConditionInput!]
providerKey: String
upstreamGroup: String
parentLabels: [String!]
key: String!
name: String!
CreateGroupPayload
updateGroup
source: String
rule: [GroupConditionInput!]
providerKey: String
upstreamGroup: String
parentLabels: [String!]
key: String!
name: String
UpdateGroupPayload
deleteGroup
key: String!
DeleteGroupPayload
addGroupMember
key: String!
uuid: ID!
AddGroupMemberPayload
removeGroupMember
key: String!
uuid: ID!
RemoveGroupMemberPayload
grantAccess
id: ID!
label: String
GrantAccessPayload Grants a waiting access request by putting the actor in one of the groups the client allows. Name the group with label, or leave it out for the first one the client allows.
declineAccess
id: ID!
DeclineAccessPayload Declines a waiting access request. The actor is told by email and can ask again in an hour.
refreshGroup
key: String!
RefreshGroupPayload Fills a sourced group now instead of waiting for the hourly run.
disableCodeFactor
uuid: ID!
factor: String!
DisableCodeFactorPayload
revokePasskey
uuid: ID!
id: ID!
RevokePasskeyPayload
uploadAvatar
uuid: ID!
photo: Upload!
UploadAvatarPayload
removeAvatar
uuid: ID!
RemoveAvatarPayload
uploadTenantLogo
logo: Upload!
UploadTenantLogoPayload
removeTenantLogo RemoveTenantLogoPayload
createClient
name: String!
grantTypes: [String!]
redirectUris: [String!]
postLogoutRedirectUris: [String!]
resources: [String!]
requiredScopes: [String!]
allowedScopes: [String!]
tokenEndpointAuthMethod: String
dpopBoundAccessTokens: Boolean
jwks: JSON
jwksUri: String
requireSignedRequestObject: Boolean
CreateClientPayload
addApp
preset: ID!
baseUrl: String!
name: String
slug: String
AddAppPayload
createSamlApplication
name: String!
entityId: String!
acsUrls: [String!]!
certificate: String
nameIdFormat: String
requestsSigned: Boolean
idpInitiated: Boolean
attributes: JSON
sloUrl: String
CreateSamlApplicationPayload
readSamlApplicationMetadata
xml: String!
ReadSamlApplicationMetadataPayload
updateClient
clientId: ID!
name: String
grantTypes: [String!]
redirectUris: [String!]
postLogoutRedirectUris: [String!]
resources: [String!]
requiredScopes: [String!]
allowedScopes: [String!]
subjectType: String
dpopBoundAccessTokens: Boolean
sectorIdentifierUri: String
backchannelLogoutUri: String
backchannelLogoutSessionRequired: Boolean
requirePushedAuthorizationRequests: Boolean
jwks: JSON
jwksUri: String
requireSignedRequestObject: Boolean
tokenEndpointAuthMethod: String
samlEntityId: String
samlCertificate: String
samlNameIdFormat: String
samlRequestsSigned: Boolean
samlIdpInitiated: Boolean
samlAttributes: JSON
samlSloUrl: String
consentRequired: Boolean
appPasswords: Boolean
accessTokenLifetime: Int
refreshTokenLifetime: Int
refreshTokenAbsoluteLifetime: Int
allowedGroups: [String!]
forwardAuthRules: JSON
signInPolicy: ID
clientUri: String
logoUri: String
tosUri: String
policyUri: String
consentLifetime: Int
authorizationDetailsTypes: [String!]
authorizationDetailsSchemas: JSON
UpdateClientPayload
rotateClientSecret
clientId: ID!
expiresIn: Int
RotateClientSecretPayload
archiveClient
clientId: ID!
ArchiveClientPayload
unenrollClient
clientId: ID!
UnenrollClientPayload
restoreClient
clientId: ID!
RestoreClientPayload
releaseNamespace
name: String!
ReleaseNamespacePayload
discoverProvider
issuer: String!
DiscoverProviderPayload
readSamlMetadata
metadataUrl: String
metadataXml: String
ReadSamlMetadataPayload
createProvider
key: ID!
name: String!
preset: ID
presetValues: JSON
protocol: String
authorizationUrl: String
tokenUrl: String
clientId: String
clientSecret: String
userinfoUrl: String
emailsUrl: String
scopes: [String!]
authorizeParams: JSON
claims: JSON
subjectClaim: String
issuer: String
jwksUri: String
tokenAuthMethod: String
responseMode: String
teamId: String
keyId: String
privateKey: String
idpEntityId: String
idpSsoUrl: String
idpCertificates: String
metadataUrl: String
nameIdFormat: String
role: String
trustsEmail: Boolean
receivesSignals: Boolean
emailDomains: [String!]
signupScopes: [String!]
delegates: Boolean
delegatedScopes: [String!]
delegationParams: JSON
resourceUrl: String
CreateProviderPayload
updateProvider
key: ID!
name: String
protocol: String
authorizationUrl: String
tokenUrl: String
clientId: String
clientSecret: String
userinfoUrl: String
emailsUrl: String
claims: JSON
tokenAuthMethod: String
responseMode: String
teamId: String
keyId: String
privateKey: String
idpEntityId: String
idpSsoUrl: String
idpCertificates: String
metadataUrl: String
nameIdFormat: String
scopes: [String!]
authorizeParams: JSON
subjectClaim: String
issuer: String
jwksUri: String
role: String
trustsEmail: Boolean
receivesSignals: Boolean
emailDomains: [String!]
signupScopes: [String!]
delegates: Boolean
delegatedScopes: [String!]
delegationParams: JSON
resourceUrl: String
UpdateProviderPayload
archiveProvider
key: ID!
ArchiveProviderPayload
restoreProvider
key: ID!
RestoreProviderPayload
revokeToken
id: ID!
family: Boolean
RevokeTokenPayload
revokeConnection
id: ID!
RevokeConnectionPayload
revokeConsent
id: ID!
RevokeConsentPayload
revokeDelegation
id: ID!
RevokeDelegationPayload
registerProvider
key: ID!
RegisterProviderPayload
revokeSession
id: ID!
RevokeSessionPayload
blockDevice
id: ID!
BlockDevicePayload
unblockDevice
id: ID!
UnblockDevicePayload
blockDevices
ids: [ID!]
agent: String
refuse: Boolean
BlockDevicesPayload
unblockDevices
ids: [ID!]!
UnblockDevicesPayload
signOutDevice
id: ID!
SignOutDevicePayload
updateTenant
name: String
dynamicClientScopes: [String!]
dynamicRegistration: String
namedBy: String
browsersOnly: Boolean
blockedAgents: String
signInPolicy: ID
suspendAfter: Int
deleteAfter: Int
riskyNetworks: String
eventRetentionDays: Int
ldapEnabled: Boolean
ldapPasswordOnly: Boolean
accentColor: String
keyRotationDays: Int
invitationLifetime: Int
organizationInvitationLifetime: Int
passwordResetLifetime: Int
emailVerificationLifetime: Int
UpdateTenantPayload
createSignInPolicy
name: String
signup: Boolean
nickname: String
email: String
emailVerified: Boolean
phone: String
phoneVerified: Boolean
passwordMinimum: Int
refuseCommonPasswords: Boolean
passwordRequired: Boolean
firstFactors: [String!]
secondFactors: [String!]
secondFactorRequired: Boolean
appsRequireSecondFactor: Boolean
refuseBreachedPasswords: Boolean
proofOfWork: Int
riskStepUpAt: Int
riskRefuseAt: Int
sessionLifetime: Int
sessionIdleTimeout: Int
emailDomains: [String!]
providers: [String!]
everyProvider: Boolean
confirmation: String
hidden: Boolean
signupScopes: [String!]
key: ID!
CreateSignInPolicyPayload
updateSignInPolicy
name: String
signup: Boolean
nickname: String
email: String
emailVerified: Boolean
phone: String
phoneVerified: Boolean
passwordMinimum: Int
refuseCommonPasswords: Boolean
passwordRequired: Boolean
firstFactors: [String!]
secondFactors: [String!]
secondFactorRequired: Boolean
appsRequireSecondFactor: Boolean
refuseBreachedPasswords: Boolean
proofOfWork: Int
riskStepUpAt: Int
riskRefuseAt: Int
sessionLifetime: Int
sessionIdleTimeout: Int
emailDomains: [String!]
providers: [String!]
everyProvider: Boolean
confirmation: String
hidden: Boolean
signupScopes: [String!]
key: ID!
UpdateSignInPolicyPayload
archiveSignInPolicy
key: ID!
ArchiveSignInPolicyPayload
restoreSignInPolicy
key: ID!
RestoreSignInPolicyPayload
createSender
key: ID!
service: String!
name: String!
config: JSON
primary: Boolean
CreateSenderPayload
updateSender
key: ID!
name: String
config: JSON
primary: Boolean
UpdateSenderPayload
archiveSender
key: ID!
ArchiveSenderPayload
restoreSender
key: ID!
RestoreSenderPayload
testSender
key: ID!
to: String!
TestSenderPayload
createEventStream
key: ID!
name: String!
url: String!
actions: [String!]
organization: ID
CreateEventStreamPayload
updateEventStream
key: ID!
name: String
url: String
actions: [String!]
organization: ID
UpdateEventStreamPayload
updateMailTemplate
kind: ID!
subject: String
message: String
UpdateMailTemplatePayload Sets the tenant’s template for one kind of email. Leaving both the subject and the message blank goes back to masks’ default.
archiveEventStream
key: ID!
ArchiveEventStreamPayload
restoreEventStream
key: ID!
RestoreEventStreamPayload
rotateEventStreamSecret
key: ID!
RotateEventStreamSecretPayload
testEventStream
key: ID!
TestEventStreamPayload
createOrganization
key: ID!
name: String!
roles: [String!]
CreateOrganizationPayload Creates an organization, owned by the person who creates it.
updateOrganization
key: ID!
name: String
roles: [String!]
signInPolicy: ID
UpdateOrganizationPayload
archiveOrganization
key: ID!
ArchiveOrganizationPayload
restoreOrganization
key: ID!
RestoreOrganizationPayload
addMember
organization: ID!
role: String!
uuid: ID
email: String
AddMemberPayload Adds a person to an organization. Name an existing account by uuid, or an email address, which invites a new account when none holds it.
setMemberRole
organization: ID!
uuid: ID!
role: String!
SetMemberRolePayload
removeMember
organization: ID!
uuid: ID!
RemoveMemberPayload
resendOrganizationInvitation
organization: ID!
uuid: ID!
ResendOrganizationInvitationPayload Sends an organization invitation again and starts its lifetime over. An invitation is sent again at most once an hour.
setProviderOrganization
key: ID!
organization: ID
roleClaim: String
roleMap: JSON
unmappedRole: String
SetProviderOrganizationPayload Hands a provider to one organization, or back to the whole tenant. People who sign in through it become members, in the role their groups map to.
claimDomain
domain: String!
provider: ID
ClaimDomainPayload Starts claiming a domain. Publish the TXT record it returns, then check it.
checkDomain
domain: String!
CheckDomainPayload Looks up a claim’s TXT record now, instead of waiting for the hourly check.
updateDomainClaim
domain: String!
provider: ID
UpdateDomainClaimPayload
releaseDomain
domain: String!
ReleaseDomainPayload
serveDomain
host: String
ServeDomainPayload Serves sign-in from a host within a proven domain, such as login.example.com, or stops when host is null. The host is a second issuer, so apps that use it must name it.
exportEvents
from: ISO8601DateTime!
to: ISO8601DateTime!
action: String
organization: ID
actor: ID
ExportEventsPayload Prepares a download of every event in a range as newline-delimited JSON, one event per line in the shape event streams send. The link works for ten minutes, in a browser signed in as the manager who asked for it.
stageSigningKey StageSigningKeyPayload
activateSigningKey
kid: ID!
ActivateSigningKeyPayload
discardSigningKey
kid: ID!
DiscardSigningKeyPayload
rotateSigningKey RotateSigningKeyPayload
runHealthChecks RunHealthChecksPayload Runs every health check now, instead of waiting for the next scheduled run.

An actor turned away from a client who asked for access. Granting it puts them in one of the groups the client allows.

Field Type Description
id ID!
actor Actor!
client Client!
label String The group key, or organization role as key:role, the actor was put in. Null until granted.
decidedBy Actor
grantedAt ISO8601DateTime
declinedAt ISO8601DateTime
open Boolean! True while nobody has granted or declined it.
createdAt ISO8601DateTime!

Autogenerated return type of ActivateSigningKey.

Field Type
signingKey SigningKey!
Field Type
date ISO8601Date!
signIns Int!
Field Type Description
uuid ID!
identifier String!
nickname String
email String
emailVerified Boolean!
phone String
phoneVerified Boolean!
signedUpAt ISO8601DateTime
pendingApproval Boolean!
recoveryRequestedAt ISO8601DateTime When this actor, past their first factor, asked a manager to reset their second factors.
suspendedAt ISO8601DateTime
externalId String The id a tenant-wide directory knows this actor by. An organization’s directory keeps its own on the membership.
activated Boolean!
invitedAt ISO8601DateTime
scopes [String!]!
otpEnabled Boolean!
emailCodesEnabled Boolean!
textCodesEnabled Boolean!
backupCodesRemaining Int!
passkeys [Passkey!]!
sessions [Session!]!
devices [Device!]!
connections [Connection!]!
consents [Consent!]!
tokens [Token!]!
memberships [Membership!]!
groups [Group!]!
groupMemberships [GroupMember!]! Each group the person is in, with what put them there.
groupLabels [String!]! What the groups claim carries: each group’s key, and each organization role as key:role.
events
limit: Int
[Event!]!
backupCodesGeneratedAt ISO8601DateTime
lastLoginAt ISO8601DateTime
lastActiveAt ISO8601DateTime
idleWarnedAt ISO8601DateTime
createdAt ISO8601DateTime!
updatedAt ISO8601DateTime!
avatars Avatars!
photoUploaded Boolean!
name String
givenName String
familyName String
middleName String
profileUrl String
pictureUrl String
websiteUrl String
gender String
birthdate String
zoneinfo String
locale String

Autogenerated return type of AddApp.

Field Type
client Client!
secret String
settings [AppSetting!]!
guide String

Autogenerated return type of AddGroupMember.

Field Type
group Group!

Autogenerated return type of AddMember.

Field Type
membership Membership!
delivered Boolean!
url String

A self-hosted app masks knows how to register.

Field Type Description
key ID!
name String!
asks JSON! Values the app’s redirect URIs need beyond its address, with their usual defaults.
scopes [String!]!
guide String

One value to enter in the app, under the label the app uses for it.

Field Type
label String!
value String!

Autogenerated return type of ApproveActor.

Field Type
actor Actor!

Autogenerated return type of ArchiveClient.

Field Type
client Client!

Autogenerated return type of ArchiveEventStream.

Field Type
eventStream EventStream!

Autogenerated return type of ArchiveOrganization.

Field Type
organization Organization!

Autogenerated return type of ArchiveProvider.

Field Type
provider Provider!

Autogenerated return type of ArchiveSender.

Field Type
sender Sender!

Autogenerated return type of ArchiveSignInPolicy.

Field Type
signInPolicy SignInPolicy!
Field Type
photo String
identicon String!
initials String!

Autogenerated return type of BlockDevice.

Field Type
device Device!

Autogenerated return type of BlockDevices.

Field Type
count Int!
spared Boolean!

Autogenerated return type of CheckDomain.

Field Type
domainClaim DomainClaim!
found Boolean!

Autogenerated return type of ClaimDomain.

Field Type
domainClaim DomainClaim!
Field Type Description
clientId ID!
name String!
redirectUris [String!]!
postLogoutRedirectUris [String!]!
grantTypes [String!]!
responseTypes [String!]!
resources [String!]!
requiredScopes [String!]!
allowedScopes [String!]!
accessTokenLifetime Int Seconds an access token lasts. Null is an hour.
refreshTokenLifetime Int Seconds a refresh token lasts unused. Each refresh starts it over. Null is 30 days.
refreshTokenAbsoluteLifetime Int Seconds from a sign-in until its refresh tokens stop, however often they are used. Null is 90 days.
allowedGroups [String!]! Group keys, or organization roles as key:role, whose people may sign in. Empty lets everyone in.
forwardAuthRules JSON! The ordered rules forward auth follows for an app behind a proxy. Each has paths, methods, networks, and groups it covers, and an outcome of open, one_factor, two_factor, token, or deny. The first rule that covers a request decides it. With no rule, a signed-in person who may sign in is let through.
namespaces [Namespace!]!
tokenEndpointAuthMethod String!
subjectType String!
dpopBoundAccessTokens Boolean!
sectorIdentifierUri String
applicationType String!
clientUri String
logoUri String
tosUri String
policyUri String
logoUrl
size: Int
String
backchannelLogoutUri String
backchannelLogoutSessionRequired Boolean!
requirePushedAuthorizationRequests Boolean!
jwks JSON
jwksUri String
consentLifetime Int Seconds a person’s consent lasts before they are asked again. Null lasts until revoked.
authorizationDetailsTypes [String!]! The types of authorization detail this client may ask for.
authorizationDetailsSchemas JSON! The types of authorization detail this client accepts as a resource, with the label and schema of each.
protocol String!
samlEntityId String
samlCertificate String
samlNameIdFormat String
samlRequestsSigned Boolean!
samlIdpInitiated Boolean!
samlAttributes JSON!
samlSloUrl String Where masks posts a signed LogoutRequest when a person who signed in to this SAML application signs out, and its LogoutResponse when the application asks.
requireSignedRequestObject Boolean!
consentRequired Boolean!
appPasswords Boolean! Whether people may make an app password for this client, which LDAP and forward auth accept in place of their password and second factor.
signInPolicy SignInPolicy
dynamic Boolean!
approvedAt ISO8601DateTime
approvedBy Actor
enrolledBy Client The app that enrolled this client as one of its machines. Archiving that app archives this client.
enrolled [Client!]! The machines this app enrolled that are not archived.
lastSeenAt ISO8601DateTime When this client last got a token. Null if it never has.
accessRequests [AccessRequest!]! Actors turned away from this client who asked for access and are waiting.
archivedAt ISO8601DateTime
secretExpiresAt ISO8601DateTime
createdAt ISO8601DateTime!
delegations [Delegation!]!
consents
limit: Int
[Consent!]!
tokens
limit: Int
[Token!]!
events
limit: Int
[Event!]!
Field Type
id ID!
provider Provider!
actor Actor!
subject String!
label String
email String
emailVerified Boolean!
connectedAt ISO8601DateTime
signedInAt ISO8601DateTime
revokedAt ISO8601DateTime
revokedReason String
createdAt ISO8601DateTime!
delegable Boolean!
tokensRefreshedAt ISO8601DateTime
delegations [Delegation!]!
Field Type Description
id ID!
actor Actor!
client Client!
scopes [String!]!
audience [String!]!
authorizationDetails JSON! The authorization details the person allowed this client to ask for again without asking them, each with the time it expires.
expiresAt ISO8601DateTime When this consent ends and the person is asked again. Null lasts until revoked.
revokedAt ISO8601DateTime
createdAt ISO8601DateTime!
updatedAt ISO8601DateTime!

Autogenerated return type of CreateActor.

Field Type
actor Actor!
delivered Boolean!
url String

Autogenerated return type of CreateClient.

Field Type
client Client!
secret String

Autogenerated return type of CreateEventStream.

Field Type
eventStream EventStream!
secret String!

Autogenerated return type of CreateGroup.

Field Type
group Group!

Autogenerated return type of CreateOrganization.

Field Type
organization Organization!

Autogenerated return type of CreateProvider.

Field Type
provider Provider!

Autogenerated return type of CreateSamlApplication.

Field Type
client Client!

Autogenerated return type of CreateSender.

Field Type
sender Sender!

Autogenerated return type of CreateSignInPolicy.

Field Type
signInPolicy SignInPolicy!

Autogenerated return type of DeclineAccess.

Field Type
accessRequest AccessRequest!
Field Type
id ID!
client Client!
actor Actor!
connection Connection!
provider Provider!
scopes [String!]!
consentedAt ISO8601DateTime!
releasedAt ISO8601DateTime
revokedAt ISO8601DateTime
revokedReason String

Autogenerated return type of DeleteActor.

Field Type
uuid ID!
identifier String!

Autogenerated return type of DeleteGroup.

Field Type
key String!
Field Type
id ID!
label String!
name String
category String!
known Boolean!
userAgent String
ipAddress String
lastSeenAt ISO8601DateTime!
blockedAt ISO8601DateTime
createdAt ISO8601DateTime!
actors [Actor!]!
sessions [Session!]!

Autogenerated return type of DisableAuthenticator.

Field Type
actor Actor!

Autogenerated return type of DisableCodeFactor.

Field Type
actor Actor!

Autogenerated return type of DiscardSigningKey.

Field Type
kid ID!

Autogenerated return type of DiscoverProvider.

Field Type
issuer String!
authorizationUrl String!
tokenUrl String!
userinfoUrl String
jwksUri String!
scopesSupported [String!]!

Autogenerated return type of DismissRecovery.

Field Type
actor Actor!
Field Type Description
domain ID!
recordName String! The DNS name to publish a TXT record at.
recordValue String! The TXT record’s value.
verifiedAt ISO8601DateTime
checkedAt ISO8601DateTime
missingSince ISO8601DateTime When a proven record stopped answering. The claim is released a week later.
provider Provider The provider people with an address here are sent to.
Field Type
id ID!
action String!
label String!
createdAt ISO8601DateTime!
ipAddress String
userAgent String
details JSON!
actor Actor
by Actor
client Client
device Device
organization Organization
Field Type
action String!
label String!
Field Type Description
key ID!
name String!
url String!
actions [String!]!
organization Organization When set, only this organization’s events are sent.
lastDeliveredAt ISO8601DateTime
lastFailure String
archivedAt ISO8601DateTime
createdAt ISO8601DateTime!
updatedAt ISO8601DateTime!

Autogenerated return type of ExportEvents.

Field Type
url String!
count Int!
expiresAt ISO8601DateTime!

Autogenerated return type of GenerateBackupCodes.

Field Type
actor Actor!
codes [String!]!

Autogenerated return type of GrantAccess.

Field Type
accessRequest AccessRequest!

A named set of people in the tenant. The groups claim lists the key of each group a person is in. A group fills by hand, from a rule, from a provider, or from other groups.

Field Type Description
key String!
name String!
source String! manual, rule, provider, or group.
rule [GroupCondition!]! The conditions a rule group checks. Empty unless the source is rule.
providerKey String The provider a provider group reads at sign-in.
upstreamGroup String The group name the provider lists for people who belong.
parentLabels [String!]! The group keys and organization roles, as key:role, a nested group holds everyone from.
refreshedAt ISO8601DateTime When the source last filled the group.
memberCount Int!
members [Actor!]!
memberships [GroupMember!]! Each member with what put them in the group.
createdAt ISO8601DateTime!

One condition of a group’s rule. Every condition must hold for a person to be in the group.

Field Type Description
kind String! email_domain or profile.
field String The profile field a profile condition reads.
value String! The domain a verified email address ends with, or the value the profile field equals. A profile condition matches only people whose profile a directory sets.

A person’s place in a group, and what put them there.

Field Type Description
group Group!
actor Actor!
sourcedBy String rule, provider, or group when the group’s source put them in. Null when a manager added them by hand.
createdAt ISO8601DateTime!

The latest result of one health check. Checks run every 10 minutes.

Field Type Description
name ID! jobs, worker, queue, ldap, metrics, mail, origin, domains, keys, or proxy.
status String! ok, warning, or failing.
summary String! A short word for what the check found, such as none, stale, or silent.
details JSON! The figures and names behind the summary.
checkedAt ISO8601DateTime!
changedAt ISO8601DateTime! When the status last changed.

What inviting one address did.

Field Type Description
email String!
outcome String! invited, exists when an account already uses the address, or invalid when it is not an address.
delivered Boolean!
url String The invitation link, when masks could not mail it.
actor Actor

Autogenerated return type of InviteActors.

Field Type
outcomes [InvitationOutcome!]!

Autogenerated return type of IssueLdapCredential.

Field Type
ldapCredential LdapCredential!
secret String!

Autogenerated return type of IssueProvisioningToken.

Field Type
provisioningToken ProvisioningToken!
secret String!
Field Type Description
id ID!
label String!
bindDn String! The DN an app binds as, under ou=services in this tenant’s directory.
issuedBy Actor
client Client The client whose app passwords bind through this credential, when one was chosen.
usedAt ISO8601DateTime When an app last bound with it, to within five minutes.
createdAt ISO8601DateTime!
Field Type
key ID!
name String!
journey String!
heading String!
subject String!
from String!
to String!
html String
text String

The tenant’s own template for one kind of email. masks still adds the button or code, how long it lasts, and the lines that keep a person safe.

Field Type Description
kind ID! Which email this changes, or signature for the closing lines every email ends with.
subject String The subject line. Blank keeps the one masks writes.
message String The opening text, in place of the one masks writes. A blank line starts a new paragraph. Blank keeps the one masks writes.
placeholders [String!]! The names this kind fills in when written as {{name}}.
updatedAt ISO8601DateTime
Field Type Description
actor Actor!
organization Organization!
role String!
pending Boolean! True until the person accepts. A pending membership grants nothing.
invitedBy Actor
invitedAs String The address an invitation went to. Only that address can accept it.
provisioned Boolean! True when a directory added this member through SCIM.
externalId String The id the organization’s directory knows this member by.
invitedAt ISO8601DateTime When the invitation was last sent.
expiresAt ISO8601DateTime When a pending invitation stops being accepted. Sending it again starts it over.
expired Boolean! True when the invitation can no longer be accepted.
createdAt ISO8601DateTime!
Field Type
name String!
resource String!
client Client
claimedAt ISO8601DateTime!
releasable Boolean!
scopes [String!]!
Field Type Description
uuid ID!
key ID!
name String!
roles [String!]! Every role a member can hold here, owner and member included.
members [Membership!]!
memberCount Int! Members who have accepted.
ownerCount Int! Members who have accepted and hold owner.
pendingCount Int! Invitations still open, neither accepted nor expired.
liveTokenCount Int! Live tokens issued for this organization. Archiving revokes them.
domains [DomainClaim!]! Domains claimed for this organization’s providers, proven or not.
provisioningTokens [ProvisioningToken!]! Live provisioning tokens that reach only this organization.
signInPolicy SignInPolicy The policy for signing in as a member, ahead of the app’s and the tenant’s.
providers [Provider!]!
events [Event!]! The organization’s most recent events.
archivedAt ISO8601DateTime
createdAt ISO8601DateTime!
Field Type
id ID!
label String!
aaguid String
certification String
compromise String
userVerified Boolean!
lastUsedAt ISO8601DateTime
createdAt ISO8601DateTime!
Field Type Description
key ID!
name String!
protocol String!
preset String
authorizationUrl String
tokenUrl String
userinfoUrl String
clientId String
emailsUrl String
claims JSON!
tokenAuthMethod String!
responseMode String
teamId String
keyId String
privateKeyHeld Boolean!
callbackUrl String!
idpEntityId String
idpSsoUrl String
idpCertificates String
metadataUrl String
metadataFetchedAt ISO8601DateTime
nameIdFormat String
spEntityId String
scopes [String!]!
authorizeParams JSON!
subjectClaim String!
secretHeld Boolean!
connections Int!
signedIn Int!
archivedAt ISO8601DateTime
organization Organization The organization whose people sign in through this provider, or null for the whole tenant.
roleClaim String The claim that lists a person’s groups. groups when null.
roleMap JSON! Groups mapped to organization roles. The first group a person holds wins.
unmappedRole String The role for someone in none of the mapped groups. member when null.
createdAt ISO8601DateTime!
issuer String
jwksUri String
jwksFetchedAt ISO8601DateTime
role String!
trustsEmail Boolean!
receivesSignals Boolean! Whether masks accepts the shared signals this provider sends to /ssf/events.
emailDomains [String!]!
signupScopes [String!]!
delegates Boolean!
delegatedScopes [String!]!
delegationParams JSON!
delegationScope String!
resourceUrl String
registrationUrl String
registeredAt ISO8601DateTime
delegations Int!
Field Type
key ID!
name String!
protocol String!
asks [String!]!
needs [String!]!
defaults JSON!
guide String
trustsEmail Boolean!
custom Boolean!
delegatedScopes [String!]!
delegates Boolean!
Field Type Description
id ID!
label String!
issuedBy Actor
organization Organization The one organization this token provisions into, or null for every account.
usedAt ISO8601DateTime
expiresAt ISO8601DateTime!
createdAt ISO8601DateTime!

Autogenerated return type of ReadSamlApplicationMetadata.

Field Type Description
entityId String
acsUrls [String!]!
certificate String
nameIdFormat String
requestsSigned Boolean!
sloUrl String The location of its HTTP-POST SingleLogoutService.

Autogenerated return type of ReadSamlMetadata.

Field Type
idpEntityId String!
idpSsoUrl String!
idpCertificates String!

Autogenerated return type of RefreshGroup.

Field Type
group Group!

Autogenerated return type of RegisterProvider.

Field Type
provider Provider!

A newer release of masks than the one this server runs.

Field Type Description
version String!
url String! The release notes.
operatorStep Boolean! Whether the release notes carry a line that starts with Operator:.
checkedAt ISO8601DateTime!

Autogenerated return type of ReleaseDomain.

Field Type
domain String!

Autogenerated return type of ReleaseNamespace.

Field Type
released String!

Autogenerated return type of RemoveAvatar.

Field Type
actor Actor!

Autogenerated return type of RemoveGroupMember.

Field Type
group Group!

Autogenerated return type of RemoveMember.

Field Type
organization Organization!

Autogenerated return type of RemoveTenantLogo.

Field Type
tenant Tenant!

Autogenerated return type of ResendInvitation.

Field Type
actor Actor!
delivered Boolean!
url String

Autogenerated return type of ResendOrganizationInvitation.

Field Type
membership Membership!
delivered Boolean!
url String

Autogenerated return type of ResetPassword.

Field Type
actor Actor!
delivered Boolean!
url String

Autogenerated return type of ResetSecondFactors.

Field Type
actor Actor!

Autogenerated return type of RestoreActor.

Field Type
actor Actor!

Autogenerated return type of RestoreClient.

Field Type
client Client!

Autogenerated return type of RestoreEventStream.

Field Type
eventStream EventStream!

Autogenerated return type of RestoreOrganization.

Field Type
organization Organization!

Autogenerated return type of RestoreProvider.

Field Type
provider Provider!

Autogenerated return type of RestoreSender.

Field Type
sender Sender!

Autogenerated return type of RestoreSignInPolicy.

Field Type
signInPolicy SignInPolicy!

Autogenerated return type of RevokeConnection.

Field Type
connection Connection!

Autogenerated return type of RevokeConsent.

Field Type
consent Consent!

Autogenerated return type of RevokeDelegation.

Field Type
delegation Delegation!

Autogenerated return type of RevokeLdapCredential.

Field Type
ldapCredential LdapCredential!

Autogenerated return type of RevokePasskey.

Field Type
actor Actor!

Autogenerated return type of RevokeProvisioningToken.

Field Type
provisioningToken ProvisioningToken!

Autogenerated return type of RevokeSession.

Field Type
session Session!

Autogenerated return type of RevokeToken.

Field Type
revoked Int!
token Token!

Autogenerated return type of RotateClientSecret.

Field Type
client Client!
secret String!

Autogenerated return type of RotateEventStreamSecret.

Field Type
eventStream EventStream!
secret String!

Autogenerated return type of RotateSigningKey.

Field Type
signingKey SigningKey!

Autogenerated return type of RunHealthChecks.

Field Type
health [HealthCheck!]!
Field Type
key ID!
name String!
kind String!
service String!
label String!
primary Boolean!
settings JSON!
secretsHeld [String!]!
archivedAt ISO8601DateTime
createdAt ISO8601DateTime!
updatedAt ISO8601DateTime!
Field Type
key String!
label String!
type String!
secret Boolean!
required Boolean!
options [String!]
default JSON
hint String
Field Type
service ID!
kind String!
label String!
fields [SenderField!]!

Autogenerated return type of ServeDomain.

Field Type
tenant Tenant!
Field Type
id ID!
actor Actor!
device Device
userAgent String
ipAddress String
authenticatedAt ISO8601DateTime
expiresAt ISO8601DateTime!
revokedAt ISO8601DateTime
createdAt ISO8601DateTime!

Autogenerated return type of SetActorScopes.

Field Type
actor Actor!

Autogenerated return type of SetMemberRole.

Field Type
membership Membership!

Autogenerated return type of SetProviderOrganization.

Field Type
provider Provider!
Field Type Description
key ID!
name String!
signup Boolean!
nickname String!
email String!
emailVerified Boolean!
phone String!
phoneVerified Boolean!
passwordMinimum Int!
refuseCommonPasswords Boolean!
passwordRequired Boolean! Every account made at signup sets a password, and a passkey alone is not offered.
firstFactors [String!]!
secondFactors [String!]!
secondFactorRequired Boolean!
appsRequireSecondFactor Boolean!
refuseBreachedPasswords Boolean!
proofOfWork Int! Leading zero bits a browser finds by hashing before it signs up. 0 turns the check off.
riskStepUpAt Int
riskRefuseAt Int
sessionLifetime Int Seconds a session lasts after signing in, or null for 14 days.
sessionIdleTimeout Int Seconds of inactivity that end a session, or null.
emailDomains [String!]!
providers [String!]
confirmation String!
hidden Boolean!
signupScopes [String!]!
clients [Client!]!
default Boolean!
archivedAt ISO8601DateTime
createdAt ISO8601DateTime

Autogenerated return type of SignOutActor.

Field Type
actor Actor!

Autogenerated return type of SignOutDevice.

Field Type
device Device!
Field Type
kid ID!
algorithm String!
activatedAt ISO8601DateTime
retiredAt ISO8601DateTime
state String!
createdAt ISO8601DateTime!

Autogenerated return type of StageSigningKey.

Field Type
signingKey SigningKey!

Autogenerated return type of SuspendActor.

Field Type
actor Actor!
Field Type Description
actors Int!
clients Int!
devices Int!
organizations Int! Organizations that are not archived.
Field Type Description
uuid ID!
subdomain String!
customHost String The host sign-in is also served from, within a proven domain.
origins [String!]! Every origin this tenant answers on, each its own issuer.
name String!
namedBy String!
browsersOnly Boolean!
blockedAgents String
mails Boolean!
accentColor String
keyRotationDays Int Days between scheduled signing key rotations, or null when a manager rotates by hand.
logoUrl String The tenant’s logo, 128 pixels square, or null for its initial.
texts Boolean!
signInPolicy SignInPolicy
dynamicRegistration String!
dynamicClientScopes [String!]
suspendAfter Int
deleteAfter Int
riskyNetworks String Address ranges that add to a sign-in’s risk score, one per line.
eventRetentionDays Int! Days events are kept before they are deleted.
invitationLifetime Int! Seconds an invitation to an account stays valid.
organizationInvitationLifetime Int! Seconds an invitation to an organization stays open after it was last sent.
passwordResetLifetime Int! Seconds a password reset link stays valid.
emailVerificationLifetime Int! Seconds an email confirmation link stays valid.
ldapEnabled Boolean! Whether the LDAP directory answers for this tenant.
ldapPasswordOnly Boolean! Whether a password alone binds to LDAP for an account that would otherwise need a second factor.
createdAt ISO8601DateTime!
signingKeys [SigningKey!]!

Autogenerated return type of TestEventStream.

Field Type
delivered Boolean!
failure String

Autogenerated return type of TestSender.

Field Type
delivered Boolean!
failure String
Field Type
id ID!
kind String!
actor Actor
client Client
device Device
session Session
scopes [String!]!
audience [String!]!
live Boolean!
parentId ID
authenticatedAt ISO8601DateTime
expiresAt ISO8601DateTime!
consumedAt ISO8601DateTime
createdAt ISO8601DateTime!

Autogenerated return type of UnblockDevice.

Field Type
device Device!

Autogenerated return type of UnblockDevices.

Field Type
count Int!

Autogenerated return type of UnenrollClient.

Field Type
client Client!

Autogenerated return type of UpdateActor.

Field Type
actor Actor!

Autogenerated return type of UpdateClient.

Field Type
client Client!

Autogenerated return type of UpdateDomainClaim.

Field Type
domainClaim DomainClaim!

Autogenerated return type of UpdateEventStream.

Field Type
eventStream EventStream!

Autogenerated return type of UpdateGroup.

Field Type
group Group!

Autogenerated return type of UpdateMailTemplate.

Field Type
mailTemplate MailTemplate!

Autogenerated return type of UpdateOrganization.

Field Type
organization Organization!

Autogenerated return type of UpdateProvider.

Field Type
provider Provider!

Autogenerated return type of UpdateSender.

Field Type
sender Sender!

Autogenerated return type of UpdateSignInPolicy.

Field Type
signInPolicy SignInPolicy!

Autogenerated return type of UpdateTenant.

Field Type
tenant Tenant!

Autogenerated return type of UploadAvatar.

Field Type
actor Actor!

Autogenerated return type of UploadTenantLogo.

Field Type
tenant Tenant!

Autogenerated return type of VerifyEmail.

Field Type
actor Actor!
delivered Boolean!
url String

One condition of a group’s rule.

Field Type Description
kind String! email_domain or profile.
field String For profile: name, given_name, family_name, middle_name, nickname, gender, zoneinfo, or locale.
value String! The domain a verified email address ends with, or the value the profile field equals.

An ISO 8601-encoded date

A scalar.

An ISO 8601-encoded datetime

A scalar.

Represents untyped JSON

A scalar.

A scalar.