Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

contentstack Assets API

Assets are media files such as images, videos, and documents stored in the Contentstack asset library.

contentstack Assets API is one of 45 APIs that contentstack publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Assets. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 3 operations across 2 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version v2.

Requests are made against 3 base URLs: https://api.contentstack.io, https://eu-api.contentstack.com, https://au-api.contentstack.com.

3 operations 2 paths 5 schemas 2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v2
Base URL
https://cdn.contentstack.io
Authentication
HTTP Bearer, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

contentstack Assets API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). An API key is passed in the header as authtoken (authtokenAuth). By default, every request must be authenticated.

  • bearerAuth — OAuth 2.0 Bearer token (M2M) with analytics access.
  • authtokenAuth — Contentstack user authtoken. Only organization Owners and Admins can access analytics.

Paths & Operations 3

Across 2 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Assets 3

Assets are media files such as images, videos, and documents stored in the Contentstack asset library.

GET
/assets
Get all assets
getAllAssets 5 params → 200401
POST
/assets
Upload an asset
uploadAsset 2 params body → 201400401
GET
/assets/{asset_uid}
Get a single asset
getSingleAsset 3 params → 200401404

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are Asset (8 properties), Asset_2 (7 properties), Error (3 properties), Error_2 (3 properties). Each schema is shown below with its type and property counts.

Asset_2
object
A media asset stored in the stack.
7 properties
Error_2
object
Standard error response.
3 properties
AssetList
object
A paginated list of assets in the stack.
2 properties
Asset
object
A media asset stored in the Contentstack asset library.
8 properties
Error
object
Standard error response returned by the API.
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

contentstack-assets-api-openapi.yml Raw ↑

Other APIs contentstack publishes across the network.

Contentstack GraphQL Content Delivery API
Contentstack Image Delivery API
Contentstack Analytics API
Contentstack Knowledge Vault API
Contentstack Generative AI API
contentstack Accounts API
contentstack Attributes API
contentstack Audiences API
contentstack Audit Logs API
contentstack Automations API
contentstack Brand Kits API
contentstack Cache Analytics API