Marketo Tokens API

Token Controller

Operations 3

GET /rest/asset/v1/folder/{id}/tokens.json Get Tokens by Folder Id #
POST /rest/asset/v1/folder/{id}/tokens.json Create Token #
POST /rest/asset/v1/folder/{id}/tokens/delete.json Delete Token by Name #

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-tokens-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-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Marketo Engage Rest API
  version: '1.0'
  title: Marketo Engage Rest Tokens 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: Tokens
  description: Token Controller
paths:
  /rest/asset/v1/folder/{id}/tokens.json:
    get:
      tags:
      - Tokens
      summary: Get Tokens by Folder Id
      description: 'Retrieves the list of available My Tokens in the target folder. Required Permissions: Read-Only Assets, Read-Write Assets'
      operationId: getTokensByFolderIdUsingGET
      parameters:
      - name: id
        in: path
        description: id
        required: true
        schema:
          type: integer
          format: int32
      - name: folderType
        in: query
        description: Type of folder. 'Folder' or 'Program'
        required: false
        schema:
          type: string
          enum:
          - Folder
          - Program
          default: Folder
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfTokenResponse'
    post:
      tags:
      - Tokens
      summary: Create Token
      description: 'Create or update a token in the parent folder. Required Permissions: Read-Write Assets'
      operationId: addTokenTOFolderUsingPOST
      parameters:
      - name: id
        in: path
        description: Id of the folder to which the token will be associated with
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseOfTokenResponse'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateTokenRequest'
        description: createTokenRequest
        required: true
  /rest/asset/v1/folder/{id}/tokens/delete.json:
    post:
      tags:
      - Tokens
      summary: Delete Token by Name
      description: 'Deletes a token with the given name from the parent folder. Required Permissions: Read-Write Assets'
      operationId: deleteTokenByNameUsingPOST
      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'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/DeleteTokenRequest'
        description: deleteTokenRequest
        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
    TokenDTO:
      type: object
      properties:
        computedUrl:
          type: string
        name:
          type: string
        type:
          type: string
        value:
          type: string
    CreateTokenRequest:
      type: object
      required:
      - folderType
      - name
      - type
      - value
      properties:
        folderType:
          type: string
          description: Type of folder. 'Folder' or 'Program'
          enum:
          - Program
          - Folder
        name:
          type: string
          description: Name of the token. Max length is 50 characters)
        type:
          type: string
          description: Type of the token
          enum:
          - date
          - number
          - rich text
          - score
          - sfdc campaign
          - text
        value:
          type: string
          description: Value of the token
    DeleteTokenRequest:
      type: object
      properties:
        folderType:
          type: string
          enum:
          - Program
          - Folder
        name:
          type: string
        type:
          type: string
    ResponseOfTokenResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
        requestId:
          type: string
        result:
          type: array
          items:
            $ref: '#/components/schemas/TokenResponse'
        success:
          type: boolean
        warnings:
          type: array
          items:
            type: string
    IdResponse:
      type: object
      required:
      - id
      properties:
        id:
          type: integer
          format: int32
          description: Id of the asset
    TokenResponse:
      type: object
      required:
      - folder
      properties:
        folder:
          type: string
          example: '{"id":1001,"type":"Program"}'
          description: JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'
        tokens:
          type: array
          description: List of tokens in the folder
          items:
            $ref: '#/components/schemas/TokenDTO'
    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