{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/speakeasy/main/json-schema/speakeasy-publishing-token-schema.json",
  "title": "PublishingToken",
  "description": "A token used to publish to a target",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/speakeasy-publishingtokens-api-openapi.yml#/components/schemas/PublishingToken",
  "properties": {
    "id": {
      "type": "string"
    },
    "token": {
      "type": "string"
    },
    "valid_until": {
      "type": "string",
      "format": "date-time"
    },
    "token_name": {
      "type": "string"
    },
    "target_id": {
      "type": "string"
    },
    "target_resource": {
      "enum": [
        "document"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "updated_by": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "workspace_id": {
      "type": "string"
    }
  },
  "required": [
    "target_id",
    "target_resource",
    "valid_until",
    "token_name",
    "id",
    "token",
    "created_at",
    "created_by",
    "organization_id",
    "workspace_id"
  ]
}