{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-client-app-post-response-schema.json",
  "title": "ClientAppPostResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mammoth-io-client-apps-api-openapi.yml#/components/schemas/ClientAppPostResponse",
  "properties": {
    "app_name": {
      "type": "string",
      "description": "Name of client app or api tokens"
    },
    "app_key": {
      "type": "string",
      "description": "App key of client app or api tokens"
    },
    "description": {
      "type": "string",
      "description": "Description of client app or api tokens"
    },
    "workspace_id": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "description": "Workspace ID of client app or api tokens"
    },
    "user_id": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "description": "User ID of client app or api tokens"
    },
    "token": {
      "type": "string",
      "description": "The plaintext Bearer token. Returned exactly once — it is never recoverable after this response."
    },
    "expires_at": {
      "oneOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "When the token stops working (UTC). Null = it never expires. Set on a token the Mammoth CLI creates."
    }
  },
  "type": "object",
  "required": [
    "app_key",
    "app_name",
    "description",
    "token",
    "user_id",
    "workspace_id"
  ]
}