Skip to main content
GET
/
api
/
assets
Retrieve list of assets.
curl --request GET \
  --url https://{tenant}/api/assets \
  --header 'Authorization: Bearer <token>'
[
  {
    "_id": "363634636164353135373135656333663739386262636433",
    "data": {
      "info": {
        "title": "Our Sample OAS",
        "version": "1.0.0"
      },
      "openapi": "3.0.3",
      "paths": {
        "/anything": {
          "post": {
            "operationId": "anythingpost",
            "responses": {
              "200": {
                "description": "Post created"
              }
            }
          }
        }
      },
      "x-tyk-api-gateway": {
        "middleware": {
          "global": {
            "cache": {
              "cacheAllSafeRequests": true,
              "enabled": true,
              "timeout": 5
            }
          },
          "operations": {
            "anythingpost": {
              "requestSizeLimit": {
                "enabled": true,
                "value": 100
              }
            }
          }
        }
      }
    },
    "description": "My first template",
    "id": "my-unique-template-id",
    "kind": "oas-template",
    "last_updated": "2024-05-21T17:18:57.294797+03:00",
    "name": "my-template",
    "org_id": "5e9d9544a1dcd60001d0ed20"
  }
]

Authorizations

Authorization
string
header
required

Query Parameters

kind
enum<string>
default:oas-template
Available options:
oas-template

Response

_id
string
Example:
data
object
Example:
description
string
id
string
Example:
kind
enum<string>
default:oas-template
Available options:
oas-template
Example:
last_updated
string<date-time>
Example:
name
string
org_id
string