AlmondTill/G3N API

apiKey

query · in the family API key

What it does

Look up one record — an API key — a machine credential for integrations.

One ApiKey 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: System and integration setup — Registers, connections and the settings your systems run on.

Roles that may call it:

What happens

Reads only — changes nothing.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

ApiKey — An ApiKey — the third-party / programmatic access credential. Issued only by an org-group-level owner (the platform's live ownership gate — the minting actor is a User whose Account holds group ownership); parent = the minting User. Reach derives live from the minter's current ownerships — the key works on exactly the group's orgs where the minter is also currently an org owner; ownership loss/re-grant is never a transition (re-grant revives a not-doomed key). Descriptors ride the Roles grammar (allow/disallow, default-deny, disallow-wins), immutable at birth; mandatory expiry ≤ 12 months (the scheduler fires active → expired — a distinct doomed terminal). The secret shows once at mintApiKey, hash-only at rest, and is presented only to exchangeApiKey → a 24 h-absolute no-idle API session. NOT searchable; the reads are gated.

Example request

graphql
query ExampleApiKey($id: ID!) {
  apiKey(id: $id) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    expiresAt
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-9e3a95fe0000"
}

Example response

json
{
  "data": {
    "apiKey": {
      "id": "01900000-0000-7000-8000-9e3a95fe0000",
      "sysId": "AK-EXMP-0000-000F",
      "type": "ApiKey",
      "caption": "Blue jeans",
      "status": "active",
      "parentId": "01900000-0000-7000-8000-e0a63e120000",
      "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",
      "expiresAt": "2028-01-31T00:00:00.000Z"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer