MagicTokenSearchInput
Search criteria for filtering magic tokens.
Supports filtering by various token properties including associated users, expiration dates, usage statistics, and pagination options.
input MagicTokenSearchInput {
ids: [String!]
contactIds: [Int!]
customerIds: [Int!]
expiresAt: DateSearchInput
oneTimeUse: Boolean
failedLogins: IntegerRangeSearchInput
successfulLogins: IntegerRangeSearchInput
createdAt: DateSearchInput
lastModifiedAt: DateSearchInput
page: Int!
offset: Int!
}
Fields
MagicTokenSearchInput.ids
● [String!]
list scalar
Filter by specific magic token IDs.
Returns only tokens whose IDs match the provided list. Useful for retrieving specific tokens.
MagicTokenSearchInput.contactIds
● [Int!]
list scalar
Filter by contact identifiers.
Returns tokens associated with any of the specified contact IDs. Useful for finding all tokens belonging to specific contacts.
MagicTokenSearchInput.customerIds
● [Int!]
list scalar
Filter by customer identifiers.
Returns tokens associated with any of the specified customer IDs. Useful for finding all tokens belonging to specific customers.
MagicTokenSearchInput.expiresAt
● DateSearchInput
input
Filter by token expiration date range.
Allows filtering tokens based on their expiration timestamps. Useful for finding expired tokens or tokens expiring within a specific timeframe.
MagicTokenSearchInput.oneTimeUse
● Boolean
scalar
Filter by one-time use restriction.
When true, returns only tokens that can be used once. When false, returns only reusable tokens. When null, returns all tokens regardless of usage restriction.
MagicTokenSearchInput.failedLogins
● IntegerRangeSearchInput
input
Filter by failed login attempt count range.
Allows filtering tokens based on the number of failed authentication attempts. Useful for security monitoring and identifying potentially compromised tokens.
MagicTokenSearchInput.successfulLogins
● IntegerRangeSearchInput
input
Filter by successful login attempt count range.
Allows filtering tokens based on the number of successful authentication attempts. Useful for usage analytics and identifying heavily used tokens.
MagicTokenSearchInput.createdAt
● DateSearchInput
input
Filter by token creation date range.
Allows filtering tokens based on when they were originally created. Useful for finding tokens created within specific time periods.
MagicTokenSearchInput.lastModifiedAt
● DateSearchInput
input
Filter by last modification date range.
Allows filtering tokens based on when they were last updated. Useful for finding recently modified tokens or tracking changes.
MagicTokenSearchInput.page
● Int!
non-null scalar
Page number for pagination.
Specifies which page of results to return. Must be 1 or greater.
MagicTokenSearchInput.offset
● Int!
non-null scalar
Number of items per page.
Controls how many magic tokens are returned in each page. Must be 1 or greater.
Member Of
magicTokens
query