cQnce Routing Rules API

Routing rule management for a project (requires tenant JWT)

GitHub OpenAPI

Operations 6

GET /v1/projects/{id}/routing-rules List routing rules #
POST /v1/projects/{id}/routing-rules Create routing rule #
PUT /v1/projects/{id}/routing-rules/reorder Bulk reorder routing rules #
PUT /v1/projects/{id}/routing-rules/{ruleId} Update routing rule #
DELETE /v1/projects/{id}/routing-rules/{ruleId} Delete routing rule #
GET /v1/projects/{id}/incoming-routes List incoming routes #

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/cqnce-app:cqnce-app-routing-rules-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

cqnce-app-routing-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: cQnce Routing Rules API
  description: 'Authorization-request routing and agent-management API for the cQnce platform.


    ## Authentication


    | Scheme | Header | Used by |

    |---|---|---|

    | Bearer JWT (tenant) | `Authorization: Bearer ` | Dashboard / admin routes |

    | Bearer JWT (agent) | `Authorization: Bearer ` | Agent mobile app routes |

    | API Key | `x-api-key: ` | Server-to-server request submission |'
  version: 1.0.0
  contact:
    name: cQnce Support
servers:
- url: https://api.cqnce.app
  description: Production
tags:
- name: Routing Rules
  description: Routing rule management for a project (requires tenant JWT)
paths:
  /v1/projects/{id}/routing-rules:
    get:
      tags:
      - Routing Rules
      summary: List routing rules
      operationId: listRoutingRules
      security:
      - tenantJWT: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Project ID
      responses:
        '200':
          description: List of routing rules ordered by priority descending
          content:
            application/json:
              schema:
                type: object
                properties:
                  routingRules:
                    type: array
                    items:
                      $ref: '#/components/schemas/RoutingRule'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      tags:
      - Routing Rules
      summary: Create routing rule
      operationId: createRoutingRule
      security:
      - tenantJWT: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Project ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - mode
              - agentIds
              properties:
                name:
                  type: string
                  example: High-value transfers
                mode:
                  type: string
                  enum:
                  - PARALLEL
                  - SERIAL
                  - MAJORITY
                  - CHAIN
                agentIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                teamIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                timeoutMs:
                  type:
                  - integer
                  - 'null'
                  minimum: 1000
                  example: 30000
                quorum:
                  type: integer
                  minimum: 1
                  maximum: 100
                  description: Minimum approvals required (MAJORITY mode)
                tagFilter:
                  type: string
                priority:
                  type: integer
                  minimum: 0
                  default: 0
                filterExpression:
                  description: JSONLogic-compatible expression to match incoming requests
                requireStrongAuth:
                  type: boolean
                  default: false
                serialRoundRobin:
                  type: boolean
                  default: false
                  description: 'SERIAL mode only: rotate the first assignee at each new request to distribute load.'
                rejectReasonRequired:
                  type: boolean
                  default: false
                rejectReasonOptions:
                  type: array
                  items:
                    type: string
                defaultRejectReason:
                  type:
                  - string
                  - 'null'
                  description: Must be one of rejectReasonOptions when provided.
                allowLateResponse:
                  type: boolean
                  default: false
                  description: When true, agent responses submitted after the request has expired are accepted and resolve the request.
      responses:
        '201':
          description: Routing rule created
          content:
            application/json:
              schema:
                type: object
                properties:
                  routingRule:
                    $ref: '#/components/schemas/RoutingRule'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{id}/routing-rules/reorder:
    put:
      tags:
      - Routing Rules
      summary: Bulk reorder routing rules
      operationId: reorderRoutingRules
      security:
      - tenantJWT: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Project ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - rules
              properties:
                rules:
                  type: array
                  items:
                    type: object
                    required:
                    - id
                    - priority
                    properties:
                      id:
                        type: string
                        format: uuid
                      priority:
                        type: integer
                        minimum: 0
      responses:
        '200':
          description: Rules reordered
          content:
            application/json:
              schema:
                type: object
                properties:
                  routingRules:
                    type: array
                    items:
                      $ref: '#/components/schemas/RoutingRule'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{id}/routing-rules/{ruleId}:
    put:
      tags:
      - Routing Rules
      summary: Update routing rule
      operationId: updateRoutingRule
      security:
      - tenantJWT: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Project ID
      - name: ruleId
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Routing rule ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type:
                  - string
                  - 'null'
                mode:
                  type: string
                  enum:
                  - PARALLEL
                  - SERIAL
                  - MAJORITY
                  - CHAIN
                agentIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                teamIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                timeoutMs:
                  type:
                  - integer
                  - 'null'
                  minimum: 1000
                quorum:
                  type:
                  - integer
                  - 'null'
                  minimum: 1
                  maximum: 100
                filterExpression: {}
                requireStrongAuth:
                  type: boolean
                serialRoundRobin:
                  type: boolean
                  description: 'SERIAL mode only: rotate the first assignee at each new request to distribute load.'
                rejectReasonRequired:
                  type: boolean
                rejectReasonOptions:
                  type: array
                  items:
                    type: string
                defaultRejectReason:
                  type:
                  - string
                  - 'null'
                  description: Must be one of rejectReasonOptions when provided.
                allowLateResponse:
                  type: boolean
                  description: When true, agent responses submitted after the request has expired are accepted and resolve the request.
      responses:
        '200':
          description: Routing rule updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  routingRule:
                    $ref: '#/components/schemas/RoutingRule'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project or rule not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      tags:
      - Routing Rules
      summary: Delete routing rule
      operationId: deleteRoutingRule
      security:
      - tenantJWT: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Project ID
      - name: ruleId
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Routing rule ID
      responses:
        '200':
          description: Rule deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project or rule not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{id}/incoming-routes:
    get:
      tags:
      - Routing Rules
      summary: List incoming routes
      description: Returns routing rules from other projects that route to this project.
      operationId: listIncomingRoutes
      security:
      - tenantJWT: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Project ID
      responses:
        '200':
          description: Incoming routes
          content:
            application/json:
              schema:
                type: object
                properties:
                  incomingRoutes:
                    type: array
                    items:
                      type: object
                      properties:
                        ruleId:
                          type: string
                          format: uuid
                        ruleName:
                          type:
                          - string
                          - 'null'
                        projectId:
                          type: string
                          format: uuid
                        projectName:
                          type: string
                        projectIconUrl:
                          type:
                          - string
                          - 'null'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: Validation failed
        details:
          type: array
          items:
            type: object
    RoutingRule:
      type: object
      properties:
        id:
          type: string
          format: uuid
        projectId:
          type: string
          format: uuid
        name:
          type:
          - string
          - 'null'
        mode:
          type: string
          enum:
          - PARALLEL
          - SERIAL
          - MAJORITY
          - CHAIN
        agentIds:
          type: array
          items:
            type: string
            format: uuid
        teamIds:
          type: array
          items:
            type: string
            format: uuid
        timeoutMs:
          type:
          - integer
          - 'null'
        quorum:
          type:
          - integer
          - 'null'
        tagFilter:
          type:
          - string
          - 'null'
        priority:
          type: integer
        filterExpression:
          description: JSONLogic-compatible filter expression
        requireStrongAuth:
          type: boolean
        serialRoundRobin:
          type: boolean
          description: 'SERIAL mode only: rotate the first assignee at each new request to distribute load across agents.'
        rejectReasonRequired:
          type: boolean
          description: When true, agents must provide a rejection reason when submitting REJECTED decisions.
        rejectReasonOptions:
          type: array
          items:
            type: string
          description: Reusable predefined rejection reasons available to agents for this rule.
        defaultRejectReason:
          type:
          - string
          - 'null'
          description: Default rejection reason preselected for agents; must be one of rejectReasonOptions.
        allowLateResponse:
          type: boolean
          description: When true, agent responses submitted after the request has expired are accepted and resolve the request.
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    tenantJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued on tenant login (`POST /v1/auth/login`)
    agentJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued on agent login/register (`POST /v1/auth/agent/login` or `/register`)
    projectApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Per-project API key used for server-to-server request submission