{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-grafana/json-schema/amazon-managed-grafana-create-workspace-service-account-token-response-schema.json",
  "title": "CreateWorkspaceServiceAccountTokenResponse",
  "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/CreateWorkspaceServiceAccountTokenResponse",
  "type": "object",
  "properties": {
    "serviceAccountToken": {
      "$ref": "#/$defs/ServiceAccountTokenSummaryWithKey"
    },
    "serviceAccountId": {
      "type": "string",
      "description": "The ID of the service account where the token was created."
    },
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace where the token was created."
    }
  },
  "required": [
    "serviceAccountToken",
    "serviceAccountId",
    "workspaceId"
  ],
  "$defs": {
    "ServiceAccountTokenSummaryWithKey": {
      "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."
        },
        "key": {
          "type": "string",
          "description": "The key for the service account token. Used when making calls to the Grafana HTTP APIs to authenticate and authorize the requests."
        }
      },
      "required": [
        "id",
        "name",
        "key"
      ]
    }
  }
}