TeamYou Details API
The Details API from TeamYou — 2 operation(s) for details.
The Details API from TeamYou — 2 operation(s) for details.
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/teamyou-com:teamyou-com-details-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: TeamYou External Details API
version: 2.67.0
description: 'REST contract for the TeamYou external API (`/api/external/v1`).
**Recommended: use the TeamYou skill** — it is the supported path. The skill installs from
the link below, identifies every request, and registers your agent in one step.
Raw HTTP works today, but client-identification enforcement is being rolled out. Once it is
enabled, a call with no recognized `X-TeamYou-Client` is rejected with a 403
`client_identification_required` (carrying `skill_install_url`, `registerUrl`, and `docs_url`).
Provisioned tool integrations are the planned non-skill path; until then, install the skill.
If an automated call is unexpectedly rejected, stop and report it rather than changing how the
client identifies itself.
**MCP.** The same operations are also served over the Model Context Protocol at
`https://www.teamyou.com/mcp` — same scopes, same handlers; the tool catalogue is generated from
this contract. Authentication follows the client: OAuth for the ones that speak it (Claude
Code, Claude Desktop / claude.ai, Cursor, Codex, ChatGPT), and `Authorization: Bearer
ty_` for header-only clients.
A read-only server is at `https://www.teamyou.com/mcp/readonly`: only the reading tools are offered, a
sign-in there asks for `read` alone, and a key presented there can change nothing whatever
scopes it holds.
https://www.teamyou.com/mcp/install says which is which and carries the configuration for each.
All endpoints require `Authorization: Bearer ty_` except `GET /openapi.json`. Any 2xx body
may also carry an optional `agent_ecosystem_notice` when the calling skill client is outdated, and
a `never_save_notice`, once per key, after the person''s never-save settings change: follow its `line`
from then on in everything you save.
**Scopes.** Each API key carries a fixed set of scopes chosen when it was created. Every
operation below publishes what it needs as `x-teamyou-scope` — a string, or an array when an
operation composes two writes and requires ALL of them; a key without one gets a 403
`insufficient_scope` carrying `required_scope` and `granted_scopes`. That denial is NOT
retryable — scopes cannot be edited after creation, so the fix is a new key, not another
attempt. Scopes are separate from the account-wide AI preferences and compose with them as
AND: a call needs the scope on its key AND the preference on the account.'
x-teamyou-skill:
installUrl: https://www.teamyou.com/api/skill/install
docsUrl: https://www.teamyou.com/api/external/v1/openapi.json
recommended: true
servers:
- url: https://www.teamyou.com/api/external/v1
security:
- bearerAuth: []
tags:
- name: Details
paths:
/topics/{id}/details:
get:
tags:
- Details
operationId: details-list
summary: List details for a topic
description: Returns an empty list (200) if the topic is missing or not owned — does not 404.
x-cli:
service: graph
action: details-list
usage: <topic_id>
x-mcp:
expose: true
x-teamyou-scope: read
parameters:
- name: id
in: path
required: true
schema:
type: string
minLength: 1
description: Topic id
responses:
'200':
description: Details for the topic.
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Max requests in the window.
X-RateLimit-Remaining:
schema:
type: integer
description: Remaining requests in the window.
X-RateLimit-Reset:
schema:
type: integer
description: Seconds until the window resets.
content:
application/json:
schema:
type: object
properties:
details:
type: array
items:
$ref: '#/components/schemas/TopicDetail'
links:
$ref: '#/components/schemas/WebLinks'
description: URL templates for the rows in this response — web pages for a person, not API endpoints. Replace the one {field} placeholder with that field of the row, URL-encoded.
required:
- details
- links
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/AgentGate'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/RateLimitUnavailable'
post:
tags:
- Details
operationId: details-add
summary: Add details (batch, max 50)
x-cli:
service: graph
action: details-add
usage: <topic_id> <detail1> [detail2] [detail3] ...
x-mcp:
expose: true
x-teamyou-scope: knowledge:write
parameters:
- name: id
in: path
required: true
schema:
type: string
minLength: 1
description: Topic id
- name: Idempotency-Key
in: header
required: false
schema:
type: string
minLength: 1
maxLength: 100
pattern: ^[\x21-\x7e]+$
description: 'Makes this write safe to retry: a repeat with the same key and the same body returns the first result (with `Idempotent-Replayed: true`) and writes nothing. One key per logical write, 1–100 printable characters. A key you choose lasts 24 hours; one starting with `auto:` (derived from the request content) lasts 10 minutes. A failed write keeps nothing, so retrying it really retries. If the item the first request saved has since been removed for good at the person''s request (never-save), a repeat answers 410 `item_removed` instead: do not save it again. Scoped to your API key.'
x-teamyou-idempotent: true
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AddDetailsRequest'
responses:
'201':
description: Created details (each embedded for semantic search).
headers:
Idempotent-Replayed:
description: '`true` when this is the stored result of an earlier request with the same Idempotency-Key; nothing was written again. Absent on a first run.'
schema:
type: string
enum:
- 'true'
content:
application/json:
schema:
type: object
properties:
details:
type: array
items:
$ref: '#/components/schemas/TopicDetail'
links:
$ref: '#/components/schemas/WebLinks'
description: URL templates for the rows in this response — web pages for a person, not API endpoints. Replace the one {field} placeholder with that field of the row, URL-encoded.
required:
- details
- links
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/AgentGate'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/IdempotencyInProgress'
'422':
description: 'Unprocessable, and nothing was written. secret_refused: the body contains what looks like a password, a key or token, a national ID number (such as a Social Security number) or a payment card number, which TeamYou never keeps for any agent. Carries field (where it was, such as `description` or `tasks[1].title`; null for the whole body) and kind (`api_key`, `private_key`, `password`, `card_number` or `id_number`), never the value. Take the secret out and send the write again; you can say where it is kept instead. NOT retryable unchanged. Or idempotency_key_reused: this Idempotency-Key was already used for a different request; use a new key for a new write.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/RateLimitUnavailable'
/topics/{id}/details/{detailId}:
put:
tags:
- Details
operationId: details-update
summary: Update a detail
x-cli:
service: graph
action: details-update
usage: <topic_id> <detail_id> <text>
x-mcp:
expose: true
x-teamyou-scope: knowledge:write
parameters:
- name: id
in: path
required: true
schema:
type: string
minLength: 1
description: Topic id
- name: detailId
in: path
required: true
schema:
type: string
minLength: 1
description: Detail id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateDetailRequest'
responses:
'200':
description: Updated detail.
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Max requests in the window.
X-RateLimit-Remaining:
schema:
type: integer
description: Remaining requests in the window.
X-RateLimit-Reset:
schema:
type: integer
description: Seconds until the window resets.
content:
application/json:
schema:
type: object
properties:
detail:
allOf:
- $ref: '#/components/schemas/TopicDetail'
- $ref: '#/components/schemas/HasWebUrl'
required:
- detail
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/AgentGate'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/SecretRefused'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/RateLimitUnavailable'
delete:
tags:
- Details
operationId: details-delete
summary: Delete a detail
x-cli:
service: graph
action: details-delete
usage: <topic_id> <detail_id>
x-mcp:
expose: true
x-teamyou-scope: knowledge:write
parameters:
- name: id
in: path
required: true
schema:
type: string
minLength: 1
description: Topic id
- name: detailId
in: path
required: true
schema:
type: string
minLength: 1
description: Detail id
responses:
'200':
description: Deleted.
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Max requests in the window.
X-RateLimit-Remaining:
schema:
type: integer
description: Remaining requests in the window.
X-RateLimit-Reset:
schema:
type: integer
description: Seconds until the window resets.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
enum:
- true
required:
- success
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/AgentGate'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/RateLimitUnavailable'
components:
schemas:
ProvenanceActor:
type: object
properties:
type:
type: string
enum:
- agent
- owner
description: 'agent: a connected agent, through its key. owner: the account’s person, in the TeamYou app.'
agentId:
type:
- string
- 'null'
description: The agent (an agt_ id). Null for a key with no registered agent. Absent for the owner.
name:
type: string
description: The agent’s display name, or "An agent" when it has none. Absent for the owner.
via:
type: string
enum:
- api
- mcp
description: 'How the agent made the change: the REST API or an MCP connector. Absent for the owner, and on a document change in GET /history, which records no channel.'
required:
- type
WebLinks:
type: object
additionalProperties: false
description: 'URL templates for the rows of a list response, present only for the types the response holds. Each holds exactly one {field} placeholder naming a field of the row: fill it with that value, URL-encoded, to get the row''s web page — a page for a person, not an API endpoint.'
properties:
task:
type: string
description: 'Template for a task row (the task''s page): replace {key} with that field of the row.'
project:
type: string
description: 'Template for a project row: replace {key} with that field of the row.'
topic:
type: string
description: 'Template for a topic row, or the topic at the other end of an edge row: replace {id} ({linkedTopicId} on an edge) with that field of the row.'
detail:
type: string
description: 'Template for a detail row (its topic''s page): replace {topicId} with that field of the row.'
area:
type: string
description: 'Template for an area row: replace {id} with that field of the row.'
document:
type: string
description: 'Template for an Agent Drive document row: replace {id} with that field of the row.'
ProblemDetails:
type: object
description: RFC 9457 Problem Details, served as application/problem+json. Carries a stable machine-readable `code` plus error-specific extension members.
properties:
type:
type: string
format: uri
description: 'Stable problem-type identifier URI; resolves to this contract with an #error-<code> fragment.'
title:
type: string
description: Short, stable summary of the problem type.
status:
type: integer
code:
type: string
description: Stable machine-readable error code, e.g. validation_error, invalid_json, not_found, conflict, idempotency_in_progress, idempotency_key_reused, agent_not_registered, agent_retired, client_identification_required, skill_update_required, client_update_nudge, insufficient_scope, ack_invalid, rate_limit_exceeded, quota_exceeded, product_limit_exceeded, internal_error.
detail:
type: string
description: Instance-specific human-readable explanation.
instance:
type: string
description: Optional URI identifying this specific occurrence.
fix:
type: string
description: 'Present on AI-preference denials (AI_UPDATE_DISABLED / AI_DELETE_DISABLED / AI_SHARE_DISABLED): one plain-ASCII line naming every Settings switch that blocks this action and where to find them. Relay `fix` to your person as-is.'
blockedPreferences:
type: array
items:
type: string
enum:
- aiUpdateEnabled
- aiDeleteEnabled
- aiShareEnabled
description: 'Present on AI-preference denials: every account preference that blocks this action, so one 403 names them all (a sharing call can be blocked by two). requiredPreference is the first of them.'
settingsUrl:
type: string
format: uri
description: Present on AI-preference denials, where it links to the Settings section holding the account-wide agent blocks, and on plan-limit denials, where it links to Settings.
required:
- type
- title
- status
- code
additionalProperties: true
TopicDetail:
type: object
properties:
id:
type: string
userId:
type: string
topicId:
type: string
detail:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
createdBy:
oneOf:
- $ref: '#/components/schemas/ProvenanceActor'
- type: 'null'
description: Who created it. Null when it was created before TeamYou recorded who did.
lastEditedBy:
oneOf:
- $ref: '#/components/schemas/ProvenanceActor'
- type: 'null'
description: Who last changed it. Null when nobody has changed it since history was recorded. Compare with your own agentId to see whether someone else changed it since you last read it.
lastEditedAt:
type:
- string
- 'null'
format: date-time
description: When lastEditedBy changed it; null alongside it.
required:
- id
- userId
- topicId
- detail
- createdAt
- updatedAt
UpdateDetailRequest:
type: object
properties:
detail:
type: string
minLength: 1
maxLength: 5000
required:
- detail
ProductLimitProblem:
allOf:
- $ref: '#/components/schemas/ProblemDetails'
type: object
description: 'Problem Details for code product_limit_exceeded: the request would pass a limit of the account’s plan.'
properties:
detail:
type: string
description: 'A sentence for the person: the limit that was reached and what the next plan gives for it, or how to free room. Carries no URL.'
limitKey:
type: string
enum:
- topics
- details
- todos
- documents
description: 'The limit that was reached. `todos` is the task limit (the key keeps its original spelling). `documents` is Agent Drive documents: archived documents count, so only a person permanently deleting documents in TeamYou makes room, because an agent’s delete archives. Rewriting an existing document never reaches it.'
limitKind:
type: string
enum:
- hard_cap
description: 'hard_cap: a total that only goes down when items are deleted. The only kind of limit there is.'
tierCode:
type: string
description: The code of the plan the account is on, e.g. free.
currentUsage:
type: integer
description: How much of the limit is used now.
requestedUsage:
type: integer
description: How much this request would have added.
limit:
type: integer
description: The limit on the current plan.
remaining:
type: integer
description: How much of the limit is left (0 or more).
settingsUrl:
type: string
format: uri
description: Absolute URL of the person’s plan and usage settings in TeamYou.
upgradeUrl:
type: string
format: uri
description: Absolute URL of the page that upgrades to nextTier; the person opens it, signs in if needed, and checks out. Present only with nextTier.
nextTier:
type: object
description: The next plan up and what it gives for this limit. Absent at the top plan, or when the next plan is not better for this limit.
properties:
code:
type: string
description: Plan code, e.g. plus.
name:
type: string
description: Plan name, e.g. Plus.
limit:
type:
- integer
- 'null'
description: That plan’s limit for limitKey; null means unlimited.
required:
- code
- name
- limit
required:
- detail
- limitKey
- limitKind
- tierCode
- currentUsage
- requestedUsage
- limit
- remaining
- settingsUrl
AddDetailsRequest:
type: object
properties:
details:
type: array
items:
type: object
properties:
detail:
type: string
minLength: 1
maxLength: 5000
required:
- detail
minItems: 1
maxItems: 50
required:
- details
HasWebUrl:
type: object
properties:
url:
type: string
format: uri
description: This object's web page in TeamYou, on the serving deployment's origin — a page for a person, not an API endpoint. When you tell a person about it, make the object's title the link text and this the target; never show a bare id or a bare url, and use the id only in commands. A task's or a project's url is keyed on its key (TASK-12, PROJ-2) rather than its id; a detail's url is its topic's page.
required:
- url
responses:
AgentGate:
description: 'Forbidden. One of: api_key_user_not_found (key belongs to a user absent from this environment); client_identification_required (no recognized X-TeamYou-Client; carries skill_install_url, registerUrl, docs_url; only when TEAMYOU_GATE_REQUIRE_IDENTIFIED_CLIENT); agent_not_registered (registerUrl, skill_install_url, docs_url); skill_update_required (required_version, install_url, docs_url; possibly Deprecation/Sunset headers); client_update_nudge (a soft, relent-able staleness nudge for an agentic client below the latest release when TEAMYOU_GATE_NAG_ENABLED is on; carries verified_version, required_version, upgrade_url, ack_url, ack_token, nag_interval, nag_acks_so_far, docs_url — upgrade to end it, or fetch ack_url to relent one call at a rising cost); insufficient_scope (the API key lacks this operation’s x-teamyou-scope; carries required_scope, granted_scopes, docs_url — NOT retryable: scopes are fixed at key creation, so create a new key with the required scope instead of retrying); agent_retired (this key was revoked and its agent has been retired; carries agent {id, slug}, retiredAt, harness and remove {schedule, keyFile} — switch to a new key for this account if you were given one, otherwise stop checking in to this account; NOT retryable with this key); or an AI-preference denial AI_UPDATE_DISABLED / AI_DELETE_DISABLED / AI_SHARE_DISABLED (an account-wide block in Settings > Agent permissions is on; carries requiredPreference, blockedPreferences (every preference in the way; a sharing call can be blocked by two), fix (one line to relay to your person as-is: which switch or switches to turn off, and where) and settingsUrl (the link to those switches) - NOT retryable until the person turns the block off). Scopes and AI preferences compose as AND — passing one does not bypass the other. Gate codes only apply when the corresponding env flag is enabled.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
RateLimitUnavailable:
description: 'The limit check itself failed, so the request was not run (code: rate_limit_unavailable). The caller did not go over a limit. Includes Retry-After.'
headers:
Retry-After:
schema:
type: integer
description: Seconds until the client may retry.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
RateLimited:
description: 'Rate limit exceeded (code: rate_limit_exceeded). Includes Retry-After and X-RateLimit-* headers.'
headers:
Retry-After:
schema:
type: integer
description: Seconds until the client may retry.
X-RateLimit-Limit:
schema:
type: integer
description: Max requests in the window.
X-RateLimit-Remaining:
schema:
type: integer
description: Remaining requests in the window.
X-RateLimit-Reset:
schema:
type: integer
description: Seconds until the window resets.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
IdempotencyInProgress:
description: 'A request with this Idempotency-Key is still running (code: idempotency_in_progress). Retry shortly with the same key to get its result.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
PaymentRequired:
description: 'Payment required — product_limit_exceeded: the request would pass a limit of the account’s plan, and nothing was written. `detail` is a sentence to relay to the person; `upgradeUrl` (when a higher plan is better for this limit) is a page they can open to upgrade, and `settingsUrl` shows their plan and usage. Not retryable until the person upgrades or frees room.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProductLimitProblem'
ServerError:
description: 'Internal server error (code: internal_error).'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
SecretRefused:
description: 'Unprocessable, and nothing was written. secret_refused: the body contains what looks like a password, a key or token, a national ID number (such as a Social Security number) or a payment card number, which TeamYou never keeps for any agent. Carries field (where it was, such as `description` or `tasks[1].title`; null for the whole body) and kind (`api_key`, `private_key`, `password`, `card_number` or `id_number`), never the value. Take the secret out and send the write again; you can say where it is kept instead. NOT retryable unchanged.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
NotFound:
description: 'Resource not found (code: not_found).'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
Unauthorized:
description: 'Missing, malformed, expired, or revoked API key (code: unauthorized). A revoked key whose agent has been retired answers 403 agent_retired instead.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
ValidationError:
description: 'Validation error — invalid body, query, or path param (code: validation_error or invalid_json). `details` carries Zod field errors; PATCH /edges also adds `formErrors`.'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key: `Authorization: Bearer ty_<key>`.'