AdvisorPPC Recommendations API

The recommendations API from AdvisorPPC — 6 operation(s) for recommendations.

Operations 6

GET /api/recommendations List Recommendations #
POST /api/recommendations/{rec_id}/reject Reject Recommendation #
POST /api/recommendations/{rec_id}/approve Approve Recommendation #
POST /api/recommendations/{rec_id}/execute Execute Recommendation Endpoint #
POST /api/rec-types/{rec_type}/reset Reset Rec Type #
POST /api/playbooks/{key}/run Run Playbook #

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/advisorppc-com:advisorppc-com-recommendations-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

advisorppc-com-recommendations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AdvisorPPC Recommendations API
  version: 0.1.0
tags:
- name: Recommendations
paths:
  /api/recommendations:
    get:
      tags:
      - Recommendations
      summary: List Recommendations
      operationId: list_recommendations_api_recommendations_get
      security:
      - HTTPBearer: []
      parameters:
      - name: status
        in: query
        required: false
        schema:
          type: string
          default: staged
          title: Status
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendationListOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/recommendations/{rec_id}/reject:
    post:
      tags:
      - Recommendations
      summary: Reject Recommendation
      operationId: reject_recommendation_api_recommendations__rec_id__reject_post
      security:
      - HTTPBearer: []
      parameters:
      - name: rec_id
        in: path
        required: true
        schema:
          type: integer
          title: Rec Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RejectOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/recommendations/{rec_id}/approve:
    post:
      tags:
      - Recommendations
      summary: Approve Recommendation
      description: 'Approve one STAGED recommendation (engine T7). Approval alone still

        executes nothing — the executor re-checks every hard gate at execute

        time. An expired/rejected/executed/approved rec answers 409.'
      operationId: approve_recommendation_api_recommendations__rec_id__approve_post
      security:
      - HTTPBearer: []
      parameters:
      - name: rec_id
        in: path
        required: true
        schema:
          type: integer
          title: Rec Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApproveOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/recommendations/{rec_id}/execute:
    post:
      tags:
      - Recommendations
      summary: Execute Recommendation Endpoint
      description: 'Run the executor on one APPROVED recommendation. Human-triggered only

        in this phase — no scheduler path executes. All hard gates live in

        app/executor.py, fail-closed; refusals map to 403 (writes disabled),

        409 (state), 429 (daily cap), 422 (guardrail/allowlist/advice-only).'
      operationId: execute_recommendation_endpoint_api_recommendations__rec_id__execute_post
      security:
      - HTTPBearer: []
      parameters:
      - name: rec_id
        in: path
        required: true
        schema:
          type: integer
          title: Rec Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecuteOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/rec-types/{rec_type}/reset:
    post:
      tags:
      - Recommendations
      summary: Reset Rec Type
      description: 'Un-retire a rec type for this tenant (engine T9): zero the learning

        counters and restore ''standard'' gating so playbooks emit it again. Purely

        a review-friction control — it grants no writes and changes no approve

        gate.'
      operationId: reset_rec_type_api_rec_types__rec_type__reset_post
      security:
      - HTTPBearer: []
      parameters:
      - name: rec_type
        in: path
        required: true
        schema:
          type: string
          title: Rec Type
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecTypeResetOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/playbooks/{key}/run:
    post:
      tags:
      - Recommendations
      summary: Run Playbook
      operationId: run_playbook_api_playbooks__key__run_post
      security:
      - HTTPBearer: []
      parameters:
      - name: key
        in: path
        required: true
        schema:
          type: string
          title: Key
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlaybookRunOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExecuteOut:
      properties:
        id:
          type: integer
          title: Id
        status:
          type: string
          title: Status
        executed_action_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Executed Action Id
        result:
          additionalProperties: true
          type: object
          title: Result
      type: object
      required:
      - id
      - status
      - executed_action_id
      - result
      title: ExecuteOut
    RecTypeResetOut:
      properties:
        rec_type:
          type: string
          title: Rec Type
        gating:
          type: string
          title: Gating
        confidence:
          type: number
          title: Confidence
      type: object
      required:
      - rec_type
      - gating
      - confidence
      title: RecTypeResetOut
    RecommendationOut:
      properties:
        id:
          type: integer
          title: Id
        instance_id:
          type: integer
          title: Instance Id
        playbook_key:
          type: string
          title: Playbook Key
        rec_type:
          type: string
          title: Rec Type
        provider:
          anyOf:
          - type: string
          - type: 'null'
          title: Provider
        campaign_external_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Campaign External Id
        account_ref:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Ref
        account_label:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Label
        title:
          type: string
          title: Title
        body_json:
          additionalProperties: true
          type: object
          title: Body Json
        predicted_effect_json:
          additionalProperties: true
          type: object
          title: Predicted Effect Json
        confidence:
          type: number
          title: Confidence
        guardrail_json:
          additionalProperties: true
          type: object
          title: Guardrail Json
        rollback_json:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Rollback Json
        scenario:
          anyOf:
          - type: string
          - type: 'null'
          title: Scenario
        status:
          type: string
          title: Status
        source:
          type: string
          title: Source
          default: engine
        expires_at:
          type: string
          format: date-time
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - instance_id
      - playbook_key
      - rec_type
      - provider
      - campaign_external_id
      - account_ref
      - account_label
      - title
      - body_json
      - predicted_effect_json
      - confidence
      - guardrail_json
      - rollback_json
      - scenario
      - status
      - expires_at
      - created_at
      title: RecommendationOut
    RecommendationListOut:
      properties:
        recommendations:
          items:
            $ref: '#/components/schemas/RecommendationOut'
          type: array
          title: Recommendations
        writes_enabled:
          type: boolean
          title: Writes Enabled
          default: false
      type: object
      required:
      - recommendations
      title: RecommendationListOut
    ApproveOut:
      properties:
        id:
          type: integer
          title: Id
        status:
          type: string
          title: Status
        approved_at:
          type: string
          format: date-time
          title: Approved At
      type: object
      required:
      - id
      - status
      - approved_at
      title: ApproveOut
    PlaybookRunOut:
      properties:
        playbook:
          type: string
          title: Playbook
        staged:
          type: integer
          title: Staged
      type: object
      required:
      - playbook
      - staged
      title: PlaybookRunOut
    RejectOut:
      properties:
        id:
          type: integer
          title: Id
        status:
          type: string
          title: Status
      type: object
      required:
      - id
      - status
      title: RejectOut
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer