TeamYou Edges API
The Edges API from TeamYou — 2 operation(s) for edges.
The Edges API from TeamYou — 2 operation(s) for edges.
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-edges-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 Edges 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: Edges
paths:
/edges:
get:
tags:
- Edges
operationId: edges-list
summary: List edges touching a topic
x-cli:
service: graph
action: edges-list
usage: <topic_id>
x-mcp:
expose: true
x-teamyou-scope: read
parameters:
- name: topicId
in: query
required: true
schema:
type: string
minLength: 1
description: Topic id (required).
responses:
'200':
description: Edges normalized to the topic perspective.
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:
edges:
type: array
items:
$ref: '#/components/schemas/ResolvedEdge'
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:
- edges
- links
'400':
$ref: '#/components/responses/ValidationError'
'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'
post:
tags:
- Edges
operationId: edges-create
summary: Create an edge
description: 201 when created; 200 when an inverse-direction equivalent already exists (idempotent). Creation does not require the AI-update preference.
x-cli:
service: graph
action: edges-create
aliases:
- edges-link
usage: <source_topic_id> <target_topic_id> <label> [--mirror-label <text>]
x-mcp:
expose: true
x-teamyou-scope: knowledge:write
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateEdgeRequest'
responses:
'200':
description: Idempotent — existing inverse edge returned.
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:
edge:
$ref: '#/components/schemas/Edge'
required:
- edge
'201':
description: Newly created edge.
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:
edge:
$ref: '#/components/schemas/Edge'
required:
- edge
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/AgentGateWithoutAIPreference'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/SecretRefused'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/RateLimitUnavailable'
/edges/{id}:
patch:
tags:
- Edges
operationId: edges-update
summary: Update edge labels
x-cli:
service: graph
action: edges-update
usage: <edge_id> [--label <text>] [--mirror-label <text>]
x-mcp:
expose: true
x-teamyou-scope: knowledge:write
parameters:
- name: id
in: path
required: true
schema:
type: string
minLength: 1
description: Edge id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PatchEdgeRequest'
responses:
'200':
description: Updated edge.
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:
edge:
$ref: '#/components/schemas/Edge'
required:
- edge
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/AgentGate'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/SecretRefused'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'503':
$ref: '#/components/responses/RateLimitUnavailable'
delete:
tags:
- Edges
operationId: edges-delete
summary: Delete an edge
x-cli:
service: graph
action: edges-delete
usage: <edge_id>
x-mcp:
expose: true
x-teamyou-scope: knowledge:write
parameters:
- name: id
in: path
required: true
schema:
type: string
minLength: 1
description: Edge 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
'400':
$ref: '#/components/responses/ValidationError'
'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:
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'
Conflict:
description: 'Conflict — e.g. duplicate edge (same direction + label) or the scheduled-action slot limit reached (code: conflict).'
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'
AgentGateWithoutAIPreference:
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); 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); or 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).'
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'
schemas:
PatchEdgeRequest:
type: object
properties:
label:
type: string
minLength: 1
maxLength: 255
mirrorLabel:
type: string
minLength: 1
maxLength: 255
minProperties: 1
description: At least one of label or mirrorLabel must be provided.
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.'
ResolvedEdge:
type: object
properties:
id:
type: string
linkedTopicId:
type: string
linkedTopicName:
type: string
label:
type: string
direction:
type: string
enum:
- outgoing
- incoming
- bidirectional
createdAt:
type: string
format: date-time
required:
- id
- linkedTopicId
- linkedTopicName
- label
- direction
- createdAt
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
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
CreateEdgeRequest:
type: object
properties:
sourceTopicId:
type: string
minLength: 1
targetTopicId:
type: string
minLength: 1
label:
type: string
minLength: 1
maxLength: 255
mirrorLabel:
type: string
minLength: 1
maxLength: 255
required:
- sourceTopicId
- targetTopicId
- label
Edge:
type: object
properties:
id:
type: string
userId:
type: string
sourceId:
type: string
targetId:
type: string
label:
type: string
mirrorLabel:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
required:
- id
- userId
- sourceId
- targetId
- label
- mirrorLabel
- createdAt
- updatedAt
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key: `Authorization: Bearer ty_<key>`.'