{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam-identity-center/json-schema/amazon-iam-identity-center-create-token-with-iamresponse-schema.json",
  "title": "CreateTokenWithIAMResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-identity-center-operations-api-openapi.yml#/components/schemas/CreateTokenWithIAMResponse",
  "type": "object",
  "properties": {
    "accessToken": {
      "type": "string",
      "description": "A bearer token to access Amazon Web Services accounts and applications assigned to a user."
    },
    "tokenType": {
      "type": "string",
      "description": "Used to notify the requester that the returned token is an access token. The supported token type is Bearer."
    },
    "expiresIn": {
      "type": "integer",
      "description": "Indicates the time in seconds when an access token will expire."
    },
    "refreshToken": {
      "type": "string",
      "description": "A token that, if present, can be used to refresh a previously issued access token that might have expired. For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference."
    },
    "idToken": {
      "type": "string",
      "description": "A JSON Web Token (JWT) that identifies the user associated with the issued access token."
    },
    "issuedTokenType": {
      "type": "string",
      "description": "Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported: * Access Token - urn:ietf:params:oauth:token-type:access_token * Refresh Token - urn:ietf:params:oauth:token-type:refresh_token"
    },
    "scope": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of scopes for which authorization is granted. The access token that is issued is limited to the scopes that are granted."
    },
    "awsAdditionalDetails": {
      "$ref": "#/$defs/AwsAdditionalDetails"
    }
  },
  "$defs": {
    "AwsAdditionalDetails": {
      "type": "object",
      "properties": {
        "identityContext": {
          "type": "string",
          "description": "The trusted context assertion is signed and encrypted by STS. It provides access to sts:identity_context claim in the idToken without JWT parsing Identity context comprises information that Amazon Web Services services use to make authorization decisions when they receive requests."
        }
      }
    }
  }
}