TeamYou Instructions API

The Instructions API from TeamYou — 2 operation(s) for instructions.

GitHub OpenAPI

Operations 3

GET /instructions Pull outstanding instructions #
POST /instructions Queue an instruction for another agent #
PATCH /instructions/{id} Acknowledge an instruction #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/teamyou-com:teamyou-com-instructions-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

teamyou-com-instructions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TeamYou External Instructions 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: Instructions
paths:
  /instructions:
    get:
      tags:
      - Instructions
      operationId: instructions-list
      summary: Pull outstanding instructions
      description: 'DEPRECATED — use `GET /checkin`, which returns the same items plus what to do about them. Returns the calling agent''s non-acknowledged instructions, newest first, and atomically flips any pending items to delivered. Idempotent — re-pulling re-returns delivered-but-unacknowledged items. Serves durable text items only: computed check-in kinds and expired items have no representation in this shape.'
      deprecated: true
      x-feature: instructions
      x-teamyou-scope: read
      parameters:
      - name: status
        in: query
        schema:
          type: string
          enum:
          - pending
          - delivered
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          default: 50
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: Outstanding instructions, newest first.
          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:
                  instructions:
                    type: array
                    items:
                      $ref: '#/components/schemas/AgentInstruction'
                required:
                - instructions
        '400':
          $ref: '#/components/responses/ValidationError'
        '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:
      - Instructions
      operationId: instructions-send
      summary: Queue an instruction for another agent
      description: DEPRECATED — use `POST /checkin/send`, which also accepts an agent slug and a nested anchor. Addresses another API key on the same account. 404 when the target key is not found or not owned.
      deprecated: true
      x-feature: instructions
      x-teamyou-scope: agent:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentInstructionCreateRequest'
      responses:
        '201':
          description: Created instruction.
          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:
                  instruction:
                    $ref: '#/components/schemas/AgentInstruction'
                required:
                - instruction
        '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'
  /instructions/{id}:
    patch:
      tags:
      - Instructions
      operationId: instructions-ack
      summary: Acknowledge an instruction
      description: DEPRECATED — use `POST /checkin/ack`, which also records an outcome and an optional reply. Forward-only and idempotent; this path records the outcome `done`. 404 when not found or not owned.
      deprecated: true
      x-feature: instructions
      x-teamyou-scope: read
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
        description: Instruction id
      responses:
        '200':
          description: Acknowledged instruction.
          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:
                  instruction:
                    $ref: '#/components/schemas/AgentInstruction'
                required:
                - instruction
        '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'
    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'
    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:
    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
    AgentInstructionCreateRequest:
      type: object
      properties:
        targetApiKeyId:
          type: string
          minLength: 1
          description: The API key (agent) on this account to address. 404 if not found/owned.
        body:
          type: string
          minLength: 1
          maxLength: 8000
        anchorType:
          type: string
          enum:
          - topic
          - task
          - todo
          - drive
          x-deprecated-enum:
          - todo
          description: Optional; must be paired with anchorId.
        anchorId:
          type: string
          minLength: 1
          description: Source id for the anchor; must be paired with anchorType. A task anchor may be given by its key (e.g. `TASK-12`).
      required:
      - targetApiKeyId
      - body
      dependentRequired:
        anchorType:
        - anchorId
        anchorId:
        - anchorType
    AgentInstruction:
      type: object
      properties:
        id:
          type: string
        targetApiKeyId:
          type: string
        createdByApiKeyId:
          type:
          - string
          - 'null'
        anchorType:
          type:
          - string
          - 'null'
          enum:
          - topic
          - todo
          - drive
          - null
        anchorId:
          type:
          - string
          - 'null'
        body:
          type: string
        status:
          type: string
          enum:
          - pending
          - delivered
          - acknowledged
        createdAt:
          type: string
          format: date-time
        deliveredAt:
          type:
          - string
          - 'null'
          format: date-time
        acknowledgedAt:
          type:
          - string
          - 'null'
          format: date-time
        archivedAt:
          type:
          - string
          - 'null'
          format: date-time
      required:
      - id
      - targetApiKeyId
      - createdByApiKeyId
      - anchorType
      - anchorId
      - body
      - status
      - createdAt
      - deliveredAt
      - acknowledgedAt
      - archivedAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key: `Authorization: Bearer ty_<key>`.'