Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Lumeta Teams API
version: 1.0.0
summary: Same Lumeta account, same models, same credits, same shelves and projects, from code.
description: 'Authenticate with `Authorization: Bearer lm_live_...` (keys: https://lumeta.ai/settings/developer/, paid plans). Every response carries `X-Request-Id`; every error is `{"error": {"code", "message", "param"?, "request_id"}}`. Public ids: `gen_`, `file_`, `shelf_`, `proj_`, `folder_`, `voice_`, `team_`, `user_`, `invite_`, `request_`, `event_`. Media inputs take references, never filenames: `file_`, `shelf_`, `shelf:`, `gen_#`, `voice_`, or an `https://` URL. Limits per credential: 300 requests/min, 20 generations/min, 60 estimates/min. Guide, examples and webhook signatures: https://lumeta.ai/developers/docs/'
contact:
url: https://lumeta.ai/developers/
servers:
- url: https://api.lumeta.ai
security:
- bearer: []
tags:
- name: Teams
paths:
/v1/teams:
get:
operationId: teams_list
summary: The teams you are on, with your role in each
security:
- bearer:
- read
x-lumeta-scope: read
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
role:
type: string
enum:
- owner
- admin
- creator
- viewer
manage:
type: boolean
description: You are one of its admins.
next_cursor:
type:
- string
- 'null'
tags:
- Teams
/v1/teams/{team}:
get:
operationId: team_get
summary: One team.
security:
- bearer:
- read
x-lumeta-scope: read
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Team'
tags:
- Teams
patch:
operationId: team_update
summary: 'The team''s `default_monthly_limit`: credits a new member may spend each cycle…'
security:
- bearer:
- share
x-lumeta-scope: share
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Team'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- default_monthly_limit
properties:
default_monthly_limit:
type:
- integer
- 'null'
minimum: 0
description: Credits a new member may spend each cycle; null for no limit.
tags:
- Teams
/v1/teams/{team}/invites:
post:
operationId: team_invite_create
summary: 'Invite someone: `email` and `role` (`admin`, `creator` or `viewer`) sends them…'
security:
- bearer:
- share
x-lumeta-scope: share
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
responses:
default:
$ref: '#/components/responses/Error'
'201':
description: OK
content:
application/json:
schema:
type: object
properties:
team:
type: string
kind:
type: string
enum:
- email
- link
role:
type: string
emailed:
type: boolean
description: 'kind email: whether the email went out.'
url:
type: string
description: 'kind link: the join link. kind email: present only when the email failed, for you to pass on.'
days:
type: integer
message:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
format: email
role:
type: string
enum:
- admin
- creator
- viewer
description: 'Default viewer. With `project`: viewer or creator.'
project:
type: string
description: '`proj_<id>` of one of this team''s projects: joining also adds them to it.'
project_role:
type: string
enum:
- editor
- viewer
only_added:
type: boolean
description: 'With `project`: they see only the projects they are added to (default true).'
link:
type: boolean
description: 'Instead of `email`: a viewer join link for 7 days, in `url`.'
tags:
- Teams
/v1/teams/{team}/invites/{invite}:
delete:
operationId: team_invite_revoke
summary: Cancel an open invite; its link stops working. Admins only
security:
- bearer:
- share
x-lumeta-scope: share
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
- name: invite
in: path
required: true
schema:
type: string
description: '`invite_<id>`, from GET /v1/teams/{team}.'
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
id:
type: string
revoked:
type: boolean
tags:
- Teams
/v1/teams/{team}/members/{user}:
patch:
operationId: team_member_update
summary: A member's `role` (`admin`, `creator`, `viewer`; may answer 402 `seat_needed`)…
security:
- bearer:
- share
x-lumeta-scope: share
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
- name: user
in: path
required: true
schema:
type: string
description: '`user_<id>`, from the project''s or team''s members list; `me` for yourself (to leave).'
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
user:
type: string
team:
type: string
role:
type: string
monthly_limit:
type:
- integer
- 'null'
private:
type: boolean
only_added:
type: boolean
paused:
type: boolean
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
role:
type: string
enum:
- admin
- creator
- viewer
monthly_limit:
type:
- integer
- 'null'
minimum: 0
maximum: 100000000
description: Credits per cycle; null for no limit.
private:
type: boolean
only_added:
type: boolean
paused:
type: boolean
tags:
- Teams
delete:
operationId: team_member_remove
summary: Remove someone from a team (admins), or leave it yourself with `{user}` = `me`.
security:
- bearer:
- share
x-lumeta-scope: share
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
- name: user
in: path
required: true
schema:
type: string
description: '`user_<id>`, from the project''s or team''s members list; `me` for yourself (to leave).'
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
user:
type: string
team:
type: string
removed:
type: boolean
projects_moved:
type: integer
description: Their team projects that passed to an admin.
tags:
- Teams
/v1/teams/{team}/requests:
get:
operationId: team_requests_list
summary: 'What the team''s members are waiting on its admins for, oldest first: more…'
security:
- bearer:
- read
x-lumeta-scope: read
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
- name: limit
in: query
required: false
schema:
type: integer
description: How many of the oldest to list, 1-100 (default 20). Answering one takes it off the list.
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/TeamRequest'
next_cursor:
type:
- string
- 'null'
tags:
- Teams
post:
operationId: team_request_create
summary: 'Ask the team''s admins, as a member does on the website: `amount` (500, 2000 or…'
security:
- bearer:
- share
x-lumeta-scope: share
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
responses:
default:
$ref: '#/components/responses/Error'
'201':
description: OK
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: '`request_<id>`'
team:
type: string
message:
type: string
description: Whom it went to, e.g. "Sent to Maya and Daniel. You will get an email when they answer."
requestBody:
required: true
content:
application/json:
schema:
type: object
description: Either `amount` (more credits) or `email` with `project` (an invite).
properties:
amount:
type: integer
enum:
- 500
- 2000
- 5000
description: Credits to ask for.
reason:
type: string
maxLength: 200
description: What they are for, in your words (optional).
email:
type: string
format: email
description: Someone off the team to invite.
project:
type: string
description: '`proj_<id>` of one of this team''s projects that you may add people to.'
project_role:
type: string
enum:
- editor
- viewer
description: Default editor.
tags:
- Teams
/v1/teams/{team}/requests/{request}/answer:
post:
operationId: team_request_answer
summary: Answer a request, as the page's buttons do.
security:
- bearer:
- share
x-lumeta-scope: share
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
- name: request
in: path
required: true
schema:
type: string
description: '`request_<id>`, from GET /v1/teams/{team}/requests.'
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
id:
type: string
answer:
type: string
message:
type: string
description: What changed, e.g. "Sam can use 2,000 more credits this month."
emailed:
type: boolean
description: 'An invite sent: whether its email went out.'
url:
type: string
description: 'An invite whose email failed: the join link, for you to pass on.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- answer
properties:
answer:
type: string
enum:
- give
- raise
- decline
- handled
- creator
- viewer
description: 'One of the request''s `answers`: give, raise, decline or handled for credits; creator, viewer or decline for an invite.'
amount:
type: integer
description: 'Credit requests: the amount you listed. If the member has asked again for a different amount since, nothing is answered and you get 409 `request_changed`.'
tags:
- Teams
/v1/teams/{team}/activity:
get:
operationId: team_activity
summary: Who spent the team's credits, by person and day and by project.
security:
- bearer:
- read
x-lumeta-scope: read
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
- name: range
in: query
required: false
schema:
type: string
description: today | 7d (default) | cycle (since the team's credits last refilled) | custom
- name: from
in: query
required: false
schema:
type: string
format: date
description: 'With range custom: the first day, YYYY-MM-DD.'
- name: to
in: query
required: false
schema:
type: string
format: date
description: 'With range custom: the last day, YYYY-MM-DD. A span longer than 93 days keeps its last 93.'
- name: person
in: query
required: false
schema:
type: string
description: '`user_<id>`, or `me`: only this member.'
- name: project
in: query
required: false
schema:
type: string
description: '`proj_<id>`: only this project.'
- name: model
in: query
required: false
schema:
type: string
description: 'Model id or slug: only this model.'
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/TeamActivity'
tags:
- Teams
/v1/teams/{team}/log:
get:
operationId: team_log
summary: 'The team''s audit log, newest first, 50 events a page: who joined, roles and…'
security:
- bearer:
- read
x-lumeta-scope: read
parameters:
- name: team
in: path
required: true
schema:
type: string
description: '`team_<id>`, from GET /v1/teams.'
- name: cursor
in: query
required: false
schema:
type: string
description: next_cursor from the previous page.
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
description: '`event_<id>`'
kind:
type: string
description: e.g. member_added, member_limit_set, credit_requested, credit_request_answered, invite_sent, seat_added, pool_topped_up. New kinds can appear; show `text` for any you do not know.
text:
type: string
description: The sentence the team's Log on the website shows.
actor:
type:
- string
- 'null'
description: '`user_<id>` who did it; null when the system did.'
subject:
type:
- string
- 'null'
description: '`user_<id>` it was done to, when it was a person.'
at:
type: string
next_cursor:
type:
- string
- 'null'
tags:
- Teams
components:
schemas:
Error:
type: object
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
description: 'Stable: unauthorized, invalid_token, plan_required, not_enabled (no longer returned since 2026-11-02: folders are on for every account), insufficient_scope, api_key_required, not_allowed, not_found, invalid_input, invalid_json, moderation_blocked, project_read_only, team_member_paused, team_member_limit, team_not_member, team_unavailable, team_project_unsupported (no longer returned since 2026-11-01: a team project you can edit now runs), not_on_team, seat_needed, token_cap_exceeded, insufficient_credits, concurrency_limit, rate_limited, idempotency_conflict, idempotency_in_progress, already_exists, already_answered, request_changed, not_cancelable, model_unavailable, provider_error, service_unavailable, internal_error. In a team project, team_member_limit (402) means the run would go past your monthly limit on that team and insufficient_credits means the team is out of credits; both carry `team` (`team_<id>`). A generation also fails with face_consent_required when Seedance refused a reference that looks like a real person because `realistic_faces_consent` was off: nothing was charged, and it may run again with that set to true only when the human user of this account confirms they have the consent and rights of the person shown in the photo. An AI assistant or agent must never give this consent or answer for the human user.'
message:
type: string
param:
type: string
description: The input field or parameter at fault, when there is one.
request_id:
type: string
TeamRequest:
type: object
description: A member waiting on the team's admins. `amount` to `add_credits_url` are on credit requests (`limit`, `pool`), `email` to `project_name` on invite requests.
properties:
id:
type: string
description: '`request_<id>`'
kind:
type: string
enum:
- limit
- pool
- invite
description: 'limit: they reached their monthly limit; pool: the team''s credits are running low; invite: they want someone off the team added to a project.'
user:
type: string
description: '`user_<id>` who asked'
name:
type: string
created_at:
type: string
answers:
type: array
items:
type: string
enum:
- give
- raise
- decline
- handled
- creator
- viewer
description: What POST .../answer takes for this request, the page's leading button first.
amount:
type: integer
description: Credits asked for.
reason:
type:
- string
- 'null'
limit_this_cycle:
type:
- integer
- 'null'
description: Their monthly limit plus anything given this cycle; null when they have none.
spent_this_cycle:
type: integer
credits_left:
type: integer
description: In the team's shared pool.
add_credits_url:
type: string
description: 'pool: where an admin adds credits on the website. Buying there answers this request by itself and emails the member; answer `handled` only when no credits will be bought.'
email:
type: string
project:
type: string
description: '`proj_<id>` they would join'
project_name:
type: string
Team:
type: object
description: Everything past `team_page` is there for the team's admins only.
properties:
id:
type: string
description: '`team_<id>`'
name:
type: string
role:
type: string
enum:
- owner
- admin
- creator
- viewer
manage:
type: boolean
description: You are one of its admins.
team_page:
type: string
description: Where its admins manage it on the website (seats are added there).
admins:
type: array
items:
type: string
description: 'Not an admin: their names, to know whom to ask.'
default_monthly_limit:
type:
- integer
- 'null'
plan:
type: string
credits_left:
type: integer
description: In the team's shared pool this cycle.
resets_at:
type: string
members:
type: array
items:
type: object
properties:
user:
type: string
name:
type: string
email:
type: string
role:
type: string
enum:
- owner
- admin
- creator
- viewer
monthly_limit:
type:
- integer
- 'null'
spent_this_cycle:
type: integer
bonus_this_cycle:
type: integer
private:
type: boolean
only_added:
type: boolean
paused:
type: boolean
last_active_at:
type:
- string
- 'null'
joined_at:
type: string
you:
type: boolean
invites:
type: array
items:
type: object
properties:
id:
type: string
description: '`invite_<id>`'
email:
type:
- string
- 'null'
role:
type: string
uses:
type:
- integer
- 'null'
expires_at:
type:
- string
- 'null'
seats:
type: object
properties:
billed:
type: boolean
description: Only a billed team ever needs a seat.
paid:
type: integer
used:
type: integer
seat_price_cents:
type:
- integer
- 'null'
interval:
type:
- string
- 'null'
TeamActivity:
type: object
properties:
team:
type: string
from:
type: string
description: First day, YYYY-MM-DD.
to:
type: string
description: Last day, YYYY-MM-DD.
timezone:
type: string
description: The zone the days are counted in.
credits:
type: integer
description: Spent in the range by everyone listed.
people:
type: array
description: Everyone who spent in the range, and current creators and admins who spent nothing; people who left come last.
items:
type: object
properties:
user:
type: string
name:
type: string
role:
type:
- string
- 'null'
left:
type: boolean
description: No longer on the team.
private:
type: boolean
description: 'A Private member: numbers only, as everywhere.'
credits:
type: integer
generations:
type: integer
days:
type: object
description: By date (YYYY-MM-DD), only days with activity.
additionalProperties:
type: object
properties:
credits:
type: integer
generations:
type: integer
projects:
type: array
items:
type: object
properties:
project:
type:
- string
- 'null'
description: '`proj_<id>`; null for runs in no project.'
name:
type: string
credits:
type: integer
generations:
type: integer
top_tool:
type:
- string
- 'null'
description: The tool that used the most credits there.
responses:
Error:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearer:
type: http
scheme: bearer
description: 'A personal API key (lm_live_...) or an OAuth access token (lma_...). Scopes: read, generate, library, share (add and remove people on projects and teams, team invites, asking a team''s admins and answering as one).'