ideogram-webhooks-events
Implement asynchronous queues and event-handling for Ideogram generation.
Install
mkdir -p .claude/skills/ideogram-webhooks-events && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9293" && unzip -o skill.zip -d .claude/skills/ideogram-webhooks-events && rm skill.zipInstalls to .claude/skills/ideogram-webhooks-events
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Build event-driven workflows around Ideogram''s synchronous API.Key capabilities
- →Enqueue generation jobs using BullMQ
- →Implement callback handlers for event notifications
- →Execute batch marketing asset generation
- →Process images with sharp post-processing pipelines
How it works
Wraps the synchronous Ideogram API in asynchronous BullMQ job queues to handle batch processing and image pipelines. It uses worker concurrency limits to manage API rate constraints.
Inputs & outputs
When to use ideogram-webhooks-events
- →Setting up async generation queues
- →Implementing callback handlers
- →Batch processing image requests
- →Building scalable generation pipelines
About this skill
Ideogram Webhook Verification and Reconciliation
Overview
Accept Ideogram asynchronous completion only after cryptographic verification and idempotent reconciliation. Use the raw request body, bind all signed headers, acknowledge quickly, and retain polling as a recovery path because delivery is not guaranteed.
Prerequisites
- A public HTTPS receiver, raw-body access, durable event store, queue, and clock.
- The submitted
generation_id, destination object policy, and polling reconciler. - Local Ed25519 fixtures for valid, invalid, stale, duplicate, and rotated-key deliveries.
Current Contract
Async requests can include a webhook URL and return generation_id. Ideogram signs callbacks with Ed25519 and publishes keys at https://api.ideogram.ai/v1/.well-known/jwks.json. Signed headers identify generation, user, timestamp, key, and signature. Deliveries may duplicate, retries are limited, and polling remains necessary.
Authentication
Webhook trust comes from signature verification, not a shared API key in the callback. Normal polling uses server-side IDEOGRAM_API_KEY in the Api-Key header; never expose it to the receiver request.
Instructions
- Capture the raw body bytes and required generation-ID, user-ID, timestamp, key-ID, and signature headers before JSON parsing.
- Compute SHA-256 over the raw body and construct the signed message as generation ID, newline, user ID, newline, timestamp, newline, then the lowercase body hash.
- Resolve the key ID from the JWKS cache and verify the lowercase-hex Ed25519 signature.
- Enforce a bounded timestamp window and bind the callback to a known submitted generation and expected application tenant.
- Persist a deduplication record keyed by generation and delivery evidence, return
2xxquickly, and enqueue processing. - Validate safety, download approved output, persist it, and transition state idempotently.
- On verification failure, refresh JWKS once; on missing delivery, append the returned generation ID to
GET /v1/generations/and poll that resource.
Tool Discipline
Use Read, Glob, and Grep for receiver, queue, state, and fixtures. Use Write and Edit for approved implementation and tests. Do not expose a receiver, submit paid async work, or replay production events by invocation alone.
Approval Boundaries
Require approval for public routing, production keys, live submissions, replay-window changes, retained identifiers, and storage or publishing. Reject callbacks that cannot be tied to an authorized application operation.
Error Handling
- Never verify reserialized JSON; whitespace changes break raw-body integrity.
- Refetch JWKS once on an unknown key or verification failure, then reject.
- Duplicate or late valid delivery is an idempotency case, not authority to create another asset.
Output
Return receiver route class, signature and replay result, opaque generation ID, duplicate state, acknowledgment latency, downstream terminal and storage state, polling fallback, and cleanup. Exclude headers, bodies, URLs, prompts, and images.
Examples
- Verify a fixture signed over exact raw bytes, acknowledge, then prove one durable state transition across two deliveries.
- Report
signature=pass; replay=fresh; duplicate=yes; transitions=1; poll_fallback=not-needed.
Validation
Test byte mutation, header mutation, stale timestamps, unknown and rotated keys, duplicates, out-of-order state, unsafe output, polling fallback, and object deletion. Confirm receiver logs contain no signed body or content.
Resources
- Current first-party evidence map — use the dated endpoint, webhook, billing, team, and training links as the contract index for this workflow.
- Recheck the endpoint-specific page and current OpenAPI description before relying on an enum, limit, beta feature, or lifecycle claim.
- Record live observations as environment-specific evidence, not as universal vendor guarantees.
When not to use it
- →Direct synchronous API calls in production
- →Long-running tasks without retry logic
Prerequisites
Limitations
- →Ideogram API blocks for 5-15 seconds per call
- →Worker concurrency must stay under 10
How it compares
Unlike direct synchronous API calls, this approach uses queues to prevent blocking and handles retries for failed generation jobs.
Compared to similar skills
ideogram-webhooks-events side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ideogram-webhooks-events (this skill) | 0 | 2mo | Caution | Intermediate |
| telegram-bot-builder | 106 | 8mo | Review | Intermediate |
| workflow-orchestration-patterns | 10 | 4mo | No flags | Advanced |
| bullmq-specialist | 25 | 8mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
telegram-bot-builder
davila7
Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.
workflow-orchestration-patterns
wshobson
Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.
bullmq-specialist
davila7
BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications. Use when: bullmq, bull queue, redis queue, background job, job queue.
workflow
vercel
Creates durable, resumable workflows using Vercel's Workflow DevKit. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow devkit", or step-based orchestration.
trigger-dev
davila7
Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.
convex-cron-jobs
waynesutton
Scheduled function patterns for background tasks including interval scheduling, cron expressions, job monitoring, retry strategies, and best practices for long-running tasks