{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/publishwith-ai/json-schema/publishwith-ai-publish-response-schema.json",
  "title": "PublishResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/publishwith-ai-openapi.yml#/components/schemas/PublishResponse",
  "type": "object",
  "properties": {
    "artifact_id": {
      "type": "string",
      "format": "uuid"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Authenticated URL (requires publishwith.ai account)."
    },
    "version": {
      "type": "integer",
      "description": "Version number of the published content."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "TTL deadline, present only when ttl_days was set."
    },
    "upload_token": {
      "type": "string",
      "description": "Upload token for adding binary files out-of-band (5-minute TTL)."
    },
    "upload_url": {
      "type": "string",
      "description": "Full URL for the upload endpoint."
    },
    "upload_expires_at": {
      "type": "string",
      "description": "RFC3339 expiry timestamp for the upload token."
    },
    "curl": {
      "type": "string",
      "description": "Ready-to-paste curl command for uploading a binary file."
    }
  }
}