API Carrossel para Plataformas de Automação

Automatize a criação de carrossel com a API de geração de conteúdo do PostNitro

Integre nossa API de carrossel com tecnologia de IA para gerar conteúdo para mídias sociais em escala. Perfeito para plataformas de automação, ferramentas de marketing e sistemas de gerenciamento de conteúdo.

Plano gratuito disponível | Não é necessário cartão de crédito

Como funciona

Step 1

Enviar conteúdo

Faça uma chamada de API simples com seu conteúdo, tópico ou URL. Nosso sistema processa sua solicitação instantaneamente.

Step 2

Monitorar o progresso

Acompanhe o status da geração em tempo real. Receba notificações via webhooks quando seu carrossel estiver pronto.

Step 3

Resultados do download

Recupere seu carrossel concluído em vários formatos, pronto para publicar ou agendar em todas as plataformas.

Ver documentação da API

Integração rápida

Adicione a Geração de Carrossel à sua Plataforma em Minutos

Veja como é fácil integrar nossa API. Este exemplo mostra a criação básica de um carrossel usando nossos endpoints de geração de conteúdo.

Initiate Carousel Creation

Users can initiate carousel creation by either generating a new carousel or importing content into an existing carousel.

Generate with AI

To generate a carousel using AI, use the following cURL command:

curl 
    --location 'https://embed-api.postnitro.ai/post/initiate/generate'
    --header 'Content-Type: application/json'
    --header 'embed-api-key: your-api-key'
    --data '{
        "postType": "CAROUSEL",
        "templateId": "your-template-id",
        "brandId": "your-brand-id",
        "presetId": "your-ai-preset-id",
        "responseType": "PNG",
        "aiGeneration": {
            "type": "text",
            "context": "Create a LinkedIn carousel about digital marketing tips for small businesses",
            "instructions": "Focus on actionable tips that can be implemented immediately"
        }
    }'
Import Content

To import content into a carousel, use the following cURL command:

curl 
    --location 'https://embed-api.postnitro.ai/post/initiate/import'
    --header 'Content-Type: application/json'
    --header 'embed-api-key: your-api-key'
    --data '{
        "postType": "CAROUSEL",
        "requestorId": "your-requestor-id",
        "templateId": "your-template-id",
        "brandId": "your-brand-id",
        "responseType": "PNG",
        "slides": [
            {
                "type": "starting_slide",
                "sub_heading": "My Awesome Subtitle",
                "heading": "Welcome to the Carousel!",
                "description": "This is how you start with a bang.",
                "cta_button": "Swipe to learn more",
                "background_image": "https://example.com/background1.jpg"
            },
            {
                "type": "body_slide",
                "heading": "Section 1: The Core Idea",
                "description": "Explain your first key point here.",
                "image": "https://example.com/image1.jpg"
            },
            {
                "type": "ending_slide",
                "sub_heading": "Ready to Act?",
                "heading": "Get Started Today!",
                "description": "A final encouraging message.",
                "cta_button": "Visit Our Website",
                "image": "https://example.com/logo.png",
                "background_image": "https://example.com/background2.jpg"
            }
        ]
    }'

Understanding the ExportData type

The callback function receives an ExportData object, which contains the following properties:

export interface ExportData {
    id: string;           // Unique identifier for the content
    name: string;         // User-defined content name
    size: string;         // Aspect ratio (e.g., "16:9", "1:1", "9:16")
    type: string;         // Export format: "pdf", "png", or "mp4"
    data: Blob | Blob[];  // File data - single Blob for PDF/MP4, Blob array for PNG
}

Check Request Status

To check the status of a request, use the following cURL command:

curl 
    --location 'https://embed-api.postnitro.ai/post/request-status'
    --header 'Content-Type: application/json'
    --header 'embed-api-key: your-api-key'
    --data '{
        "embedPostId": "post123"
    }'

Get Output

To get the output of a request, use the following cURL command:

curl
    --location 'https://embed-api.postnitro.ai/post/output'
    --header 'Content-Type: application/json'
    --header 'embed-api-key: your-api-key'
    --data '{
        "embedPostId": "post123"
    }'
Ver documentação completa