🏁 Getting Started
1️⃣ Create an Arcads Account
Sign up for an Arcads.ai account here if you haven’t already. This is your first step to accessing the API.
2️⃣ Generate API Credentials
Follow our video tutorial to generate API credentials. You will receive a clientId and clientSecret to authenticate your API requests.
🔹 Authorization Header:
const token = `Basic ${Buffer.from(`${clientId}:${clientSecret}`).toString('base64')}`;🔹 Use this token in API requests:
Authorization: <token>
This ensures your API requests are authenticated securely.
⚙️ Setting Up Your Environment
1️⃣ Create a Product
A product acts as a container for your scripts and videos.
🔹 Create a new product:
POST /v1/products
This returns a productId—save it for later.
🔹 Retrieve existing products:
GET /v1/products
This helps you manage and access all created products.
2️⃣ Create a Folder
Folders help organize scripts within a product.
🔹 Create a folder inside a product:
POST /v1/folders
This returns a folderId—save it for later.
🔹 Retrieve existing folders within a product:
GET /v1/products/:productId/folders
Use this to manage script storage efficiently.
3️⃣ List Available Situations
Situations define specific conditions or templates used in script creation.
🔹 Retrieve all available situations (paginated API):
GET /v1/situations
Save the situationId values you want to use for future reference.
🎬 Script Creation & Video Generation
1️⃣ Create a Script
A script contains the content and video references for generation.
🔹 Create a script with folderId, name, text, and videos:
POST /v1/scripts
This returns a scriptId—save it for later.
🔹 Retrieve existing scripts within a folder:
GET /v1/folders/:folderId/scripts
Allows you to access and manage stored scripts.
2️⃣ Edit a Script
Modify existing scripts as needed.
🔹 Update a script:
PUT /v1/scripts/:scriptId
Keep your scripts updated with necessary changes.
3️⃣ Generate Videos
Convert your scripts into videos with AI processing.
🔹 Start video generation for a script:
POST /v1/scripts/:scriptId/generate
Initiates the video creation process.
4️⃣ Check Video Status & Download
Monitor progress and retrieve generated videos.
🔹 Retrieve the status of video generation and download link:
GET /v1/scripts/:scriptId/videos
Check if your video is ready and get the download link.
📚 Additional Resources
For a complete reference of all available API endpoints with their complete parameters and responses, visit the Arcads.ai External API Documentation.
