treg.to Onboard API

The Onboard API from treg.to — 6 operation(s) for onboard.

GitHub OpenAPI

Operations 6

POST /onboard/demo Onboard Demo #
POST /onboard/skip Onboard Skip #
POST /onboard/reset Onboard Reset #
POST /onboard/team Onboard Team #
POST /onboard/seed-tool Onboard Seed Tool #
POST /onboard/accept-teammate Onboard Accept Teammate #

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/treg-to:treg-to-onboard-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

treg-to-onboard-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: treg Onboard API
  version: 0.0.1
tags:
- name: Onboard
paths:
  /onboard/demo:
    post:
      summary: Onboard Demo
      description: 'Seed a demo team owned by the caller: fake teammates (one per role) + a working `echo`

        tool + sample activity, so a brand-new user can feel the product immediately. Idempotent

        (reuses an existing demo team); marks the caller onboarded. Same seed for dashboard + CLI.'
      operationId: onboard_demo_onboard_demo_post
      parameters:
      - name: x-treg-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Token
      - name: x-treg-org
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Org
      - name: treg_session
        in: cookie
        required: false
        schema:
          type: string
          default: ''
          title: Treg Session
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/OnboardIn'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Onboard Demo Onboard Demo Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Onboard
  /onboard/skip:
    post:
      summary: Onboard Skip
      description: Dismiss onboarding without seeding — so it's never auto-offered again.
      operationId: onboard_skip_onboard_skip_post
      parameters:
      - name: x-treg-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Token
      - name: x-treg-org
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Org
      - name: treg_session
        in: cookie
        required: false
        schema:
          type: string
          default: ''
          title: Treg Session
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Onboard Skip Onboard Skip Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Onboard
  /onboard/reset:
    post:
      summary: Onboard Reset
      description: Remove the caller's demo team(s) + demo teammates from their real teams — a clean exit.
      operationId: onboard_reset_onboard_reset_post
      parameters:
      - name: x-treg-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Token
      - name: x-treg-org
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Org
      - name: treg_session
        in: cookie
        required: false
        schema:
          type: string
          default: ''
          title: Treg Session
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Onboard Reset Onboard Reset Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Onboard
  /onboard/team:
    post:
      summary: Onboard Team
      description: 'A new account''s first team, named for it, so the dashboard never asks for a name.

        Idempotent per user: `created` is false when the account already has its first run.'
      operationId: onboard_team_onboard_team_post
      parameters:
      - name: x-treg-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Token
      - name: x-treg-org
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Org
      - name: treg_session
        in: cookie
        required: false
        schema:
          type: string
          default: ''
          title: Treg Session
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/OnboardTeamIn'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Onboard Team Onboard Team Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Onboard
  /onboard/seed-tool:
    post:
      summary: Onboard Seed Tool
      description: 'Pre-seed the working `echo` tool into the caller''s active team so the no-key call in the

        dashboard onboarding just works (the user builds the team + invites by hand; the tool is on us).'
      operationId: onboard_seed_tool_onboard_seed_tool_post
      parameters:
      - name: x-treg-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Token
      - name: x-treg-org
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Org
      - name: treg_session
        in: cookie
        required: false
        schema:
          type: string
          default: ''
          title: Treg Session
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Onboard Seed Tool Onboard Seed Tool Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Onboard
  /onboard/accept-teammate:
    post:
      summary: Onboard Accept Teammate
      description: 'Auto-accept the fake teammate the user just invited during onboarding, so it lands in the

        roster instantly (they feel the invite, then see the loop close). Admin+ only, demo email only.'
      operationId: onboard_accept_teammate_onboard_accept_teammate_post
      parameters:
      - name: x-treg-token
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Token
      - name: x-treg-org
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Treg-Org
      - name: treg_session
        in: cookie
        required: false
        schema:
          type: string
          default: ''
          title: Treg Session
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeammateIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Onboard Accept Teammate Onboard Accept Teammate Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Onboard
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OnboardTeamIn:
      properties:
        ref:
          type: string
          title: Ref
          default: ''
      type: object
      title: OnboardTeamIn
    OnboardIn:
      properties:
        team_name:
          type: string
          title: Team Name
          default: Acme Design
      type: object
      title: OnboardIn
    TeammateIn:
      properties:
        email:
          type: string
          title: Email
      type: object
      required:
      - email
      title: TeammateIn
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError