{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricklymails-com/json-schema/pricklymails-com-session-response-schema.json",
  "title": "SessionResponse",
  "description": "Public representation of a session.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pricklymails-com-sessions-api-openapi.yml#/components/schemas/SessionResponse",
  "type": "object",
  "required": [
    "uuid",
    "last_active_at",
    "created_at",
    "current"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "description": "When the session was created (ISO 8601)."
    },
    "current": {
      "type": "boolean",
      "description": "Whether this is the session the request's access token belongs to."
    },
    "device_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Device name, if set."
    },
    "ip_address": {
      "type": [
        "string",
        "null"
      ],
      "description": "IP address of the session origin."
    },
    "last_active_at": {
      "type": "string",
      "description": "When the session was last active (ISO 8601)."
    },
    "user_agent": {
      "type": [
        "string",
        "null"
      ],
      "description": "User agent of the session origin."
    },
    "uuid": {
      "type": "string",
      "description": "Public UUID."
    }
  }
}