Marketo Files API

File Controller

Operations 4

GET /rest/asset/v1/file/byName.json Get File by Name #
GET /rest/asset/v1/file/{id}.json Get File by Id #
GET /rest/asset/v1/files.json Get Files #
POST /rest/asset/v1/files.json Create File #

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/marketo-files-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

marketo-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Marketo Engage Rest API
  version: '1.0'
  title: Marketo Engage Rest Files API
  termsOfService: https://www.adobe.com/legal.html
  contact:
    name: Adobe Developer Relations
    url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/home
    email: ''
  license:
    name: API License Agreement
    url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/api-license
servers:
- url: https://localhost:8080/
tags:
- name: Files
  description: File Controller
paths:
  /rest/asset/v1/file/byName.json:
    get:
      tags:
      - Files
      summary: Get File by Name
      description: 'Returns files records for the given name. Required Permissions: Read-Only Assets, Read-Write Assets'
      operationId: getFileByNameUsingGET
      parameters:
      - name: name
        in: query
        description: Name of the file
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfFileResponse'
  /rest/asset/v1/file/{id}.json:
    get:
      tags:
      - Files
      summary: Get File by Id
      description: 'Returns the file record for the given id. Required Permissions: Read-Only Assets, Read-Write Assets'
      operationId: getFileByIdUsingGET
      parameters:
      - name: id
        in: path
        description: Id for file in database
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfFileResponse'
  /rest/asset/v1/files.json:
    get:
      tags:
      - Files
      summary: Get Files
      description: 'Returns the files from the given folder. Required Permissions: Read-Only Assets, Read-Write Assets'
      operationId: getFilesUsingGET
      parameters:
      - name: folder
        in: query
        description: JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'
        required: false
        schema:
          type: string
      - name: offset
        in: query
        description: Integer offset for paging. Default 0
        required: false
        schema:
          type: integer
          format: int32
      - name: maxReturn
        in: query
        description: Maximum number of files to return. Max 200, default 20
        required: false
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfFileResponse'
    post:
      tags:
      - Files
      summary: Create File
      description: 'Creates a new file from the included payload. Required Permissions: Read-Write Assets'
      operationId: createFileUsingPOST
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfFileResponse'
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateFileRequest'
        description: createFileRequest
        required: true
components:
  schemas:
    Error:
      type: object
      required:
      - code
      - message
      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
    FileResponse:
      type: object
      required:
      - createdAt
      - folder
      - id
      - mimeType
      - name
      - size
      - updatedAt
      - url
      properties:
        createdAt:
          type: string
          format: date-time
          description: Datetime when the file was created
        description:
          type: string
          description: Description of the file
        folder:
          description: JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'
          $ref: '#/components/schemas/FileFolder'
        id:
          type: integer
          format: int32
          description: Id of the file
        mimeType:
          type: string
          description: MIME type of the file
        name:
          type: string
          description: Name of the file
        size:
          type: integer
          format: int32
          description: Size of the file in bytes
        updatedAt:
          type: string
          format: date-time
          description: Datetime when the file was most recently updated
        url:
          type: string
          description: Publically accessible URL of the file
    ResponseOfFileResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
        requestId:
          type: string
        result:
          type: array
          items:
            $ref: '#/components/schemas/FileResponse'
        success:
          type: boolean
        warnings:
          type: array
          items:
            type: string
    CreateFileRequest:
      type: object
      required:
      - file
      - folder
      - name
      properties:
        description:
          type: string
          description: Description of the asset
        file:
          type: string
          description: Multipart file. Content of the file.
        folder:
          description: JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'
          $ref: '#/components/schemas/Folder'
        insertOnly:
          type: boolean
          description: Whether the calls hould fail if there is already an existing file with the same name
        name:
          type: string
          description: Name of the File
    Folder:
      type: object
      required:
      - id
      - type
      properties:
        id:
          type: integer
          format: int32
          description: Id of the folder
        type:
          type: string
          description: Type of folder
          enum:
          - Folder
          - Program
      description: JSON representation of a folder
    FileFolder:
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          type: string
        type:
          type: string