tenpace-com Review Router setup API

Plan, authorize, apply, and verify a Review Router connection without exposing provider credentials to the calling agent.

Operations 10

POST /v1/review-router/setup-sessions Create an inert setup plan #
GET /v1/review-router/setup-sessions/{setupId} Get setup state and next human action #
DELETE /v1/review-router/setup-sessions/{setupId} Cancel an unapplied setup #
PUT /v1/review-router/setup-sessions/{setupId}/intent Edit the setup intent #
GET /v1/review-router/setup-sessions/{setupId}/plan Preview the exact intent version, plan, and next human action #
POST /v1/review-router/setup-sessions/{setupId}/claim Claim and lock the setup as a signed-in Tenpace user #
POST /v1/review-router/setup-sessions/{setupId}/apply Idempotently apply the locked route #
POST /v1/review-router/setup-sessions/{setupId}/test Send one real Slack setup delivery #
POST /v1/review-router/setup-sessions/{setupId}/connections/github Create the GitHub App installation URL for the claimed team #
POST /v1/review-router/setup-sessions/{setupId}/connections/slack Create a one-time Slack OAuth handoff for the claimed team #

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/tenpace-com:tenpace-com-review-router-setup-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

tenpace-com-review-router-setup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tenpace Com Review Router setup API
  version: 1.1.1
  description: 'Operations tagged Review Router setup across 3 of this provider''s published API definitions: api-tenpace-com-openapi.json, review-router-tenpace-com-openapi.json, tenpace-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.tenpace.com
  description: Tenpace production agent API
tags:
- name: Review Router setup
  description: Plan, authorize, apply, and verify a Review Router connection without exposing provider credentials to the calling agent.
paths:
  /v1/review-router/setup-sessions:
    post:
      tags:
      - Review Router setup
      operationId: createReviewRouterSetupSession
      summary: Create an inert setup plan
      description: GitHub Actions should provide an OIDC token whose repository claim matches intent.repository. Other clients may create anonymous, rate-limited sessions. Neither method authorizes provider changes.
      security:
      - {}
      - GitHubActionsOidc: []
      parameters:
      - name: Idempotency-Key
        in: header
        schema:
          type: string
          minLength: 8
          maxLength: 200
        description: Stable for one logical setup request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - intent
              properties:
                source:
                  $ref: '#/components/schemas/SetupSource'
                intent:
                  $ref: '#/components/schemas/SetupIntent'
      responses:
        '201':
          description: Setup created. agentToken is returned only by creation/replay. Direct API, CLI, and MCP setupUrl values carry a browser-only claim token in the URL fragment; GitHub Action URLs contain no claim secret and are bound to the OIDC actor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedSetupSession'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
  /v1/review-router/setup-sessions/{setupId}:
    get:
      summary: Get setup state and next human action
      security:
      - {}
      - SetupToken: []
      - TenpaceSession: []
      - SetupClaimToken: []
      parameters:
      - name: setupId
        in: path
        required: true
        schema:
          type: string
          pattern: ^rrs_
      responses:
        '200':
          description: Current setup state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupSession'
        '409':
          $ref: '#/components/responses/Conflict'
      operationId: getReviewRouterSetupSession
      tags:
      - Review Router setup
    delete:
      summary: Cancel an unapplied setup
      security:
      - SetupToken: []
      - TenpaceSession: []
      parameters:
      - name: setupId
        in: path
        required: true
        schema:
          type: string
          pattern: ^rrs_
      responses:
        '200':
          description: Current setup state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupSession'
        '409':
          $ref: '#/components/responses/Conflict'
      operationId: cancelReviewRouterSetupSession
      tags:
      - Review Router setup
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
  /v1/review-router/setup-sessions/{setupId}/intent:
    put:
      summary: Edit the setup intent
      security:
      - SetupToken: []
      - TenpaceSession: []
      parameters:
      - name: setupId
        in: path
        required: true
        schema:
          type: string
          pattern: ^rrs_
      responses:
        '200':
          description: Current setup state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupSession'
        '409':
          $ref: '#/components/responses/Conflict'
      description: The machine token can edit only before claim. The person who claimed the setup can edit afterward; saving creates and locks the new intent version atomically.
      operationId: updateReviewRouterSetupIntent
      tags:
      - Review Router setup
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetupIntent'
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
  /v1/review-router/setup-sessions/{setupId}/plan:
    get:
      summary: Preview the exact intent version, plan, and next human action
      security:
      - {}
      - SetupToken: []
      - TenpaceSession: []
      - SetupClaimToken: []
      parameters:
      - name: setupId
        in: path
        required: true
        schema:
          type: string
          pattern: ^rrs_
      responses:
        '200':
          description: Current setup state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupSession'
        '409':
          $ref: '#/components/responses/Conflict'
      operationId: previewReviewRouterSetupSession
      tags:
      - Review Router setup
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
  /v1/review-router/setup-sessions/{setupId}/claim:
    post:
      summary: Claim and lock the setup as a signed-in Tenpace user
      security:
      - TenpaceSession: []
        SetupClaimToken: []
      - TenpaceSession: []
      parameters:
      - name: setupId
        in: path
        required: false
        description: Required for non-GitHub-Action setup sessions.
        schema:
          type: string
          pattern: ^rrs_
      - name: X-Tenpace-Setup-Claim
        in: header
        required: false
        schema:
          type: string
          pattern: ^rr_claim_
      responses:
        '200':
          description: Current setup state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupSession'
        '409':
          $ref: '#/components/responses/Conflict'
      description: Claiming locks the exact current intent version. Direct API, CLI, and MCP sessions require X-Tenpace-Setup-Claim on first claim. GitHub Action sessions instead require the signed-in user's GitHub ID to match the OIDC workflow actor.
      operationId: claimReviewRouterSetupSession
      tags:
      - Review Router setup
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
  /v1/review-router/setup-sessions/{setupId}/apply:
    post:
      summary: Idempotently apply the locked route
      security:
      - SetupToken: []
      - TenpaceSession: []
      parameters:
      - name: setupId
        in: path
        required: true
        schema:
          type: string
          pattern: ^rrs_
      responses:
        '200':
          description: Current setup state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupSession'
        '409':
          $ref: '#/components/responses/Conflict'
      operationId: applyReviewRouterSetupSession
      tags:
      - Review Router setup
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
  /v1/review-router/setup-sessions/{setupId}/test:
    post:
      summary: Send one real Slack setup delivery
      security:
      - SetupToken: []
      - TenpaceSession: []
      parameters:
      - name: setupId
        in: path
        required: true
        schema:
          type: string
          pattern: ^rrs_
      responses:
        '200':
          description: Current setup state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupSession'
        '409':
          $ref: '#/components/responses/Conflict'
      operationId: testReviewRouterSetupSession
      tags:
      - Review Router setup
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
  /v1/review-router/setup-sessions/{setupId}/connections/github:
    post:
      summary: Create the GitHub App installation URL for the claimed team
      security:
      - TenpaceSession: []
      parameters:
      - name: setupId
        in: path
        required: true
        schema:
          type: string
          pattern: ^rrs_
      responses:
        '200':
          description: Short-lived GitHub installation destination
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionUrl'
      operationId: createReviewRouterGitHubConnectionUrl
      tags:
      - Review Router setup
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
  /v1/review-router/setup-sessions/{setupId}/connections/slack:
    post:
      summary: Create a one-time Slack OAuth handoff for the claimed team
      security:
      - TenpaceSession: []
      parameters:
      - name: setupId
        in: path
        required: true
        schema:
          type: string
          pattern: ^rrs_
      responses:
        '200':
          description: One-time Slack OAuth handoff URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionUrl'
      operationId: createReviewRouterSlackConnectionUrl
      tags:
      - Review Router setup
    servers:
    - url: https://api.tenpace.com
      description: Tenpace production agent API
components:
  schemas:
    SetupSource:
      type: string
      enum:
      - api
      - github_action
      - mcp
      - cli
      - review_health_audit
      default: api
    CreatedSetupSession:
      allOf:
      - $ref: '#/components/schemas/SetupSession'
      - type: object
        required:
        - agentToken
        properties:
          agentToken:
            type: string
            writeOnly: true
    ConnectionUrl:
      type: object
      additionalProperties: false
      required:
      - url
      properties:
        url:
          type: string
          format: uri
    Error:
      type: object
      required:
      - error
      - message
      properties:
        error:
          type: string
        message:
          type: string
        retryable:
          type: boolean
    SetupSession:
      type: object
      required:
      - id
      - status
      - intent
      - intentVersion
      - lockedIntentVersion
      - intentLocked
      - setupUrl
      - plan
      - connections
      - result
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - awaiting_human
          - awaiting_github
          - awaiting_slack
          - awaiting_slack_workspace
          - awaiting_slack_channel
          - ready_to_apply
          - applying
          - test_pending
          - complete
          - failed
          - cancelled
          - expired
        source:
          $ref: '#/components/schemas/SetupSource'
        intent:
          $ref: '#/components/schemas/SetupIntent'
        intentVersion:
          type: integer
          minimum: 1
        lockedIntentVersion:
          type:
          - integer
          - 'null'
        intentLocked:
          type: boolean
        approvedIntentVersion:
          type:
          - integer
          - 'null'
          deprecated: true
          description: Compatibility alias for lockedIntentVersion.
        approvalValid:
          type: boolean
          deprecated: true
          description: Compatibility alias for intentLocked.
        setupUrl:
          type: string
          format: uri
          description: Human handoff. GitHub Action URLs contain no secret and are actor-bound; other creation sources return a claim capability in the URL fragment only on creation/replay.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        plan:
          type: array
          items:
            type: object
        humanAction:
          type:
          - object
          - 'null'
        connections:
          type: object
        result:
          type: object
        error:
          type:
          - object
          - 'null'
    SetupIntent:
      type: object
      additionalProperties: false
      required:
      - repository
      - slackChannel
      properties:
        repository:
          type: string
          pattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$
        slackChannel:
          type: string
          description: 'Name with or without a leading #.'
        slackWorkspace:
          type: string
          description: Optional Tenpace workspace ID, Slack team ID, or exact workspace name.
        preset:
          type: string
          enum:
          - repo_watch
          - full_coverage
          - team_activity
          default: repo_watch
        reviewerMentions:
          type: string
          enum:
          - all
          - connected_only
          - none
          default: all
  responses:
    Conflict:
      description: The request conflicts with the current setup state.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many public setup requests.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    GitHubActionsOidc:
      type: http
      scheme: bearer
      bearerFormat: GitHub Actions OIDC JWT
    SetupToken:
      type: http
      scheme: bearer
      bearerFormat: rr_setup_ token
    TenpaceSession:
      type: http
      scheme: bearer
      bearerFormat: Tenpace session
    SetupClaimToken:
      type: apiKey
      in: header
      name: X-Tenpace-Setup-Claim
x-refined-from:
- api-tenpace-com-openapi.json
- review-router-tenpace-com-openapi.json
- tenpace-com-openapi.json