Marketo · Capability

Marketo Engage Rest API — Redirect

Marketo Engage Rest API — Redirect. 5 operations. Lead operation: Marketo Get Landing Page Redirect Rule by Id. Self-contained Naftiko capability covering one Marketo business surface.

Run with Naftiko MarketoRedirect

What You Can Do

GET
Getlandingpageredirectrulebyidusingget — Marketo Get Landing Page Redirect Rule by Id
/v1/asset/v1/redirectrule/id-json
POST
Updatelandingpageredirectruleusingpost — Marketo Update Landing Page Redirect Rule
/v1/asset/v1/redirectrule/id-json
POST
Deletelandingpageredirectruleusingpost — Marketo Delete Landing Page Redirect Rule
/v1/asset/v1/redirectrule/{id}/delete-json
GET
Getlandingpageredirectrulesusingget — Marketo Get Landing Page Redirect Rules
/v1/asset/v1/redirectrules-json
POST
Createlandingpageredirectruleusingpost — Marketo Create Landing Page Redirect Rule
/v1/asset/v1/redirectrules-json

MCP Tools

marketo-get-landing-page-redirect

Marketo Get Landing Page Redirect Rule by Id

read-only idempotent
marketo-update-landing-page-redirect

Marketo Update Landing Page Redirect Rule

marketo-delete-landing-page-redirect

Marketo Delete Landing Page Redirect Rule

marketo-get-landing-page-redirect-2

Marketo Get Landing Page Redirect Rules

read-only idempotent
marketo-create-landing-page-redirect

Marketo Create Landing Page Redirect Rule

Capability Spec

engage-rest-redirect.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Marketo Engage Rest API — Redirect
  description: 'Marketo Engage Rest API — Redirect. 5 operations. Lead operation: Marketo Get Landing Page Redirect Rule by
    Id. Self-contained Naftiko capability covering one Marketo business surface.'
  tags:
  - Marketo
  - Redirect
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MARKETO_API_KEY: MARKETO_API_KEY
capability:
  consumes:
  - type: http
    namespace: engage-rest-redirect
    baseUri: https://localhost:8080
    description: Marketo Engage Rest API — Redirect business capability. Self-contained, no shared references.
    resources:
    - name: rest-asset-v1-redirectRule-id}.json
      path: /rest/asset/v1/redirectRule/{id}.json
      operations:
      - name: getlandingpageredirectrulebyidusingget
        method: GET
        description: Marketo Get Landing Page Redirect Rule by Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: Id of landing page redirect rule
          required: true
      - name: updatelandingpageredirectruleusingpost
        method: POST
        description: Marketo Update Landing Page Redirect Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: Id of landing page redirect rule
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: rest-asset-v1-redirectRule-id-delete.json
      path: /rest/asset/v1/redirectRule/{id}/delete.json
      operations:
      - name: deletelandingpageredirectruleusingpost
        method: POST
        description: Marketo Delete Landing Page Redirect Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: Id of landing page redirect rule
          required: true
    - name: rest-asset-v1-redirectRules.json
      path: /rest/asset/v1/redirectRules.json
      operations:
      - name: getlandingpageredirectrulesusingget
        method: GET
        description: Marketo Get Landing Page Redirect Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: maxReturn
          in: query
          type: integer
          description: Maximum number of landing page redirect rules to return. Max 200, default 20
        - name: offset
          in: query
          type: integer
          description: Integer offset for paging
        - name: redirectTolandingPageId
          in: query
          type: string
          description: Landing page id of landing page to redirect to
        - name: redirectToPath
          in: query
          type: string
          description: Path of landing page to redirect to
        - name: earliestUpdatedAt
          in: query
          type: string
          description: Exclude landing page redirect rules prior to this date. Must be valid ISO-8601 string. See <a href="http://developers.marketo.com/rest-api/lead-database/fields/
        - name: latestUpdatedAt
          in: query
          type: string
          description: Exclude landing page redirect rules after this date. Must be valid ISO-8601 string. See <a href="http://developers.marketo.com/rest-api/lead-database/fields/fie
      - name: createlandingpageredirectruleusingpost
        method: POST
        description: Marketo Create Landing Page Redirect Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: engage-rest-redirect-rest
    port: 8080
    description: REST adapter for Marketo Engage Rest API — Redirect. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/asset/v1/redirectrule/id-json
      name: rest-asset-v1-redirectrule-id-json
      description: REST surface for rest-asset-v1-redirectRule-id}.json.
      operations:
      - method: GET
        name: getlandingpageredirectrulebyidusingget
        description: Marketo Get Landing Page Redirect Rule by Id
        call: engage-rest-redirect.getlandingpageredirectrulebyidusingget
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updatelandingpageredirectruleusingpost
        description: Marketo Update Landing Page Redirect Rule
        call: engage-rest-redirect.updatelandingpageredirectruleusingpost
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/asset/v1/redirectrule/{id}/delete-json
      name: rest-asset-v1-redirectrule-id-delete-json
      description: REST surface for rest-asset-v1-redirectRule-id-delete.json.
      operations:
      - method: POST
        name: deletelandingpageredirectruleusingpost
        description: Marketo Delete Landing Page Redirect Rule
        call: engage-rest-redirect.deletelandingpageredirectruleusingpost
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/asset/v1/redirectrules-json
      name: rest-asset-v1-redirectrules-json
      description: REST surface for rest-asset-v1-redirectRules.json.
      operations:
      - method: GET
        name: getlandingpageredirectrulesusingget
        description: Marketo Get Landing Page Redirect Rules
        call: engage-rest-redirect.getlandingpageredirectrulesusingget
        with:
          maxReturn: rest.maxReturn
          offset: rest.offset
          redirectTolandingPageId: rest.redirectTolandingPageId
          redirectToPath: rest.redirectToPath
          earliestUpdatedAt: rest.earliestUpdatedAt
          latestUpdatedAt: rest.latestUpdatedAt
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createlandingpageredirectruleusingpost
        description: Marketo Create Landing Page Redirect Rule
        call: engage-rest-redirect.createlandingpageredirectruleusingpost
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: engage-rest-redirect-mcp
    port: 9090
    transport: http
    description: MCP adapter for Marketo Engage Rest API — Redirect. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: marketo-get-landing-page-redirect
      description: Marketo Get Landing Page Redirect Rule by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: engage-rest-redirect.getlandingpageredirectrulebyidusingget
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: marketo-update-landing-page-redirect
      description: Marketo Update Landing Page Redirect Rule
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: engage-rest-redirect.updatelandingpageredirectruleusingpost
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: marketo-delete-landing-page-redirect
      description: Marketo Delete Landing Page Redirect Rule
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: engage-rest-redirect.deletelandingpageredirectruleusingpost
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: marketo-get-landing-page-redirect-2
      description: Marketo Get Landing Page Redirect Rules
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: engage-rest-redirect.getlandingpageredirectrulesusingget
      with:
        maxReturn: tools.maxReturn
        offset: tools.offset
        redirectTolandingPageId: tools.redirectTolandingPageId
        redirectToPath: tools.redirectToPath
        earliestUpdatedAt: tools.earliestUpdatedAt
        latestUpdatedAt: tools.latestUpdatedAt
      outputParameters:
      - type: object
        mapping: $.
    - name: marketo-create-landing-page-redirect
      description: Marketo Create Landing Page Redirect Rule
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: engage-rest-redirect.createlandingpageredirectruleusingpost
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.