{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-grafana/json-schema/amazon-managed-grafana-list-workspace-service-account-tokens-response-schema.json",
  "title": "ListWorkspaceServiceAccountTokensResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-managed-grafana-tokens-api-openapi.yml#/components/schemas/ListWorkspaceServiceAccountTokensResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "The token to use when requesting the next set of service accounts."
    },
    "serviceAccountTokens": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServiceAccountTokenSummary"
      },
      "description": "An array of structures containing information about the tokens."
    },
    "serviceAccountId": {
      "type": "string",
      "description": "The ID of the service account where the tokens reside."
    },
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace where the tokens reside."
    }
  },
  "required": [
    "serviceAccountTokens",
    "serviceAccountId",
    "workspaceId"
  ],
  "$defs": {
    "ServiceAccountTokenSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID of the service account token."
        },
        "name": {
          "type": "string",
          "description": "The name of the service account token."
        },
        "createdAt": {
          "type": "string",
          "description": "When the service account token was created."
        },
        "expiresAt": {
          "type": "string",
          "description": "When the service account token will expire."
        },
        "lastUsedAt": {
          "type": "string",
          "description": "The last time the token was used to authorize a Grafana HTTP API."
        }
      },
      "required": [
        "id",
        "name",
        "createdAt",
        "expiresAt"
      ]
    }
  }
}