GEN Content Resources API
Upload and manage content resources (images, videos, audio).
Operations 6
POST
/content_resources/from_url
Analyze, upload, import, and delete assets — import asset from url
#
Upload and manage content resources (images, videos, audio).
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/gen-pro:gen-pro-content-resources-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Auto Content Engine Content Resources API
description: 'The GEN Auto Content Engine API takes a raw idea all the way to a published video — agent setup, idea research, vidsheet production, layer composition, render, and publish.
## The 5-step journey
Every operation belongs to one phase of a 5-step user journey. Each operation carries an `x-phase` extension you can filter on:
| Phase | Meaning |
|-------|---------|
| `setup` | Step 1 — Set Up Your Agent (identity, voice, personality, API keys, workspaces) |
| `ideas` | Step 2 — Generate Content Ideas (trending data, research, refinement, preferences) |
| `convert` | Step 3 — Convert Idea to Vidsheet (clone template or build custom engine) |
| `edit` | Step 4 — Edit & Generate (cells, layers, creation cards, trigger + poll) |
| `export` | Step 5 — Export & Publish (render, download, publish to social) |
Full journey-oriented docs: https://api.gen.pro
## Authentication
All endpoints require authentication via one of:
- **API Key** (recommended): Pass your API key in the `X-API-Key` header. Create keys on the agent''s API page in the GEN dashboard.
- **JWT**: Pass a Bearer JWT in the `Authorization: Bearer ` header.
## Base URLs
```
https://api.gen.pro/v1 — agent setup, vidsheets, generations, renders, publishing
https://agent.gen.pro/v1 — content ideas, research, conversations, chat
https://agent-core.gen.pro/v1 — agent core (brand profile, watchlists, scheduled tasks)
https://python.gen.pro — social publishing integration (connect, schedule, remove posts)
```
Each operation carries its own `servers` entry, so a generated client or a
hand-written call goes to the backend that serves the route.
## Credits
All `/v1/vidsheet/` endpoints require an active GEN credit balance.
If your organization has no usable credits, requests return `422` with error code `usable_gen_credit_required`.
Credits can be funded with x402 by calling `POST /v1/x402_credit_purchase`
with `workspace_id` plus `amount_usd` or `credits`. If `network` is omitted,
GEN returns every configured payment option in `payment_methods` and
`payment_required.accepts`; show the Sui, Solana, and Base options to the
user or calling agent and sign one selected accept entry. Workspace funding
wallets are backend settlement infrastructure; the user-facing payment
choices are the returned payment methods.'
version: 1.0.0
contact:
name: GEN Support
url: https://gen.pro
license:
name: Proprietary
servers:
- url: https://api.gen.pro/v1
description: Auto Content Engine API
- url: https://agent.gen.pro/v1
description: Agent Chat API
- url: https://agent-core.gen.pro/v1
description: Agent Core API (watchlists)
- url: https://python.gen.pro
description: Publishing integration API (social connect and scheduling)
security:
- apiKey: []
- bearerAuth: []
tags:
- name: Content Resources
description: Upload and manage content resources (images, videos, audio).
paths:
/content_resources:
get:
operationId: listContentResources
x-mcp-tool: gen_discover
x-mcp-branch: asset.list
x-phase: edit
summary: List content resources
description: Returns paginated content resources. 20 items per page (page starts at 0).
tags:
- Content Resources
parameters:
- $ref: '#/components/parameters/AgentId'
- name: type
in: query
schema:
type: string
enum:
- image
- video
- audio
- zip
- safe_tensors
description: Filter by resource type.
- name: project_id
in: query
schema:
type: string
description: Filter by project (engine) ID.
- name: ids[]
in: query
schema:
type: array
items:
type: string
description: Filter by specific resource IDs.
- name: page
in: query
schema:
type: integer
description: Page number (starts at 0).
responses:
'200':
description: List of content resources
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ContentResource'
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/ApiValidationError'
post:
operationId: createContentResource
x-mcp-tool: gen_asset_action
x-mcp-branch: complete_asset_upload
x-phase: edit
summary: Upload a content resource
description: Upload a file as a content resource. Optionally assign to an asset folder.
tags:
- Content Resources
parameters:
- $ref: '#/components/parameters/AgentId'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- content_resource[file]
properties:
content_resource[file]:
type: string
format: binary
description: The file to upload.
asset_folder[id]:
type: string
description: Optional asset folder ID.
responses:
'201':
description: Content resource created
content:
application/json:
schema:
type: object
properties:
content_resource:
$ref: '#/components/schemas/ContentResource'
generator:
type: object
nullable: true
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Creation failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/ApiUnauthorized'
/content_resources/{id}:
get:
operationId: getContentResource
x-mcp-tool: gen_discover
x-mcp-branch: asset.detail
x-phase: edit
summary: Get a content resource
tags:
- Content Resources
parameters:
- name: id
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/AgentId'
responses:
'200':
description: Content resource details
content:
application/json:
schema:
type: object
properties:
content_resource:
$ref: '#/components/schemas/ContentResource'
generator:
type: object
nullable: true
description: Null for manual uploads; contains job info for AI-generated resources.
properties:
id:
type: string
status:
type: string
type:
type: string
'404':
description: Content resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/ApiUnauthorized'
'422':
$ref: '#/components/responses/ApiValidationError'
patch:
operationId: updateContentResource
x-mcp-tool: gen_content_action
x-mcp-branch: update_content_resource
x-phase: edit
summary: Rename a content resource
tags:
- Content Resources
parameters:
- name: id
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/AgentId'
requestBody:
required: true
content:
application/json:
schema:
type: object
description: JSON request body.
required:
- content_resource
properties:
content_resource:
type: object
required:
- filename
properties:
filename:
type: string
responses:
'200':
description: Content resource updated
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
$ref: '#/components/responses/NotFound'
'401':
$ref: '#/components/responses/ApiUnauthorized'
'422':
$ref: '#/components/responses/ApiValidationError'
delete:
operationId: deleteContentResource
x-mcp-tool: gen_asset_action
x-mcp-branch: delete_asset
x-phase: edit
summary: Delete a content resource
tags:
- Content Resources
parameters:
- name: id
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/AgentId'
responses:
'200':
description: Content resource deleted
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
$ref: '#/components/responses/NotFound'
'401':
$ref: '#/components/responses/ApiUnauthorized'
'422':
$ref: '#/components/responses/ApiValidationError'
/content_resources/from_url:
post:
operationId: postContentResourcesFromUrl
x-phase: setup
summary: Analyze, upload, import, and delete assets — import asset from url
tags:
- Content Resources
requestBody:
required: true
content:
application/json:
schema:
type: object
description: JSON request body.
required:
- agent_id
- url
properties:
agent_id:
type: string
description: Agent context; the controller reads params[:agent_id] (`require_agent!`).
url:
description: YouTube / TikTok / Instagram URL to download.
dw_job_id:
description: Present when resuming a download that outlived the previous request.
video_layer_id: {}
asset_folder:
type: object
properties:
id: {}
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
description: '`app/resources/content_resource_resource.rb`.'
properties:
content_resource:
type: object
properties:
id: {}
url: {}
thumbnail_url: {}
file_name: {}
content_type: {}
origin_type: {}
origin_owner_type: {}
origin_owner_id: {}
origin_metadata: {}
enrichment: {}
project_node:
type: object
properties:
id: {}
generator:
description: The UserJob or Job that produced this resource, or null.
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/ApiValidationError'
x-mcp-tool: gen_asset_action
x-mcp-branch: import_asset_from_url
components:
parameters:
AgentId:
name: agent_id
in: query
required: true
description: The agent ID. Find via `GET /v1/agents`.
schema:
type: string
responses:
NotFound:
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: Not found
error_code: not_found
ApiUnauthorized:
description: Missing or invalid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
ApiValidationError:
description: Validation failed or the request could not be processed.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
Unauthorized:
description: Missing or invalid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: Unauthorized
error_code: unauthorized
schemas:
ApiError:
type: object
required:
- code
properties:
code:
type: string
description: The stable machine-readable failure code.
message:
type: string
description: Human-readable failure detail.
errors:
type: array
description: Field-level validation failures.
items:
type: object
retryable:
type: boolean
description: Whether retrying can succeed without changing the request.
new_change_set_required:
type: boolean
description: Whether the caller must begin a new edit group.
funding_error_kind:
type: string
description: The credit or payment failure category.
Error:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
error_code:
type: string
description: Machine-readable error code.
ContentResource:
type: object
properties:
id:
type: string
url:
type: string
format: uri
thumbnail_url:
type: string
format: uri
nullable: true
file_name:
type: string
content_type:
type: string
securitySchemes:
apiKey:
type: apiKey
in: header
name: X-API-Key
description: Personal Access Token (PAT). Create one in Settings > API Keys.
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Bearer JWT issued by the GEN dashboard sign-in.