{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/api.visibot.app\/"
        }
    ],
    "info": {
        "name": "Visibot API Documentation",
        "_postman_id": "c9a6b018-ceed-4ba3-ada4-f0daa6f040d0",
        "description": "The easiest API for video editing and generation. Create videos with AI generated images, subtitles, emojis and more.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "Handle WarriorPlus IPN notifications",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/warriorplus\/ipn",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/warriorplus\/ipn"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "GET api\/me",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/me",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/me"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated\",\"error\":\"Invalid token\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "GET api\/usage",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/usage",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/usage"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated\",\"error\":\"Invalid token\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Process telegram subscriber from ManyChat",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/webhooks\/manychat\/telegram-subscriber",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/webhooks\/manychat\/telegram-subscriber"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"manychat_id\":\"architecto\",\"telegram_id\":\"architecto\"}"
                        },
                        "description": ""
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "User Registration API",
            "description": "\nAPIs for user registration through various integrations",
            "item": [
                {
                    "name": "Register a new user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/user\/register",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/user\/register"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"email\":\"user@example.com\",\"first_name\":\"John\",\"last_name\":\"Doe\",\"integration_id\":\"AKfycbw1234567890\",\"api_key\":\"your-api-key-here\",\"manychat_tag\":\"wordpress_signup\"}"
                        },
                        "description": "This endpoint allows users to register through various integrations.\nIt requires a valid API key for authentication."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"message\": \"User registered successfully\",\n  \"user\": {\n    \"id\": 123,\n    \"email\": \"user@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"api_token\": \"your-api-token-here\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"message\": \"Invalid API key\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"email\": [\"The email field is required.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Video API",
            "description": "\nAPIs for video processing",
            "item": [
                {
                    "name": "Create a new video",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/video\/create",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/video\/create"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"language\":\"en\",\"video_url\":\"https:\\\/\\\/example.com\\\/video.mp4\",\"resize_for_social_media\":true,\"captions_font_color\":\"#FF5733\",\"captions_highlight_color\":\"#FF5733\",\"captions_outline_color\":\"#FF5733\",\"captions_position\":\"bottom\",\"captions_font_size\":24,\"captions_font_family\":\"Rubik\",\"captions_add_emojis\":true,\"captions_outline_thickness\":5,\"callback\":\"https:\\\/\\\/example.com\\\/notify-me .\"}"
                        },
                        "description": "Process a video from URL with custom caption settings"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"video_id\": \"f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2\",\n  \"status\": \"processing\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"video_url\": [\"The video url field is required.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Edits a video",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/video\/edit",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/video\/edit"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"language\":\"en\",\"video_id\":\"55c6a73bb1289d2ec45374571683b41d\",\"resize_for_social_media\":true,\"captions_font_color\":\"#FF5733\",\"captions_highlight_color\":\"#FF5733\",\"captions_outline_color\":\"#FF5733\",\"captions_position\":\"bottom\",\"captions_font_size\":24,\"captions_font_family\":\"Rubik\",\"captions_add_emojis\":true,\"captions_outline_thickness\":5,\"callback\":\"https:\\\/\\\/example.com\\\/notify-me .\\n\\\/**\",\"captions\":[{\"start\":0,\"end\":1,\"text\":\"Samraaaa\",\"emoji\":\"\u2709\ufe0f\\n\\\/\"}]}"
                        },
                        "description": "Pass the same parameters as create video but replace the video_url param with a video_id parameter"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"video_id\": \"f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2\",\n  \"status\": \"processing\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"video_url\": [\"The video url field is required.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get video status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/video\/get",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/video\/get"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"video_id\":\"f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2\"}"
                        },
                        "description": "Check the processing status of a video and get the URL when ready"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"video_id\": \"f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2\",\n  \"status\": \"processed\",\n  \"video_url\": \"https:\/\/example.com\/storage\/videos\/processed_video.mp4\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 202,
                            "body": "{\n  \"video_id\": \"f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2\",\n  \"status\": \"processing\",\n  \"message\": \"Video is still processing\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 203,
                            "body": "{\n  \"message\": \"Video not found\",\n  \"status\": \"not_found\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"video_id\": \"f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2\",\n  \"status\": \"failed\",\n  \"message\": \"Video processing failed. Please contact support\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "key",
                "type": "string"
            }
        ]
    }
}