{
  "openapi": "3.0.1",
  "info": {
    "title": "Social Card Generator — Tweet, Quote & Poster PNGs",
    "description": "Turn text into polished 1080px social media card images: X/tweet-style cards, bold pull-quotes, statement posters, myth-vs-truth panels, numbered insights and carousel slides.",
    "version": "0.1",
    "x-build-id": "HFsSMzECb9uRZT81M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abidchaudhry~social-card-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abidchaudhry-social-card-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/abidchaudhry~social-card-generator/runs": {
      "post": {
        "operationId": "runs-sync-abidchaudhry-social-card-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/abidchaudhry~social-card-generator/run-sync": {
      "post": {
        "operationId": "run-sync-abidchaudhry-social-card-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "template": {
            "title": "Template",
            "enum": [
              "tweet",
              "quote",
              "poster",
              "mythtruth",
              "numbered",
              "slide"
            ],
            "type": "string",
            "description": "Card layout to render.",
            "default": "tweet"
          },
          "text": {
            "title": "Text",
            "type": "string",
            "description": "Main text of the card. Used by the tweet, quote and poster templates. Supports line breaks."
          },
          "name": {
            "title": "Display name",
            "type": "string",
            "description": "Author name shown on the card.",
            "default": "Your Name"
          },
          "handle": {
            "title": "Handle",
            "type": "string",
            "description": "Author handle, with or without the leading @.",
            "default": "@yourhandle"
          },
          "avatarUrl": {
            "title": "Avatar image URL",
            "type": "string",
            "description": "Optional https:// or data: URL of the author avatar. If omitted, a colored circle with the author's initials is used."
          },
          "dark": {
            "title": "Dark mode (tweet template)",
            "type": "boolean",
            "description": "Render the tweet card in X 'lights out' dark mode.",
            "default": false
          },
          "verified": {
            "title": "Verified badge (tweet template)",
            "type": "boolean",
            "description": "Show the blue verified badge next to the name on the tweet template.",
            "default": true
          },
          "accent": {
            "title": "Accent color",
            "type": "string",
            "description": "Accent color (hex) used for quote marks, bars, numbers and labels.",
            "default": "#1d9bf0"
          },
          "bg": {
            "title": "Background color",
            "type": "string",
            "description": "Card background color (hex). Used by quote, poster, mythtruth and numbered templates.",
            "default": "#0f1419"
          },
          "fg": {
            "title": "Text color",
            "type": "string",
            "description": "Card text color (hex). Used by quote, poster, mythtruth and numbered templates.",
            "default": "#ffffff"
          },
          "kicker": {
            "title": "Kicker (label above the content)",
            "type": "string",
            "description": "Small uppercase label above the content (poster, mythtruth, numbered, slide)."
          },
          "title": {
            "title": "Title (numbered / slide templates)",
            "type": "string",
            "description": "Headline for the numbered insight and slide templates."
          },
          "body": {
            "title": "Body (numbered / slide templates)",
            "type": "string",
            "description": "Supporting body text for the numbered insight and slide templates."
          },
          "myth": {
            "title": "Myth (mythtruth template)",
            "type": "string",
            "description": "The 'myth' text for the myth-vs-truth template."
          },
          "truth": {
            "title": "Truth (mythtruth template)",
            "type": "string",
            "description": "The 'truth' text for the myth-vs-truth template."
          },
          "number": {
            "title": "Number (numbered template)",
            "type": "string",
            "description": "The big number shown on the numbered insight template."
          },
          "variant": {
            "title": "Slide variant (slide template)",
            "enum": [
              "cover",
              "body",
              "cta"
            ],
            "type": "string",
            "description": "Slide role within a carousel.",
            "default": "body"
          },
          "retina": {
            "title": "Retina (2x) resolution",
            "type": "boolean",
            "description": "Render at 2x device scale for crisp images (2160px wide output). Disable for smaller files.",
            "default": true
          },
          "cards": {
            "title": "Batch: cards array (advanced)",
            "type": "array",
            "description": "Render many cards in one run. Each item is an object with the same fields as above (template, text, name, handle, ...). When set, the single-card fields above are used as defaults for every card."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}