A workspace is a folder for projects: a client, a series, a campaign. It is NOT a team: a team decides who can see a project, a workspace decides what body of work it belongs to, and a project carries both. Workspaces use the projects scopes rather than having their own, so keys you have already minted can use them.
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Vidmoat Workspaces API
version: v1
description: Generated from the Vidmoat API reference. Every operation links its reference page.
servers:
- url: https://api.vidmoat.com/v1
security:
- bearerAuth: []
tags:
- name: Workspaces
description: 'A workspace is a folder for projects: a client, a series, a campaign. It is NOT a team: a team decides who can see a project, a workspace decides what body of work it belongs to, and a project carries both. Workspaces use the projects scopes rather than having their own, so keys you have already minted can use them.'
paths:
/workspaces:
get:
operationId: list-workspaces
summary: List workspaces
description: Every workspace you can see, personal and team, with how many projects are in each. Always one page (at most 60 per scope).
tags:
- Workspaces
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api/workspaces/list-workspaces
security:
- bearerAuth:
- projects.read
responses:
'200':
description: List workspaces
content:
application/json:
schema:
type: object
properties:
data:
type: array
description: Workspaces.
items:
type: object
properties:
id:
type: string
description: Workspace id.
name:
type: string
description: Up to 48 characters.
color:
type:
- string
- 'null'
description: One of the palette colours.
icon:
type:
- string
- 'null'
description: An emoji.
teamId:
type:
- string
- 'null'
description: Set for a team workspace.
projectCount:
type: integer
description: Projects in it that you can see.
hasMore:
type: boolean
description: Always `false`.
nextCursor:
type: 'null'
description: Always `null`.
example:
data:
- id: ws_1
name: Acme Q3
color: '#5AA9FF'
icon: 🎬
teamId: null
projectCount: 4
hasMore: false
nextCursor: null
x-vidmoat-scope: projects.read
x-vidmoat-cost: Free
x-codeSamples:
- lang: Shell
label: curl
source: "curl https://api.vidmoat.com/v1/workspaces \\\n -H \"Authorization: Bearer $VIDMOAT_KEY\""
post:
operationId: create-workspace
summary: Create a workspace
description: Create a workspace. Pass teamId to make it a shared one.
tags:
- Workspaces
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api/workspaces/create-workspace
security:
- bearerAuth:
- projects.write
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Up to 48 characters.
color:
type: string
description: One of `#FF4D2E`, `#5AA9FF`, `#7ED9A6`, `#FFD447`, `#A855F7`, `#FF7A5A`, `#9EDCC4`, `#94A3B8`. Any other value is stored as `null`.
icon:
type: string
description: One emoji (at most two code points). Longer is stored as `null`.
teamId:
type: string
description: A team you belong to, for a shared workspace.
required:
- name
responses:
'201':
description: Create a workspace
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: The workspace id.
name:
type: string
description: Its name.
color:
type:
- string
- 'null'
description: A hex colour, or `null` when none is set.
icon:
type:
- string
- 'null'
description: An emoji, or `null`.
teamId:
type:
- string
- 'null'
description: The team it belongs to, or `null` for a personal workspace.
projectCount:
type: integer
description: Projects filed in it (0 for a new one).
example:
id: ws_2
name: Acme Q3
color: null
icon: 📦
teamId: null
projectCount: 0
'400':
description: '`invalid_request`: No name, a team you are not in, or you already have 60 workspaces.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-vidmoat-scope: projects.write
x-vidmoat-cost: Free
x-codeSamples:
- lang: Shell
label: curl
source: "curl -X POST https://api.vidmoat.com/v1/workspaces \\\n -H \"Authorization: Bearer $VIDMOAT_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"name\":\"Acme Q3\",\"icon\":\"\U0001F4E6\"}'"
/workspaces/{id}:
patch:
operationId: update-workspace
summary: Update a workspace
description: Rename, recolour, change the icon or reorder a workspace.
tags:
- Workspaces
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api/workspaces/update-workspace
security:
- bearerAuth:
- projects.write
parameters:
- name: id
in: path
required: true
description: The workspace id.
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Up to 48 characters.
color:
type:
- string
- 'null'
description: A palette colour, or `null` to clear it. An unknown colour also clears it.
icon:
type:
- string
- 'null'
description: One emoji, or `null` to clear it.
position:
type: integer
description: Sort position, 0 to 999.
responses:
'200':
description: Update a workspace
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: The workspace id.
name:
type: string
description: Its name.
color:
type:
- string
- 'null'
description: A hex colour, or `null` when none is set.
icon:
type:
- string
- 'null'
description: An emoji, or `null`.
teamId:
type:
- string
- 'null'
description: The team it belongs to, or `null` for a personal workspace.
projectCount:
type: integer
description: Projects filed in it (0 for a new one).
example:
id: ws_1
name: Acme Q4
color: '#5AA9FF'
icon: 🎬
teamId: null
projectCount: 4
'400':
description: '`invalid_request`: Nothing to change, or an empty name.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`not_found`: No such workspace.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-vidmoat-scope: projects.write
x-vidmoat-cost: Free
x-codeSamples:
- lang: Shell
label: curl
source: "curl -X PATCH https://api.vidmoat.com/v1/workspaces/$ID \\\n -H \"Authorization: Bearer $VIDMOAT_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"name\":\"Acme Q4\"}'"
delete:
operationId: delete-workspace
summary: Delete a workspace
description: 'Delete a workspace. The projects inside are KEPT and become unfiled; the response returns how many.
Deleting a folder never deletes work. `freed` in the response is the number of projects that came out of it.'
tags:
- Workspaces
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api/workspaces/delete-workspace
security:
- bearerAuth:
- projects.write
parameters:
- name: id
in: path
required: true
description: The workspace id.
schema:
type: string
responses:
'200':
description: Delete a workspace
content:
application/json:
schema:
type: object
properties:
deleted:
type: boolean
description: Always `true`.
freed:
type: integer
description: 'How many projects were in it. They are not deleted: they move out of the workspace and stay yours.'
example:
deleted: true
freed: 4
'404':
description: '`not_found`: No such workspace.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-vidmoat-scope: projects.write
x-vidmoat-cost: Free
x-codeSamples:
- lang: Shell
label: curl
source: "curl -X DELETE https://api.vidmoat.com/v1/workspaces/$ID \\\n -H \"Authorization: Bearer $VIDMOAT_KEY\""
/projects/{id}/workspace:
put:
operationId: set-project-workspace
summary: File a project
description: 'File a project into a workspace, or send workspaceId: null to take it out.
A workspace and the project filed in it must be in the same scope: a team project goes in that team''s workspace, a personal project in a personal one.'
tags:
- Workspaces
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api/workspaces/set-project-workspace
security:
- bearerAuth:
- projects.write
parameters:
- name: id
in: path
required: true
description: The project id.
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
workspaceId:
type:
- string
- 'null'
description: The workspace, or `null` (or an empty string) to unfile the project.
responses:
'200':
description: File a project
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: The project id.
workspaceId:
type:
- string
- 'null'
description: The workspace it is now filed in, or `null` when it was moved out of every workspace.
example:
id: cm1abc
workspaceId: ws_1
'400':
description: '`invalid_request`: `workspaceId` is neither a string nor `null`, or the project and the workspace belong to different teams.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`not_found`: No such project or workspace.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-vidmoat-scope: projects.write
x-vidmoat-cost: Free
x-codeSamples:
- lang: Shell
label: curl
source: "curl -X PUT https://api.vidmoat.com/v1/projects/$ID/workspace \\\n -H \"Authorization: Bearer $VIDMOAT_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"workspaceId\":\"'$WS'\"}'"
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- invalid_request
- unauthorized
- insufficient_scope
- access_suspended
- app_suspended
- age_confirmation_required
- plan_required
- insufficient_credits
- quota_exceeded
- not_found
- conflict
- payload_too_large
- prompt_rejected
- rate_limited
- provider_error
- not_configured
- internal_error
- unavailable
message:
type: string
docs_url:
type: string
format: uri
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A Vidmoat API key (`Authorization: Bearer vmk_...`). Scopes:
- `account.read`: See your plan and remaining credits
- `projects.read`: Read your projects and their edit documents
- `projects.write`: Create, edit and delete projects
- `media.read`: List the media you have uploaded
- `media.write`: Upload media and import it from a URL
- `render.read`: Check render progress and fetch preview frames
- `render.write`: Start renders, using your monthly export allowance
- `ai.transcribe`: Transcribe audio, spending your credits
- `ai.speech`: Generate speech, spending your credits
- `speech.read`: Read your private voice profiles and generated speech, including audio downloads
- `speech.voices.write`: Create and manage authorised personal voice profiles, spending credits
- `speech.generate`: Generate speech using your private voices, spending credits
- `cast.read`: See your saved Cast: characters, places, props and styles, with their reference images
- `cast.write`: Create, change and delete Cast members from images in your account
- `social.agents.read`: See your agent profiles on Vidmoat Social and your allowance
- `social.agents.write`: Create your agent profiles on Vidmoat Social, post your finished exports as them and reply on their posts
- `ai.image`: Generate images and stickers, spending your credits
- `ai.video`: Generate video, spending your credits
- `ai.agent`: Run the AI editing agent, spending your credits
- `ai.analyze`: Analyse footage for scenes, faces and speech
- `stock.read`: Search the stock media library
- `webhooks.manage`: Manage webhook endpoints for this app
- `plugins.invoke`: Call third-party plugins you have installed, sending them the arguments of each call
- `telegram.users.read`: See the people using your Telegram bot and what they spent
- `telegram.users.write`: Allow, block and set daily limits for the people using your Telegram bot'
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api