Marketo Landing Pages API
The Landing Pages API from Marketo — 11 operation(s) for landing pages.
The Landing Pages API from Marketo — 11 operation(s) for landing pages.
openapi: 3.0.1
info:
title: Marketo Engage Rest Approve Landing Pages API
description: Marketo exposes a REST API which allows for remote execution of many of the systems capabilities. From creating programs to bulk lead import, there are many options which allow fine-grained control of a Marketo instance.
termsOfService: https://www.adobe.com/legal.html
contact:
name: Adobe Developer Relations
url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/home
email: developerfeedback@marketo.com
license:
name: API License Agreement
url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/api-license
version: '1.0'
servers:
- url: https://localhost:8080/
tags:
- name: Landing Pages
paths:
/rest/asset/v1/landingPage/byName.json:
get:
tags:
- Landing Pages
summary: Marketo Get Landing Page by Name
description: 'Returns the landing page record for the given name. Required Permissions: Read-Only Assets, Read-Write Assets'
operationId: getLandingPageByNameUsingGET
parameters:
- name: name
in: query
description: Name of the landing page
required: true
schema:
type: string
- name: status
in: query
description: Status filter for draft or approved versions
schema:
type: string
enum:
- approved
- draft
- name: maxReturn
in: query
description: Maximum number of channels to return. Max 200, default 20
schema:
type: integer
format: int32
- name: offset
in: query
description: Integer offset for paging
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageResponse'
/rest/asset/v1/landingPage/{id}.json:
get:
tags:
- Landing Pages
summary: Marketo Get Landing Page by Id
description: 'Returns the landing record for the given id. Required Permissions: Read-Only Assets, Read-Write Assets'
operationId: getLandingPageByIdUsingGET
parameters:
- name: id
in: path
description: id
required: true
schema:
type: integer
format: int32
- name: status
in: query
description: Status filter for draft or approved versions
schema:
type: string
enum:
- approved
- draft
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageResponse'
post:
tags:
- Landing Pages
summary: Marketo Update Landing Page Metadata
description: 'Updates the metadata for the targe landing page. Required Permissions: Read-Write Assets'
operationId: updateLandingPageUsingPOST
parameters:
- name: id
in: path
description: id
required: true
schema:
type: integer
format: int32
requestBody:
description: updateLandingPageRequest
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/UpdateLandingPageRequest'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageResponse'
x-codegen-request-body-name: updateLandingPageRequest
/rest/asset/v1/landingPage/{id}/approveDraft.json:
post:
tags:
- Landing Pages
summary: Marketo Approve Landing Page Draft
description: 'Approves the current draft of the landing page. Required Permissions: Approve Assets'
operationId: approveLandingPageUsingPOST
parameters:
- name: id
in: path
description: id
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfIdResponse'
/rest/asset/v1/landingPage/{id}/clone.json:
post:
tags:
- Landing Pages
summary: Marketo Clone Landing Page
description: 'Clones the target landing page. Required Permissions: Read-Write Assets'
operationId: cloneLandingPageUsingPOST
parameters:
- name: id
in: path
description: id
required: true
schema:
type: integer
format: int32
requestBody:
description: cloneLandingPageRequest
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CloneLandingPageRequest'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageResponse'
x-codegen-request-body-name: cloneLandingPageRequest
/rest/asset/v1/landingPage/{id}/delete.json:
post:
tags:
- Landing Pages
summary: Marketo Delete Landing Page
description: 'Deletes the target landing page. Required Permissions: Read-Write Assets'
operationId: deleteLandingPageByIdUsingPOST
parameters:
- name: id
in: path
description: id
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfIdResponse'
/rest/asset/v1/landingPage/{id}/discardDraft.json:
post:
tags:
- Landing Pages
summary: Marketo Discard Landing Page Draft
description: 'Discards the current draft of the landing page. Required Permissions: Read-Write Assets'
operationId: discardLandingPageByIdUsingPOST
parameters:
- name: id
in: path
description: id
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfIdResponse'
/rest/asset/v1/landingPage/{id}/unapprove.json:
post:
tags:
- Landing Pages
summary: Marketo Unapprove Landing Page
description: 'Unapproves the landing page, reverting it to a draft-only state. Required Permissions: Approve Assets'
operationId: unapproveLandingPageByIdUsingPOST
parameters:
- name: id
in: path
description: id
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageResponse'
/rest/asset/v1/landingPage/{id}/variable/{variableId}.json:
post:
tags:
- Landing Pages
summary: Marketo Update Landing Page Variable
description: 'Updates the value of the given variable. Required Permissions: Read-Write Assets'
operationId: updateLandingPageVariableUsingPOST
parameters:
- name: id
in: path
description: id
required: true
schema:
type: integer
format: int32
- name: variableId
in: path
description: variableId
required: true
schema:
type: string
- name: value
in: query
description: New value of the variable
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageVariableResponse'
/rest/asset/v1/landingPage/{id}/variables.json:
get:
tags:
- Landing Pages
summary: Marketo Get Landing Page Variables
operationId: getVariablesUsingGET
parameters:
- name: id
in: path
description: Id of the landing page
required: true
schema:
type: integer
format: int32
- name: status
in: query
description: Status filter for draft or approved versions
schema:
type: string
enum:
- approved
- draft
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageVariableResponse'
/rest/asset/v1/landingPages.json:
get:
tags:
- Landing Pages
summary: Marketo Get Landing Pages
description: 'Retrieves a list of accessible landing pages from the target instance. Required Permissions: Read-Only Assets, Read-Write Assets'
operationId: browseLandingPagesUsingGET
parameters:
- name: status
in: query
description: Status filter for draft or approved versions
schema:
type: string
enum:
- approved
- draft
- name: maxReturn
in: query
description: Maximum number of landing pages to return. Max 200, default 20
schema:
type: integer
format: int32
- name: offset
in: query
description: Integer offset for paging
schema:
type: integer
format: int32
- name: folder
in: query
description: JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageResponse'
post:
tags:
- Landing Pages
summary: Marketo Create Landing Page
description: 'Creates a new landing page. Required Permissions: Read-Write Assets'
operationId: createLandingPageUsingPOST
requestBody:
description: createLandingPageRequest
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateLandingPageRequest'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfLandingPageResponse'
x-codegen-request-body-name: createLandingPageRequest
/rest/asset/v1/landingPage/{id}/fullContent.json:
get:
tags:
- Landing Pages
summary: Marketo Get Landing Page Full Content
description: 'Returns the serialized HTML version of the landing page. Required Permissions: Read-Only Assets, Read-Write Assets. If leadId is passed in the request: Read-Only Lead, Read-Write Lead.'
operationId: getLandingPageFullContentUsingGET
parameters:
- name: id
in: path
description: Id of the landing page.
required: true
schema:
type: integer
format: int32
- name: leadId
in: query
description: The lead id to impersonate. Landing page is rendered as though it was viewed by this lead.
schema:
type: integer
format: int32
- name: segmentation
in: query
description: 'JSON array of of segmentations. Each segmentation must be a JSON object with members ''segmentationId'', and ''segmentId''.<br>Example: [{"segmentationId":1030,"segmentId":1103}]'
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseOfGetLandingPageFullContentResponse'
components:
schemas:
Folder:
required:
- id
- type
type: object
properties:
id:
type: integer
description: Id of the folder
format: int32
type:
type: string
description: Type of folder
enum:
- Folder
- Program
description: JSON representation of a folder
ResponseOfLandingPageResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/LandingPageResponse'
success:
type: boolean
warnings:
type: array
items:
type: string
ResponseOfLandingPageVariableResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/LandingPageVariableResponse'
success:
type: boolean
warnings:
type: array
items:
type: string
ResponseOfGetLandingPageFullContentResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/GetLandingPageFullContentResponse'
success:
type: boolean
warnings:
type: array
items:
type: string
UpdateLandingPageRequest:
type: object
properties:
customHeadHTML:
type: string
description: Any custom HTML to embed in the <head> tag of the page
description:
type: string
description: Description of the asset
facebookOgTags:
type: string
description: Any OpenGraph meta tags to apply to the page
keywords:
type: string
metaTagsDescription:
type: string
description: Meta description property of the page
mobileEnabled:
type: boolean
description: Whether the page has mobile viewing enabled. Free-form pages only. Default false
name:
type: string
description: Name of the landing page
robots:
type: string
description: Robots directives to apply to the pages meta tags
styleOverRide:
type: string
description: Additional CSS styles to append to the landing page <head>
title:
type: string
description: Title element of the landing page
urlPageName:
type: string
description: URL path of the page. Derived from the name field if unset
LandingPageResponse:
required:
- customHeadHTML
- facebookOgTags
- robots
- title
type: object
properties:
URL:
type: string
description: Url of the asset in the Marketo UI
computedUrl:
type: string
createdAt:
type: string
description: Datetime the asset was created
format: date-time
customHeadHTML:
type: string
description: Any custom HTML to embed in the <head> tag of the page
description:
type: string
description: Description of the asset
facebookOgTags:
type: string
description: Any OpenGraph meta tags to apply to the page
folder:
$ref: '#/components/schemas/Folder'
formPrefill:
type: boolean
description: Boolean to toggle whether forms embedded in the page will prefill. Default false
id:
type: integer
description: Id of the asset
format: int64
keywords:
type: string
mobileEnabled:
type: boolean
description: Whether the page has mobile viewing enabled. Free-form pages only. Default false
name:
type: string
description: Name of the asset
robots:
type: string
description: Robots directives to apply to the pages meta tags
status:
type: string
description: Status filter for draft or approved versions
template:
type: integer
description: Id of the template used
format: int32
title:
type: string
description: Title element of the landing page
updatedAt:
type: string
description: Datetime the asset was most recently updated
format: date-time
workspace:
type: string
description: Name of the workspace
GetLandingPageFullContentResponse:
required:
- content
- id
type: object
properties:
content:
type: string
description: HTML content of the landing page
id:
type: integer
description: Unique integer id of the landing page
format: int32
CreateLandingPageRequest:
required:
- folder
- name
- template
type: object
properties:
customHeadHTML:
type: string
description: Any custom HTML to embed in the <head> tag of the page
description:
type: string
description: Description of the asset
facebookOgTags:
type: string
description: Any OpenGraph meta tags to apply to the page
folder:
$ref: '#/components/schemas/Folder'
keywords:
type: string
mobileEnabled:
type: boolean
description: Whether the page has mobile viewing enabled. Free-form pages only. Default false
name:
type: string
description: Name of the landing page
prefillForm:
type: boolean
description: Boolean to toggle whether forms embedded in the page will prefill. Default false
robots:
type: string
description: Robots directives to apply to the pages meta tags
template:
type: integer
description: Id of the template used
format: int32
title:
type: string
description: Title element of the landing page
urlPageName:
type: string
description: URL path of the page. Derived from the name field if unset
workspace:
type: string
description: Name of the workspace
LandingPageVariableResponse:
required:
- id
type: object
properties:
id:
type: string
description: Integer id of the variable
type:
type: string
description: Type of the variable
value:
type: object
properties: {}
description: Value of the variable
CloneLandingPageRequest:
required:
- folder
- name
type: object
properties:
description:
type: string
description: Description of the asset
folder:
$ref: '#/components/schemas/Folder'
name:
type: string
description: Name of the landing page
template:
type: integer
description: Id of the template used
format: int32
ResponseOfIdResponse:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
requestId:
type: string
result:
type: array
items:
$ref: '#/components/schemas/IdResponse'
success:
type: boolean
warnings:
type: array
items:
type: string
IdResponse:
required:
- id
type: object
properties:
id:
type: integer
description: Id of the asset
format: int32
Error:
required:
- code
- message
type: object
properties:
code:
type: string
description: Error code of the error. See full list of error codes <a href="https://developers.marketo.com/rest-api/error-codes/">here</a>
message:
type: string
description: Message describing the cause of the error
x-original-swagger-version: '2.0'