For the complete documentation index, see llms.txt. This page is also available as Markdown.

Query RFIs

Retrieve your RFIs and their questions

Retrieving a single RFI

Use the rfi query with the id from the rfi_created webhook to load the questions and the linked transactions. The query returns null if the RFI does not exist or does not belong to you.

const bodyJSON = {
  variables: {
    id: "61f3a2c8d1e9b7a4c5d6e7f8",
  },
  query: `
query ($id: ID!) {
  rfi(id: $id) {
    id
    status
    statusMessage
    deadline
    questions {
      questionCode
      questionText
      fileUploadOption
      answered
    }
    withdrawals { id status }
    deposits { id status }
    payments { id status }
    createdAt
  }
}`,
};

The key RFI fields

Field
Description

status

One of PENDING, ASSESSING, CLOSED β€” see RFI statuses

statusMessage

Human-readable explanation of the current status

deadline

Submission deadline. Respond before it passes

questions

The questions to answer. answered tells you which ones are still open

deposits / withdrawals / payments

The transactions this RFI is gating, in the same shape as the deposit, withdrawal, and payment queries

Each question's fileUploadOption tells you what kind of answer it expects β€” see Answer RFI questions.

Retrieving all RFIs

Use the rfis query, for example to find everything still awaiting your response.

Filter fields on RfisInput

Field
Description

statuses

Filter by one or more RFI statuses

minCreatedAt

Return only RFIs created at or after this timestamp (ISO 8601, inclusive)

maxCreatedAt

Return only RFIs created at or before this timestamp (ISO 8601, inclusive)

All filters are optional and combined with an "AND" logic when more than one is supplied. With no input, all your RFIs will be returned.

Last updated

Was this helpful?