{
  "swagger": "2.0",
  "info": {
    "title": "Zetaleap Celebrations GIF",
    "description": "Generate localized animated GIFs, 2x Retina PNGs, and instant SVGs across 8 HR & Sales templates and 10 countries/languages (EN, TR, DE, FR, ES, IT, NL, PT, PL, JA) for Teams & Outlook.",
    "version": "1.0.0",
    "contact": {
      "name": "Zetaleap Support Team",
      "url": "https://zetaleap.com/#contact",
      "email": "support_team@zetaleap.com"
    }
  },
  "x-ms-connector-metadata": [
    {
      "propertyName": "Website",
      "propertyValue": "https://zetaleap.com"
    },
    {
      "propertyName": "Privacy policy",
      "propertyValue": "https://zetaleap.com/privacy"
    },
    {
      "propertyName": "Categories",
      "propertyValue": "Human Resources;Collaboration"
    }
  ],
  "host": "zetaleap.com",
  "basePath": "/",
  "schemes": [
    "https"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "securityDefinitions": {
    "api_key": {
      "type": "apiKey",
      "in": "header",
      "name": "Authorization",
      "description": "Enter your Zetaleap Personal Access Token prefixed with Bearer (example: Bearer zl_your_api_token). Generate tokens free at https://zetaleap.com/profile."
    }
  },
  "security": [
    {
      "api_key": []
    }
  ],
  "paths": {
    "/api/studio/celebration": {
      "post": {
        "operationId": "RenderCelebrationCard",
        "summary": "Render animated celebration GIF PNG or SVG card",
        "description": "Generates a personalized celebration or recognition card (Birthday, Welcome Aboard, Work Anniversary, Promotion, Kudos, Deal Won, Release Shipped, Holiday) as Animated GIF, 2x PNG, or SVG.",
        "x-ms-visibility": "important",
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "required": [
                "name"
              ],
              "properties": {
                "occasion": {
                  "type": "string",
                  "enum": [
                    "birthday",
                    "welcome",
                    "anniversary",
                    "promotion",
                    "kudos",
                    "deal_won",
                    "ship_it",
                    "holiday"
                  ],
                  "default": "birthday",
                  "x-ms-summary": "Occasion Template"
                },
                "theme": {
                  "type": "string",
                  "enum": [
                    "confetti_light",
                    "midnight_neon",
                    "golden_executive",
                    "emerald_aurora"
                  ],
                  "default": "confetti_light",
                  "x-ms-summary": "Color Theme"
                },
                "lang": {
                  "type": "string",
                  "enum": [
                    "en",
                    "tr",
                    "de",
                    "fr",
                    "es",
                    "it",
                    "nl",
                    "pt",
                    "pl",
                    "ja"
                  ],
                  "default": "en",
                  "x-ms-summary": "Country / Card Language (10 Locales)"
                },
                "format": {
                  "type": "string",
                  "enum": [
                    "gif",
                    "png",
                    "svg"
                  ],
                  "default": "gif",
                  "x-ms-summary": "Output Format"
                },
                "name": {
                  "type": "string",
                  "x-ms-summary": "Recipient Name"
                },
                "roleOrDept": {
                  "type": "string",
                  "x-ms-summary": "Role or Department"
                },
                "badgeText": {
                  "type": "string",
                  "x-ms-summary": "Milestone Badge Text"
                },
                "message": {
                  "type": "string",
                  "x-ms-summary": "Custom Greeting Message"
                },
                "companyName": {
                  "type": "string",
                  "x-ms-summary": "Company Name"
                },
                "senderName": {
                  "type": "string",
                  "x-ms-summary": "Sender Name"
                },
                "avatarBase64": {
                  "type": "string",
                  "x-ms-summary": "Recipient Photo Base64"
                }
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rendered celebration card output",
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "x-ms-summary": "Success"
                },
                "format": {
                  "type": "string",
                  "x-ms-summary": "Format"
                },
                "mimeType": {
                  "type": "string",
                  "x-ms-summary": "MIME Type"
                },
                "base64": {
                  "type": "string",
                  "x-ms-summary": "Image Base64 ContentBytes"
                },
                "dataUri": {
                  "type": "string",
                  "x-ms-summary": "Embeddable Data URI"
                }
              }
            }
          }
        }
      }
    }
  }
}