Projects
Project context management for content generation
Retrieves all active projects owned by the authenticated user. Projects are returned in descending order by last update time.
List of user's projects
Unique identifier for the project (GUID)
123e4567-e89b-12d3-a456-426614174000Name of the project
AI Startup LaunchDetailed description of the project
Building an AI-powered SaaS tool for content creators. Focus on automation, efficiency, and user experience.Optional URL associated with the project
https://example.comClient token (owner of the project)
abc123-def456-ghi789Creation timestamp
2024-01-01T12:00:00ZLast update timestamp
2024-01-02T14:30:00ZWhether the project is active
trueOptional URL of the 200x50 brand image associated with the project
Hex color (e.g.
#111827Hex color (e.g.
#F9FAFBPrimary branding accent color applied to overlay shapes when branding is configured
#4338CASecondary accent color applied to overlay highlights and subtitles when branding is configured
#7C72EFUnauthorized - valid API token required
Internal server error
GET /projects HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "AI Startup Launch",
"description": "Building an AI-powered SaaS tool for content creators. Focus on automation, efficiency, and user experience.",
"url": "https://example.com",
"token": "abc123-def456-ghi789",
"createdOn": "2024-01-01T12:00:00Z",
"updatedOn": "2024-01-02T14:30:00Z",
"active": true,
"imageUrl": "https://example.com",
"textColor": "#111827",
"backgroundColor": "#F9FAFB",
"brandColor": "#4338CA",
"accentColor": "#7C72EF"
}
]Creates a new project for the authenticated user. Projects can be referenced when generating tweets/threads to provide context.
If a URL is provided without a description, the API will:
Fetch the website content
Use AI to generate a comprehensive project description in markdown format
Either description or url must be provided.
Name of the project (max 200 characters)
AI Startup LaunchDetailed description of the project. Either description or url must be provided.
Building an AI-powered SaaS tool for content creators. Focus on automation, efficiency, and user experience.Optional URL to fetch website content for auto-generating description. If provided without a description, AI will generate one.
https://example.comOptional base64 encoded PNG/JPG representing the project's brand image. The source image must be fully opaque; images containing any fully or partially transparent pixels are rejected. Any dimensions are accepted and the API resizes the image to 200x50 before storing the hosted copy as imageUrl.
Optional HTTP/HTTPS URL to an existing PNG or JPG brand image. The source image must be fully opaque; images containing any fully or partially transparent pixels are rejected. The API downloads the source, resizes it to 200x50, and hosts the optimized copy. Cannot be combined with imageData.
Optional hex color (format
#111827Pattern: ^#[0-9A-Fa-f]{6}$Optional hex color (format
#F9FAFBPattern: ^#[0-9A-Fa-f]{6}$Optional primary accent hex color (format
#4338CAPattern: ^#[0-9A-Fa-f]{6}$Optional secondary accent hex color (format
#7C72EFPattern: ^#[0-9A-Fa-f]{6}$Project created successfully
trueBad request - Missing required fields or validation error
Unauthorized - valid API token required
Internal server error
POST /projects HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 330
{
"name": "AI Startup Launch",
"description": "Building an AI-powered SaaS tool for content creators. Focus on automation, efficiency, and user experience.",
"url": "https://example.com",
"imageData": "text",
"imageUrl": "https://example.com",
"textColor": "#111827",
"backgroundColor": "#F9FAFB",
"brandColor": "#4338CA",
"accentColor": "#7C72EF"
}{
"success": true,
"project": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "AI Startup Launch",
"description": "Building an AI-powered SaaS tool for content creators. Focus on automation, efficiency, and user experience.",
"url": "https://example.com",
"token": "abc123-def456-ghi789",
"createdOn": "2024-01-01T12:00:00Z",
"updatedOn": "2024-01-02T14:30:00Z",
"active": true,
"imageUrl": "https://example.com",
"textColor": "#111827",
"backgroundColor": "#F9FAFB",
"brandColor": "#4338CA",
"accentColor": "#7C72EF"
}
}Retrieves a specific project by its ID. Only the project owner can access their projects.
Project ID (GUID)
123e4567-e89b-12d3-a456-426614174000Project details
Unique identifier for the project (GUID)
123e4567-e89b-12d3-a456-426614174000Name of the project
AI Startup LaunchDetailed description of the project
Building an AI-powered SaaS tool for content creators. Focus on automation, efficiency, and user experience.Optional URL associated with the project
https://example.comClient token (owner of the project)
abc123-def456-ghi789Creation timestamp
2024-01-01T12:00:00ZLast update timestamp
2024-01-02T14:30:00ZWhether the project is active
trueOptional URL of the 200x50 brand image associated with the project
Hex color (e.g.
#111827Hex color (e.g.
#F9FAFBPrimary branding accent color applied to overlay shapes when branding is configured
#4338CASecondary accent color applied to overlay highlights and subtitles when branding is configured
#7C72EFBad request - Missing project ID
Unauthorized - valid API token required
Project not found
Internal server error
GET /projects/{id} HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "AI Startup Launch",
"description": "Building an AI-powered SaaS tool for content creators. Focus on automation, efficiency, and user experience.",
"url": "https://example.com",
"token": "abc123-def456-ghi789",
"createdOn": "2024-01-01T12:00:00Z",
"updatedOn": "2024-01-02T14:30:00Z",
"active": true,
"imageUrl": "https://example.com",
"textColor": "#111827",
"backgroundColor": "#F9FAFB",
"brandColor": "#4338CA",
"accentColor": "#7C72EF"
}Updates an existing project's name and description. Only the project owner can update their projects.
If a URL is provided without a description, the API will:
Fetch the website content
Use AI to generate a comprehensive project description in markdown format
Either description or url must be provided.
Project ID (GUID)
123e4567-e89b-12d3-a456-426614174000Updated name of the project (max 200 characters)
AI SaaS PlatformUpdated description of the project. Either description or url must be provided.
Revolutionary AI-powered content creation platform with advanced automation features.Optional URL to fetch website content for auto-generating description. If provided without a description, AI will generate one.
https://example.comOptional base64 encoded PNG/JPG. Provide null to remove the current brand image. The source image must be fully opaque; images containing any fully or partially transparent pixels are rejected. Any size is accepted and will be resized to 200x50 on upload.
Optional HTTP/HTTPS URL pointing to a PNG or JPG brand image. Provide null to remove the stored image. The source image must be fully opaque; images containing any fully or partially transparent pixels are rejected. The API stores a 200x50 version. Cannot be combined with imageData.
Optional hex color (format
#111827Pattern: ^#[0-9A-Fa-f]{6}$Optional hex color (format
#F9FAFBPattern: ^#[0-9A-Fa-f]{6}$Optional primary accent hex color (format
#4338CAPattern: ^#[0-9A-Fa-f]{6}$Optional secondary accent hex color (format
#7C72EFPattern: ^#[0-9A-Fa-f]{6}$Project updated successfully
trueBad request - Missing required fields or validation error
Unauthorized - valid API token required
Project not found or unauthorized
Internal server error
POST /projects/{id}/update HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 306
{
"name": "AI SaaS Platform",
"description": "Revolutionary AI-powered content creation platform with advanced automation features.",
"url": "https://example.com",
"imageData": "text",
"imageUrl": "https://example.com",
"textColor": "#111827",
"backgroundColor": "#F9FAFB",
"brandColor": "#4338CA",
"accentColor": "#7C72EF"
}{
"success": true,
"project": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "AI Startup Launch",
"description": "Building an AI-powered SaaS tool for content creators. Focus on automation, efficiency, and user experience.",
"url": "https://example.com",
"token": "abc123-def456-ghi789",
"createdOn": "2024-01-01T12:00:00Z",
"updatedOn": "2024-01-02T14:30:00Z",
"active": true,
"imageUrl": "https://example.com",
"textColor": "#111827",
"backgroundColor": "#F9FAFB",
"brandColor": "#4338CA",
"accentColor": "#7C72EF"
}
}Soft deletes a project (marks it as inactive). Only the project owner can delete their projects.
Project ID (GUID)
123e4567-e89b-12d3-a456-426614174000Project deleted successfully
trueProject deleted successfullyBad request - Missing project ID
Unauthorized - valid API token required
Project not found or unauthorized
Internal server error
POST /projects/{id}/delete HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"message": "Project deleted successfully"
}Last updated