AlmondTill/G3N API

suggestionSchema

query · in the family Suggestion schema

What it does

Look up one record — a suggestion schema — one detector the desk runs (or is parked from running) for your organization.

One SuggestionSchema by id. The record must belong to your organization group; an id from another group reads as not found.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Reading your records — Looking up and listing the records of your organization.

Roles that may call it:

What happens

Reads only — changes nothing.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

SuggestionSchema — A SuggestionSchema: ONE row per (Organization × declared skill), ensure-minted lazily at the first desk refresh (authorless; the (org × skill) uniqueness marker makes the ensure race-proof). Parking it stops the generator for the org (‘we no longer run these’ — reactivatable, owner-gated A2_STRUCTURE); dooming is the deliberate permanent kill (parked-first; refused CONFLICT/REFERENCED while open suggestions still cite it; a doomed schema never re-ensures). Every Suggestion's schemaId drills down here — provenance to the generator. The skill's declared words/watches/drafts live in the contracts SUGGESTION_SKILL_REGISTRY. The ops event domain (at.ops.suggestion_schema.*).

Example request

graphql
query ExampleSuggestionSchema($id: ID!) {
  suggestionSchema(id: $id) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    skill
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-0951c7be0000"
}

Example response

json
{
  "data": {
    "suggestionSchema": {
      "id": "01900000-0000-7000-8000-0951c7be0000",
      "sysId": "SS-EXMP-0000-000F",
      "type": "SuggestionSchema",
      "caption": "Blue jeans",
      "status": "active",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "skill": "<skill>"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer