MDflow Team workspaces API
Team API (/api/team/v1) — authenticated with a Team access token.
Team API (/api/team/v1) — authenticated with a Team access token.
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/mdflow-cz:mdflow-cz-team-workspaces-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. 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MDflow Public Team workspaces API
version: 1.0.0
description: 'HTTP API for reading and writing workspaces, folders, and markdown documents in MDflow. The personal API under /api/v1 authenticates with a Personal Access Token (mdf_…) or an OAuth access token and requires MDflow Pro. The Team API under /api/team/v1 is the content surface of an MDflow Team account: it authenticates with a Team access token (mdt_…) that is bound to one Team account, granted only the workspaces picked at creation, capped at read-only or read-and-write, and re-checked against the creator''s live membership, role, workspace permission, and the account''s access state on every request. Personal tokens are rejected on Team routes and Team tokens on personal routes.'
servers:
- url: https://mdflow.cz
description: Production
- url: http://localhost:3000
description: Local development
security:
- personalAccessToken: []
tags:
- name: Team workspaces
description: Team API (/api/team/v1) — authenticated with a Team access token.
paths:
/api/team/v1/workspaces:
get:
operationId: listTeamWorkspaces
summary: List Team workspaces
description: 'Lists the Team workspaces this Team access token can reach, sorted by name. Each row carries the token''s effective access_level in that workspace (read or write, after intersecting the token''s cap with the creator''s current permission) and the Team account''s access state. Start here: every other Team endpoint needs a workspace, folder, or document id from this tree.'
tags:
- Team workspaces
security:
- teamAccessToken: []
responses:
'200':
description: Team workspace list.
headers:
Cache-Control:
$ref: '#/components/headers/NoStore'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TeamWorkspace'
'401':
$ref: '#/components/responses/TeamUnauthorized'
'403':
$ref: '#/components/responses/TeamForbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/TeamServerError'
components:
headers:
RetryAfter:
description: Seconds to wait before retrying after a rate-limit response.
schema:
type: integer
minimum: 1
NoStore:
description: API responses are not cacheable.
schema:
type: string
const: no-store
TeamWwwAuthenticate:
description: 'RFC 6750 Bearer challenge for the Team API. `Bearer realm="MDflow Team"` when credentials are missing, or `Bearer realm="MDflow Team", error="invalid_token", error_description="…"` when a token was rejected. Carries no `resource_metadata` parameter: the Team API accepts only Team access tokens today, and OAuth is a planned later phase.'
schema:
type: string
schemas:
TeamWorkspace:
type: object
additionalProperties: false
required:
- id
- account_id
- name
- description
- created_at
- updated_at
- access_level
- account_access_state
properties:
id:
type: string
format: uuid
account_id:
type: string
format: uuid
description: The Team account this workspace belongs to.
name:
type: string
description:
type:
- string
- 'null'
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
access_level:
type: string
enum:
- read
- write
description: 'The token''s effective access in this workspace right now: its cap intersected with the creator''s current permission.'
account_access_state:
type: string
enum:
- setup
- active
- grace
- read_only
- deleting
description: The Team account's lifecycle state. Writes succeed only while it is active.
Error:
type: object
additionalProperties: false
required:
- error
properties:
error:
type: string
message:
type: string
description: Optional human-readable guidance for resolving the error, included on authentication (401) and authorization (403) failures.
responses:
TeamServerError:
description: Unexpected server error, or the live membership lookup failed. Retry rather than discarding the token — this is never a revocation signal.
headers:
Cache-Control:
$ref: '#/components/headers/NoStore'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
unexpected:
value:
error: Unexpected API error
accessLookupFailed:
value:
error: Could not verify team access
RateLimited:
description: The token or authenticated user exceeded a 60 requests per minute rate limit.
headers:
Cache-Control:
$ref: '#/components/headers/NoStore'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
rateLimited:
value:
error: Rate limit exceeded
TeamUnauthorized:
description: Missing, malformed, invalid, or revoked Team access token — including a personal `mdf_` token sent to a Team route, and a token whose creator has left the team. The body includes a `message` with Team token guidance, and the response carries a `WWW-Authenticate` challenge.
headers:
Cache-Control:
$ref: '#/components/headers/NoStore'
WWW-Authenticate:
$ref: '#/components/headers/TeamWwwAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
missingToken:
value:
error: Missing or malformed bearer token
message: 'Authenticate with an MDflow Team access token (send an ''Authorization: Bearer mdt_...'' header). Team tokens are created by team members on the Team API Access page at https://mdflow.cz/teams and follow the creator''s current team membership and workspace permissions.'
invalidToken:
value:
error: Invalid bearer token
message: 'Authenticate with an MDflow Team access token (send an ''Authorization: Bearer mdt_...'' header). Team tokens are created by team members on the Team API Access page at https://mdflow.cz/teams and follow the creator''s current team membership and workspace permissions.'
TeamForbidden:
description: 'The Team access token is valid but the operation exceeds its effective access: a write from a read-only token or from a creator whose current workspace permission is read-only, a write while the Team account is not active (setup, grace, or read_only), or any request while the account is being deleted. No plan check is involved — eligibility comes from the Team seat. The body includes a `message` with guidance.'
headers:
Cache-Control:
$ref: '#/components/headers/NoStore'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
writeAccessRequired:
value:
error: Write access required
message: 'Authenticate with an MDflow Team access token (send an ''Authorization: Bearer mdt_...'' header). Team tokens are created by team members on the Team API Access page at https://mdflow.cz/teams and follow the creator''s current team membership and workspace permissions.'
accountReadOnly:
value:
error: Team account is read-only
message: 'Authenticate with an MDflow Team access token (send an ''Authorization: Bearer mdt_...'' header). Team tokens are created by team members on the Team API Access page at https://mdflow.cz/teams and follow the creator''s current team membership and workspace permissions.'
accountUnavailable:
value:
error: Team account is unavailable
message: 'Authenticate with an MDflow Team access token (send an ''Authorization: Bearer mdt_...'' header). Team tokens are created by team members on the Team API Access page at https://mdflow.cz/teams and follow the creator''s current team membership and workspace permissions.'
securitySchemes:
personalAccessToken:
type: http
scheme: bearer
bearerFormat: PAT
description: 'Use an MDflow Personal Access Token in the form `Authorization: Bearer mdf_...`.'
teamAccessToken:
type: http
scheme: bearer
bearerFormat: Team access token
description: 'Use an MDflow Team access token in the form `Authorization: Bearer mdt_...`. Created by any member on the Team''s API Access page (`/teams/{accountId}/api-access`); bound to one Team account, limited to the workspaces selected at creation, capped at read-only or read-and-write, and re-checked against the creator''s live membership and permissions on every request. Only accepted by the `/api/team/v1` routes.'