{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stackit/json-schema/stackit-create-short-lived-access-token-payload-schema.json",
  "title": "TokenRequestBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-token-api-openapi.yml#/components/schemas/CreateShortLivedAccessTokenPayload",
  "properties": {
    "assertion": {
      "description": "The self signed JWT. Must be given when grant_type is urn:ietf:params:oauth:grant-type:jwt-bearer",
      "type": "string"
    },
    "grant_type": {
      "description": "Always use URL encoded values. E.g. urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer",
      "enum": [
        "urn:ietf:params:oauth:grant-type:jwt-bearer",
        "refresh_token"
      ],
      "type": "string"
    },
    "refresh_token": {
      "description": "Refresh token provided by a previous call with a self signed token. Must be given when grant_type is refresh_token",
      "type": "string"
    }
  },
  "required": [
    "grant_type"
  ],
  "type": "object"
}