Use Deal Desk Data
Understand deal records and use them from the website, GraphQL API, or an agent.
Deal Desk keeps the agreement, operational history, and supporting
evidence together. The website, GraphQL API, and sai-deal-desk command-line
program use the same stored records.
Note: This guide will ship with a downloadable agent skill to make setup and data access easier. The skill is planned; it is not available to download yet.
What the Records Mean
| Record | What it tells you |
|---|---|
| Deal identity and contacts | Who the agreement is with, its stable ID, and associated referral codes, wallets, or conversations |
| Terms | What was agreed, including conditions, periods, reward amounts, and payment forms; the API calls these signals |
| Evaluations | What was measured against a term, when it was measured, and whether the available history is complete |
| Actions and completions | Work recorded against the agreement, with its supporting evidence |
| Payments and execution evidence | What was issued, how it was issued, and the recorded proof of execution |
| Communications | What was sent and which deal activity it concerns |
A term describes the agreement. An evaluation describes a measurement. Neither alone proves that a payment was executed. Read the payment’s execution evidence and completed actions before reporting what someone received or what remains due.
Incomplete history is not zero activity. Include measurement dates and coverage limits in summaries. Keep monetary values as exact decimal strings rather than rounding them through floating-point arithmetic.
Keep USDC trading credits, withdrawable deposits, and cash payments distinct when describing what was issued. The payment form is part of the record.
Get Access
Ask Unique for the access needed for your work:
- Website: an approved Google account to read the workspace at
/ops. - API or agent: an individually named API key with the appropriate permissions. Read-only access is sufficient for pulling data and preparing summaries.
Browser sign-in and API keys are separate. A key’s read-only setting prevents record writes; it does not restrict reads to a single selected deal. Agree on what data your task should use when requesting access.
Keep the key in your local credential or agent secret store. Give your agent access through that store rather than pasting the secret into a task prompt. Unique provisions keys; teammates do not need Google Cloud administration access for routine API requests.
Query the GraphQL API
Send requests to https://deals-api.sai.fun/graphql with the issued key:
POST /graphqlAuthorization: Bearer <issued-api-key>Content-Type: application/jsonStart with this JSON request body to check the credential and its permissions:
{"query": "query { credential }"}To read a deal by its stable ID or referral code, use this GraphQL query:
query DealRecords($selectors: String!) { view( selectors: $selectors fields: "deal,signals,payments,completions,latestEvaluations" )}Supply a variables object such as:
{"selectors": "<deal-id-or-referral-code>"}The view field returns a JSON projection, so it has no nested GraphQL selection
set. The directory query lists stored deal identities and aliases when you
need to find a selector. Check for GraphQL errors as well as HTTP failures
before treating a response as a successful read.
Use the CLI with an Agent
If Unique has provided a cloud-configured sai-deal-desk CLI installation,
these commands check access and read stored records:
sai-deal-desk healthsai-deal-desk auth keys statussai-deal-desk deals view <deal-id-or-referral-code> --format jsonRoutine reads use the hosted API. They do not require a local database copy,
Telegram session, or Google Cloud login. The issued key alone does not configure
the CLI’s record target; use direct GraphQL access if you have not been given a
cloud-configured installation. Key creation and revocation are
administrator operations; the CLI’s auth keys setup command is not a
self-service access request.
Give Your Agent a Clear Task
Start with a specific deal and question. For example:
Use my configured read-only Sai Deal Desk credential to review
<deal-id-or-referral-code>. Summarize the agreed conditions, latest evaluation and coverage, completed actions, and recorded payment executions. Cite record IDs and timestamps. Separate recorded facts from questions that need a human decision. Keep the task read-only and return proposed follow-ups for review.
An API key provides data access. It does not establish commercial approval or supply the signing authority needed for an onchain payment. Treat record edits, message delivery, and financial execution as separate approved tasks.
For group setup, use Create a Telegram Chat.