lists.sr.ht API Documentation
Queries
@access(scope:EMAILS, kind:RO)
Looks up a specific email by its ID
Returns Email
Argumentsid
- Int!
Example Query
query email($id: Int!) {
email(id: $id) {
id
sender {
...Entity
}
received
date
subject
messageID
inReplyTo
header
addressList {
...Mailbox
}
body
envelope
thread {
...Thread
}
parent {
...Email
}
patch {
...Patch
}
patchset {
...Patchset
}
list {
...MailingList
}
}
}
me
@access(scope:PROFILE, kind:RO)
Returns the authenticated user
Returns User!
Example Query
query me {
me {
id
created
updated
canonicalName
username
email
url
location
bio
list {
...MailingList
}
lists {
...MailingListCursor
}
emails {
...EmailCursor
}
threads {
...ThreadCursor
}
patches {
...PatchsetCursor
}
}
}
message
@access(scope:EMAILS, kind:RO)
Looks up a specific email by its Message-ID header, including the angle brackets ('<' and '>').
Returns Email
ArgumentsmessageID
- String!
Example Query
query message($messageID: String!) {
message(messageID: $messageID) {
id
sender {
...Entity
}
received
date
subject
messageID
inReplyTo
header
addressList {
...Mailbox
}
body
envelope
thread {
...Thread
}
parent {
...Email
}
patch {
...Patch
}
patchset {
...Patchset
}
list {
...MailingList
}
}
}
patchset
@access(scope:EMAILS, kind:RO)
Looks up a patchset by ID
Returns Patchset
Argumentsid
- Int!
Example Query
query patchset($id: Int!) {
patchset(id: $id) {
id
created
updated
subject
version
prefix
status
submitter {
...Entity
}
coverLetter {
...Email
}
thread {
...Thread
}
supersededBy {
...Patchset
}
list {
...MailingList
}
patches {
...EmailCursor
}
tools {
...PatchsetTool
}
mbox
}
}
subscriptions
@access(scope:SUBSCRIPTIONS, kind:RO)
List of subscriptions of the authenticated user
Returns ActivitySubscriptionCursor
Argumentscursor
- Cursor
Example Query
query subscriptions($cursor: Cursor) {
subscriptions(cursor: $cursor) {
results {
...ActivitySubscription
}
cursor
}
}
user
@access(scope:PROFILE, kind:RO)
Looks up a specific user
Returns User
Argumentsusername
- String!
Example Query
query user($username: String!) {
user(username: $username) {
id
created
updated
canonicalName
username
email
url
location
bio
list {
...MailingList
}
lists {
...MailingListCursor
}
emails {
...EmailCursor
}
threads {
...ThreadCursor
}
patches {
...PatchsetCursor
}
}
}
userWebhook
Returns details of a user webhook subscription by its ID.
Returns WebhookSubscription
Argumentsid
- Int!
Example Query
query userWebhook($id: Int!) {
userWebhook(id: $id) {
id
events
query
url
client {
...OAuthClient
}
deliveries {
...WebhookDeliveryCursor
}
sample
}
}
userWebhooks
Returns a list of user webhook subscriptions. For clients authenticated with a personal access token, this returns all webhooks configured by all GraphQL clients for your account. For clients authenticated with an OAuth 2.0 access token, this returns only webhooks registered for your client.
Returns WebhookSubscriptionCursor!
Argumentscursor
- Cursor
Example Query
query userWebhooks($cursor: Cursor) {
userWebhooks(cursor: $cursor) {
results {
...WebhookSubscription
}
cursor
}
}
version
Returns API version information
Returns Version!
Example Query
query version {
version {
major
minor
patch
deprecationDate
}
}
webhook
Returns information about the webhook currently being processed. This is not valid during normal queries over HTTP, and will return an error if used outside of a webhook context.
Returns WebhookPayload!
Example Query
query webhook {
webhook {
uuid
event
date
}
}
Mutations
archiveMessage
Archives an email (RFC 2045 MIME message) into a mailing list. Internal use only.
Returns Boolean!
ArgumentsExample Query
query archiveMessage($listID: Int!, $message: Upload!) {
archiveMessage(listID: $listID, message: $message) {
}
}
confirmSubscription
Confirm a subscription request with a token previously obtained with requestSubscription().
Internal use only.
Returns MailingListSubscription!
Argumentstoken
- ConfirmationToken!email
- String!
Example Query
query confirmSubscription($token: ConfirmationToken!, $email: String!) {
confirmSubscription(token: $token, email: $email) {
id
created
list {
...MailingList
}
subscriber {
...Entity
}
}
}
confirmUnsubscription
Confirm an unsubscription request with a token previously obtained with requestUnsubscription().
Internal use only.
Returns MailingListSubscription!
Argumentstoken
- ConfirmationToken!email
- String!
Example Query
query confirmUnsubscription($token: ConfirmationToken!, $email: String!) {
confirmUnsubscription(token: $token, email: $email) {
id
created
list {
...MailingList
}
subscriber {
...Entity
}
}
}
createMailingList
@access(scope:LISTS, kind:RW)
Creates a new mailing list
Returns MailingList!
Argumentsname
- String!description
- Stringvisibility
- Visibility!
Example Query
query createMailingList($name: String!, $description: String, $visibility: Visibility!) {
createMailingList(name: $name, description: $description, visibility: $visibility) {
id
created
updated
name
owner {
...Entity
}
description
visibility
permitMime
rejectMime
threads {
...ThreadCursor
}
emails {
...EmailCursor
}
patches {
...PatchsetCursor
}
message {
...Email
}
importing
access {
...ACL
}
subscription {
...MailingListSubscription
}
archive
last30days
acl {
...MailingListACLCursor
}
defaultACL {
...GeneralACL
}
webhooks {
...WebhookSubscriptionCursor
}
webhook {
...WebhookSubscription
}
subscriptions {
...MailingListSubscription
}
userACL {
...GeneralACL
}
}
}
createMailingListWebhook
Creates a new mailing list webhook.
Returns WebhookSubscription!
ArgumentslistId
- Int!config
- MailingListWebhookInput!
Example Query
query createMailingListWebhook($listId: Int!, $config: MailingListWebhookInput!) {
createMailingListWebhook(listId: $listId, config: $config) {
id
events
query
url
client {
...OAuthClient
}
deliveries {
...WebhookDeliveryCursor
}
sample
}
}
createTool
@access(scope:PATCHES, kind:RW)
Create a new patchset tool
Returns PatchsetTool
ArgumentsExample Query
query createTool($patchsetID: Int!, $details: String!, $icon: ToolIcon!) {
createTool(patchsetID: $patchsetID, details: $details, icon: $icon) {
id
created
updated
icon
details
patchset {
...Patchset
}
}
}
createUserWebhook
Creates a new user webhook subscription. When an event from the provided list of events occurs, the 'query' parameter (a GraphQL query) will be evaluated and the results will be sent to the provided URL as the body of an HTTP POST request. The list of events must include at least one event, and no duplicates.
This query is evaluated in the webhook context, such that query { webhook } may be used to access details of the event which trigged the webhook. The query may not make any mutations.
Returns WebhookSubscription!
Argumentsconfig
- UserWebhookInput!
Example Query
query createUserWebhook($config: UserWebhookInput!) {
createUserWebhook(config: $config) {
id
events
query
url
client {
...OAuthClient
}
deliveries {
...WebhookDeliveryCursor
}
sample
}
}
deleteACL
@access(scope:ACLS, kind:RW)
Removes a mailing list ACL. Following this, the default mailing list ACL will apply to this user.
Returns MailingListACL
Argumentsid
- Int!
Example Query
query deleteACL($id: Int!) {
deleteACL(id: $id) {
id
created
list {
...MailingList
}
entity {
...Entity
}
browse
reply
post
moderate
}
}
deleteMailingList
@access(scope:LISTS, kind:RW)
Deletes a mailing list
Returns MailingList
Argumentsid
- Int!
Example Query
query deleteMailingList($id: Int!) {
deleteMailingList(id: $id) {
id
created
updated
name
owner {
...Entity
}
description
visibility
permitMime
rejectMime
threads {
...ThreadCursor
}
emails {
...EmailCursor
}
patches {
...PatchsetCursor
}
message {
...Email
}
importing
access {
...ACL
}
subscription {
...MailingListSubscription
}
archive
last30days
acl {
...MailingListACLCursor
}
defaultACL {
...GeneralACL
}
webhooks {
...WebhookSubscriptionCursor
}
webhook {
...WebhookSubscription
}
subscriptions {
...MailingListSubscription
}
userACL {
...GeneralACL
}
}
}
deleteMailingListWebhook
Deletes a mailing list webhook.
Returns WebhookSubscription!
Argumentsid
- Int!
Example Query
query deleteMailingListWebhook($id: Int!) {
deleteMailingListWebhook(id: $id) {
id
events
query
url
client {
...OAuthClient
}
deliveries {
...WebhookDeliveryCursor
}
sample
}
}
deleteUser
Deletes the authenticated user's account. Internal use only.
Returns Int!
Example Query
query deleteUser {
deleteUser {
}
}
deleteUserWebhook
Deletes a user webhook. Any events already queued may still be delivered after this request completes. Clients authenticated with a personal access token may delete any webhook registered for their account, but authorized OAuth 2.0 clients may only delete their own webhooks. Manually deleting a webhook configured by a third-party client may cause unexpected behavior with the third-party integration.
Returns WebhookSubscription!
Argumentsid
- Int!
Example Query
query deleteUserWebhook($id: Int!) {
deleteUserWebhook(id: $id) {
id
events
query
url
client {
...OAuthClient
}
deliveries {
...WebhookDeliveryCursor
}
sample
}
}
importMailingListSpool
@access(scope:LISTS, kind:RW)
Imports a mail spool (must be in the Mbox format)
Returns Boolean!
ArgumentsExample Query
query importMailingListSpool($listID: Int!, $spool: Upload!) {
importMailingListSpool(listID: $listID, spool: $spool) {
}
}
mailingListSubscribe
@access(scope:SUBSCRIPTIONS, kind:RW)
Creates a mailing list subscription
Returns MailingListSubscription
ArgumentslistID
- Int!
Example Query
query mailingListSubscribe($listID: Int!) {
mailingListSubscribe(listID: $listID) {
id
created
list {
...MailingList
}
subscriber {
...Entity
}
}
}
mailingListUnsubscribe
@access(scope:SUBSCRIPTIONS, kind:RW)
Deletes a mailing list subscription
Returns MailingListSubscription
ArgumentslistID
- Int!
Example Query
query mailingListUnsubscribe($listID: Int!) {
mailingListUnsubscribe(listID: $listID) {
id
created
list {
...MailingList
}
subscriber {
...Entity
}
}
}
requestSubscription
Request a subscription to a mailing list for a given email address. If the email is linked to a registered account, the subscription will be associated to the account. Otherwise, it will be associated to the mailbox. If a pending subscription request already exists for that list and email pair, the existing confirmation token will be returned.
Internal use only.
Returns ConfirmationToken!
ArgumentsExample Query
query requestSubscription($listID: Int!, $email: String!) {
requestSubscription(listID: $listID, email: $email) {
}
}
requestUnsubscription
Request unsubscription from a mailing list for a given email address.
Internal use only.
Returns ConfirmationToken!
ArgumentsExample Query
query requestUnsubscription($listID: Int!, $email: String!) {
requestUnsubscription(listID: $listID, email: $email) {
}
}
triggerListEmailWebhooks
Returns Email!
ArgumentsExample Query
query triggerListEmailWebhooks($listId: Int!, $emailId: Int!) {
triggerListEmailWebhooks(listId: $listId, emailId: $emailId) {
id
sender {
...Entity
}
received
date
subject
messageID
inReplyTo
header
addressList {
...Mailbox
}
body
envelope
thread {
...Thread
}
parent {
...Email
}
patch {
...Patch
}
patchset {
...Patchset
}
list {
...MailingList
}
}
}
triggerUserEmailWebhooks
Triggers user webhooks for an email.
The result can be null if the user does not have browse access to the archived email. In this case, no webhook will be triggered.
Returns Email
ArgumentsemailId
- Int!
Example Query
query triggerUserEmailWebhooks($emailId: Int!) {
triggerUserEmailWebhooks(emailId: $emailId) {
id
sender {
...Entity
}
received
date
subject
messageID
inReplyTo
header
addressList {
...Mailbox
}
body
envelope
thread {
...Thread
}
parent {
...Email
}
patch {
...Patch
}
patchset {
...Patchset
}
list {
...MailingList
}
}
}
updateMailingList
@access(scope:LISTS, kind:RW)
Updates a mailing list.
Returns MailingList
Argumentsid
- Int!input
- MailingListInput!
Example Query
query updateMailingList($id: Int!, $input: MailingListInput!) {
updateMailingList(id: $id, input: $input) {
id
created
updated
name
owner {
...Entity
}
description
visibility
permitMime
rejectMime
threads {
...ThreadCursor
}
emails {
...EmailCursor
}
patches {
...PatchsetCursor
}
message {
...Email
}
importing
access {
...ACL
}
subscription {
...MailingListSubscription
}
archive
last30days
acl {
...MailingListACLCursor
}
defaultACL {
...GeneralACL
}
webhooks {
...WebhookSubscriptionCursor
}
webhook {
...WebhookSubscription
}
subscriptions {
...MailingListSubscription
}
userACL {
...GeneralACL
}
}
}
updateMailingListACL
@access(scope:ACLS, kind:RW)
Updates the default ACL for a mailing list, which applies to users and senders for whom a more specific ACL does not exist.
Returns MailingList
ArgumentsExample Query
query updateMailingListACL($listID: Int!, $input: ACLInput!) {
updateMailingListACL(listID: $listID, input: $input) {
id
created
updated
name
owner {
...Entity
}
description
visibility
permitMime
rejectMime
threads {
...ThreadCursor
}
emails {
...EmailCursor
}
patches {
...PatchsetCursor
}
message {
...Email
}
importing
access {
...ACL
}
subscription {
...MailingListSubscription
}
archive
last30days
acl {
...MailingListACLCursor
}
defaultACL {
...GeneralACL
}
webhooks {
...WebhookSubscriptionCursor
}
webhook {
...WebhookSubscription
}
subscriptions {
...MailingListSubscription
}
userACL {
...GeneralACL
}
}
}
updatePatchset
@access(scope:PATCHES, kind:RW)
Updates the status of a patchset
Returns Patchset
Argumentsid
- Int!status
- PatchsetStatus!
Example Query
query updatePatchset($id: Int!, $status: PatchsetStatus!) {
updatePatchset(id: $id, status: $status) {
id
created
updated
subject
version
prefix
status
submitter {
...Entity
}
coverLetter {
...Email
}
thread {
...Thread
}
supersededBy {
...Patchset
}
list {
...MailingList
}
patches {
...EmailCursor
}
tools {
...PatchsetTool
}
mbox
}
}
updateSenderACL
@access(scope:ACLS, kind:RW)
Adds or updates the ACL for an email address on a mailing list
Returns MailingListACL
ArgumentsExample Query
query updateSenderACL($listID: Int!, $address: String!, $input: ACLInput!) {
updateSenderACL(listID: $listID, address: $address, input: $input) {
id
created
list {
...MailingList
}
entity {
...Entity
}
browse
reply
post
moderate
}
}
updateTool
@access(scope:PATCHES, kind:RW)
Updates the status of a patchset tool by its ID
Returns PatchsetTool
ArgumentsExample Query
query updateTool($id: Int!, $details: String, $icon: ToolIcon) {
updateTool(id: $id, details: $details, icon: $icon) {
id
created
updated
icon
details
patchset {
...Patchset
}
}
}
updateUserACL
@access(scope:ACLS, kind:RW)
Adds or updates the ACL for a user on a mailing list
Returns MailingListACL
ArgumentsExample Query
query updateUserACL($listID: Int!, $userID: Int!, $input: ACLInput!) {
updateUserACL(listID: $listID, userID: $userID, input: $input) {
id
created
list {
...MailingList
}
entity {
...Entity
}
browse
reply
post
moderate
}
}
Definitions
ACL
FieldsACLInput
FieldsAccessKind
Enum ValuesRO
RW
AccessScope
Enum ValuesACLS
EMAILS
LISTS
PATCHES
PROFILE
SUBSCRIPTIONS
ActivitySubscription
FieldsActivitySubscriptionCursor
A cursor for enumerating subscriptions
If there are additional results available, the cursor object may be passed back into the same endpoint to retrieve another page. If the cursor is null, there are no remaining results to return.
Fieldsresults
- [ActivitySubscription]!cursor
- Cursor
Boolean
The Boolean
scalar type represents true
or false
.
ByteRange
A byte range.
FieldsConfirmationToken
Confirmation token associated with a subscription request
Cursor
Opaque string
id
- Int!sender
- Entity!- The entity which sent this email. Will be a User if it can be associated with an account, or a Mailbox otherwise.
received
- Time!- Time we received this email (non-forgable).
date
- Time- Time given by Date header (forgable).
subject
- String!- The Subject header.
messageID
- String!- The Message-ID header, without angle brackets.
inReplyTo
- String- The In-Reply-To header, if present, without angle brackets.
header
- [String]!- Provides the value (or values) of a specific header from this email. Note that the returned value is coerced to UTF-8 and may be lossy under certain circumstances.
addressList
- [Mailbox]!- Retrieves the value of an address list header, such as To or Cc.
body
- String!- The decoded text/plain message part of the email, i.e. email body.
envelope
- URL!- A URL from which the full raw message envelope may be downloaded.
thread
- Thread!parent
- Emailpatch
- Patchpatchset
- Patchset@access(scope:PATCHES, kind:RO)
list
- MailingList!@access(scope:LISTS, kind:RO)
EmailCursor
A cursor for enumerating emails
If there are additional results available, the cursor object may be passed back into the same endpoint to retrieve another page. If the cursor is null, there are no remaining results to return.
FieldsEmailEvent
Fieldsuuid
- String!event
- WebhookEvent!date
- Time!email
- Email!
Entity
FieldscanonicalName
- String!
Float
The Float
scalar type represents signed double-precision fractional values as specified by IEEE 754.
GeneralACL
An ACL entry that applies "generally", for example the rights which apply to all subscribers to a list.
FieldsID
The ID
scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.
Int
The Int
scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Mailbox
A mailbox not associated with a registered user
FieldsMailingList
Fieldsid
- Int!created
- Time!updated
- Time!name
- String!owner
- Entity!@access(scope:PROFILE, kind:RO)
description
- Stringvisibility
- Visibility!permitMime
- [String]!- List of globs for permitted or rejected mimetypes on this list e.g. text/*
rejectMime
- [String]!threads
- ThreadCursor!@access(scope:EMAILS, kind:RO)
- List of threads on this list in order of most recently bumped
emails
- EmailCursor!@access(scope:EMAILS, kind:RO)
- List of emails received on this list in reverse chronological order
patches
- PatchsetCursor!@access(scope:PATCHES, kind:RO)
- List of patches received on this list in order of most recently bumped
message
- Email@access(scope:EMAILS, kind:RO)
- Get a specific email archived in this list by its Message-ID
importing
- Boolean!- True if an import operation is underway for this list
access
- ACL!@access(scope:ACLS, kind:RO)
- The access that applies to this user for this list
subscription
- MailingListSubscription@access(scope:SUBSCRIPTIONS, kind:RO)
- The user's subscription for this list, if any
archive
- URL!- URLs to application/mbox archives for this mailing list
last30days
- URL!acl
- MailingListACLCursor!@access(scope:ACLS, kind:RO)
- Access control list entries for this mailing list
defaultACL
- GeneralACL!webhooks
- WebhookSubscriptionCursor!- Returns a list of mailing list webhook subscriptions. For clients authenticated with a personal access token, this returns all webhooks configured by all GraphQL clients for your account. For clients authenticated with an OAuth 2.0 access token, this returns only webhooks registered for your client.
webhook
- WebhookSubscription- Returns details of a mailing list webhook subscription by its ID.
subscriptions
- [MailingListSubscription]!- Get the list of subscriptions to this mailing list. Internal use only.
userACL
- GeneralACL!- Get access permissions for a specific user by their email address. If there is a related ACL entry for the given email address or an account linked to that address, it will be returned. Otherwise, the default ACL of the mailing list will be returned. Internal use only.
MailingListACL
These ACLs are configured for specific entities, and may be used to expand or constrain the rights of a participant.
FieldsMailingListACLCursor
A cursor for enumerating ACL entries
If there are additional results available, the cursor object may be passed back into the same endpoint to retrieve another page. If the cursor is null, there are no remaining results to return.
Fieldsresults
- [MailingListACL]!cursor
- Cursor
MailingListCursor
A cursor for enumerating mailing lists
If there are additional results available, the cursor object may be passed back into the same endpoint to retrieve another page. If the cursor is null, there are no remaining results to return.
Fieldsresults
- [MailingList]!cursor
- Cursor
MailingListEvent
Fieldsuuid
- String!event
- WebhookEvent!date
- Time!list
- MailingList!
MailingListInput
Fieldsdescription
- Stringvisibility
- VisibilitypermitMime
- [String]- List of globs for permitted or rejected mimetypes on this list e.g. text/*
rejectMime
- [String]
MailingListSubscription
FieldsMailingListWebhookInput
Fieldsurl
- String!events
- [WebhookEvent]!query
- String!
MailingListWebhookSubscription
Fieldsid
- Int!events
- [WebhookEvent]!query
- String!url
- String!client
- OAuthClientdeliveries
- WebhookDeliveryCursor!sample
- String!list
- MailingList!
OAuthClient
Fieldsuuid
- String!
Patch
Information parsed from the subject line of a patch, such that the following:
[PATCH myproject v2 3/4] Add foo to bar
Will produce:
index: 3
count: 4
version: 2
prefix: "myproject"
subject: "Add foo to bar"
Fields
Patchset
Fieldsid
- Int!created
- Time!updated
- Time!subject
- String!version
- Int!prefix
- Stringstatus
- PatchsetStatus!submitter
- Entity!coverLetter
- Email@access(scope:EMAILS, kind:RO)
thread
- Thread!@access(scope:EMAILS, kind:RO)
supersededBy
- Patchsetlist
- MailingList!@access(scope:LISTS, kind:RO)
patches
- EmailCursor!@access(scope:EMAILS, kind:RO)
tools
- [PatchsetTool]!mbox
- URL!- URL to an application/mbox archive of only the patches in this thread
PatchsetCursor
A cursor for enumerating patchsets
If there are additional results available, the cursor object may be passed back into the same endpoint to retrieve another page. If the cursor is null, there are no remaining results to return.
FieldsPatchsetEvent
Fieldsuuid
- String!event
- WebhookEvent!date
- Time!patchset
- Patchset!
PatchsetStatus
Enum ValuesUNKNOWN
PROPOSED
NEEDS_REVISION
SUPERSEDED
APPROVED
REJECTED
APPLIED
PatchsetTool
Used to add some kind of indicator for a third-party process associated with a patchset, such as a CI service validating the change.
FieldsString
The String
scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Thread
Fieldscreated
- Time!updated
- Time!subject
- String!replies
- Int!participants
- Int!sender
- Entity!root
- Email!list
- MailingList!@access(scope:LISTS, kind:RO)
descendants
- EmailCursor!- Replies to this thread, in chronological order
mailto
- String!- A mailto: URI for replying to the latest message in this thread
mbox
- URL!- URL to an application/mbox archive of this thread
blocks
- [ThreadBlock]!- Thread parsed as a tree. The returned list is never empty. The first item is guaranteed to be the root message. The blocks are sorted in topological order.
ThreadBlock
A block of text in an email thread.
Blocks are parts of a message's body that aren't quotes of the parent message. A block can be a reply to a parent block, in which case the parentStart and parentEnd fields indicate which part of the parent message is replied to. A block can have replies, each of which will be represented by a block in the children field.
Fieldskey
- String!- Unique identifier for this block.
body
- String!- The block's plain-text content.
parent
- Int- Index of the parent block (if any) in Thread.blocks.
children
- [Int]!- Replies to this block. The list items are indexes into Thread.blocks.
source
- Email!- The email this block comes from.
sourceRange
- ByteRange!- The range of this block in the source email body.
parentRange
- ByteRange- If this block is a reply to a particular chunk of the parent block, this field indicates the range of that chunk in the parent's email body.
ThreadCursor
A cursor for enumerating threads
If there are additional results available, the cursor object may be passed back into the same endpoint to retrieve another page. If the cursor is null, there are no remaining results to return.
FieldsTime
String of the format %Y-%m-%dT%H:%M:%SZ
ToolIcon
Enum ValuesPENDING
WAITING
SUCCESS
FAILED
CANCELLED
URL
URL from which some secondary data may be retrieved. You must provide the same Authentication header to this address as you did to the GraphQL resolver which provided it. The URL is not guaranteed to be consistent for an extended length of time; applications should submit a new GraphQL query each time they wish to access the data at the provided URL.
Upload
User
A registered user
Fieldsid
- Int!created
- Time!updated
- Time!canonicalName
- String!username
- String!email
- String!url
- Stringlocation
- Stringbio
- Stringlist
- MailingList@access(scope:LISTS, kind:RO)
lists
- MailingListCursor!@access(scope:LISTS, kind:RO)
emails
- EmailCursor!@access(scope:EMAILS, kind:RO)
threads
- ThreadCursor!@access(scope:EMAILS, kind:RO)
patches
- PatchsetCursor!@access(scope:PATCHES, kind:RO)
UserWebhookInput
Fieldsurl
- String!events
- [WebhookEvent]!query
- String!
UserWebhookSubscription
Fieldsid
- Int!events
- [WebhookEvent]!query
- String!url
- String!client
- OAuthClientdeliveries
- WebhookDeliveryCursor!sample
- String!
Version
FieldsVisibility
Enum ValuesPUBLIC
UNLISTED
PRIVATE
WebhookDelivery
Fieldsuuid
- String!date
- Time!event
- WebhookEvent!subscription
- WebhookSubscription!requestBody
- String!responseBody
- String- These details are provided only after a response is received from the remote server. If a response is sent whose Content-Type is not text/*, or cannot be decoded as UTF-8, the response body will be null. It will be truncated after 64 KiB.
responseHeaders
- StringresponseStatus
- Int
WebhookDeliveryCursor
A cursor for enumerating a list of webhook deliveries
If there are additional results available, the cursor object may be passed back into the same endpoint to retrieve another page. If the cursor is null, there are no remaining results to return.
Fieldsresults
- [WebhookDelivery]!cursor
- Cursor
WebhookEvent
Enum ValuesLIST_CREATED
LIST_UPDATED
LIST_DELETED
EMAIL_RECEIVED
PATCHSET_RECEIVED
WebhookPayload
Fieldsuuid
- String!event
- WebhookEvent!date
- Time!
WebhookSubscription
Fieldsid
- Int!events
- [WebhookEvent]!query
- String!url
- String!client
- OAuthClient- If this webhook was registered by an authorized OAuth 2.0 client, this field is non-null.
deliveries
- WebhookDeliveryCursor!- All deliveries which have been sent to this webhook.
sample
- String!- Returns a sample payload for this subscription, for testing purposes
WebhookSubscriptionCursor
A cursor for enumerating a list of webhook subscriptions
If there are additional results available, the cursor object may be passed back into the same endpoint to retrieve another page. If the cursor is null, there are no remaining results to return.
Fieldsresults
- [WebhookSubscription]!cursor
- Cursor
Directives
@access
Decorates fields for which access requires a particular OAuth 2.0 scope with read or write access.
Argumentsscope
- AccessScope!kind
- AccessKind!
@defer
Directs the executor to defer this fragment when the if
argument is true or undefined.
@deprecated
Marks an element of a GraphQL schema as no longer supported.
Argumentsreason
- String- Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).
@include
Directs the executor to include this field or fragment only when the if
argument is true.
if
- Boolean!- Included when true.
@internal
This is used to decorate fields which are for internal use, and are not available to normal API users.
@oneOf
Indicates exactly one field must be supplied and this field must not be null
.
@private
This is used to decorate fields which are only accessible with a personal access token, and are not available to clients using OAuth 2.0 access tokens.
@scopehelp
Used to provide a human-friendly description of an access scope
Argumentsdetails
- String!
@skip
Directs the executor to skip this field or fragment when the if
argument is true.
if
- Boolean!- Skipped when true.
@specifiedBy
Exposes a URL that specifies the behavior of this scalar.
Argumentsurl
- String!- The URL that specifies the behavior of this scalar.