Netlify Asset API

The Asset API from Netlify — 2 operation(s) for asset.

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /sites/{site_id}/assets List a site's uploaded assets · List site assets #
Ask an LLM
“What assets have been uploaded to my site?”
“Can I see every stored asset for a site?”
Tell an agent
List assets for site {site}.
Show all uploaded assets on site {site}.
POST /sites/{site_id}/assets Start an asset upload for a site · Create site asset #
Ask an LLM
“How do I upload a file as a site asset?”
“Can I make an uploaded asset public or private?”
Tell an agent
Create asset {name} of {size} bytes and type {content_type} on site {site}.
Upload {name} ({content_type}, {size} bytes) to site {site} with visibility {visibility}.
GET /sites/{site_id}/assets/{asset_id} Get a site asset's details · Get site asset info #
Ask an LLM
“Can I check the details of one uploaded asset?”
“What state is my asset upload in?”
Tell an agent
Get info for asset {asset} on site {site}.
Show the upload state of asset {asset} on site {site}.
PUT /sites/{site_id}/assets/{asset_id} Update a site asset's state · Update site asset #
Ask an LLM
“How do I mark an asset upload as finished?”
“Can I change the state of an uploaded asset?”
Tell an agent
Set asset {asset} on site {site} to state {state}.
Mark asset {asset} of site {site} as {state}.
DELETE /sites/{site_id}/assets/{asset_id} Delete a site asset · Delete site asset #
Ask an LLM
“How do I delete an uploaded asset?”
“Can I remove one file from my site's assets?”
Tell an agent destructive · confirm first
Delete asset {asset} from site {site}.
Remove uploaded asset {asset} on site {site}.

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/netlify:netlify-asset-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

netlify-asset-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.57.0
  title: Netlify's API documentation Asset API
  description: Netlify is a hosting service for the programmable web.
  termsOfService: https://www.netlify.com/legal/terms-of-use/
  x-logo:
    url: netlify-logo.png
    href: https://www.netlify.com/docs/
    altText: Netlify
servers:
- url: https://api.netlify.com/api/v1
security:
- netlifyAuth: []
tags:
- name: Asset
  x-displayName: Asset
paths:
  /sites/{site_id}/assets:
    parameters:
    - name: site_id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: listSiteAssets
      tags:
      - Asset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    site_id:
                      type: string
                    creator_id:
                      type: string
                    name:
                      type: string
                    state:
                      type: string
                    content_type:
                      type: string
                    url:
                      type: string
                    key:
                      type: string
                    visibility:
                      type: string
                    size:
                      type: integer
                      format: int64
                    created_at:
                      type: string
                      format: dateTime
                    updated_at:
                      type: string
                      format: dateTime
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: List site assets
      x-summary-source: derived
    post:
      operationId: createSiteAsset
      tags:
      - Asset
      parameters:
      - name: name
        in: query
        required: true
        schema:
          type: string
      - name: size
        in: query
        required: true
        schema:
          type: integer
          format: int64
      - name: content_type
        in: query
        required: true
        schema:
          type: string
      - name: visibility
        in: query
        schema:
          type: string
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  form:
                    type: object
                    properties:
                      url:
                        type: string
                      fields:
                        type: object
                        additionalProperties:
                          type: string
                  asset:
                    type: object
                    properties:
                      id:
                        type: string
                      site_id:
                        type: string
                      creator_id:
                        type: string
                      name:
                        type: string
                      state:
                        type: string
                      content_type:
                        type: string
                      url:
                        type: string
                      key:
                        type: string
                      visibility:
                        type: string
                      size:
                        type: integer
                        format: int64
                      created_at:
                        type: string
                        format: dateTime
                      updated_at:
                        type: string
                        format: dateTime
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Create site asset
      x-summary-source: derived
  /sites/{site_id}/assets/{asset_id}:
    parameters:
    - name: site_id
      in: path
      required: true
      schema:
        type: string
    - name: asset_id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: getSiteAssetInfo
      tags:
      - Asset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  site_id:
                    type: string
                  creator_id:
                    type: string
                  name:
                    type: string
                  state:
                    type: string
                  content_type:
                    type: string
                  url:
                    type: string
                  key:
                    type: string
                  visibility:
                    type: string
                  size:
                    type: integer
                    format: int64
                  created_at:
                    type: string
                    format: dateTime
                  updated_at:
                    type: string
                    format: dateTime
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Get site asset info
      x-summary-source: derived
    put:
      operationId: updateSiteAsset
      tags:
      - Asset
      parameters:
      - name: state
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  site_id:
                    type: string
                  creator_id:
                    type: string
                  name:
                    type: string
                  state:
                    type: string
                  content_type:
                    type: string
                  url:
                    type: string
                  key:
                    type: string
                  visibility:
                    type: string
                  size:
                    type: integer
                    format: int64
                  created_at:
                    type: string
                    format: dateTime
                  updated_at:
                    type: string
                    format: dateTime
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Update site asset
      x-summary-source: derived
    delete:
      operationId: deleteSiteAsset
      tags:
      - Asset
      responses:
        '204':
          description: Deleted
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      summary: Delete site asset
      x-summary-source: derived
components:
  securitySchemes:
    netlifyAuth:
      type: oauth2
      flows:
        implicit:
          scopes: {}
          authorizationUrl: https://app.netlify.com/authorize
externalDocs:
  url: https://www.netlify.com/docs/api/
  description: Online documentation
x-tagGroups:
- name: OAuth
  tags:
  - ticket
  - accessToken
- name: User accounts
  tags:
  - user
  - accountMembership
  - member
  - accountType
  - paymentMethod
  - auditLog
- name: Site
  tags:
  - site
  - environmentVariables
  - file
  - metadata
  - purge
  - snippet
- name: Domain names
  tags:
  - dnsZone
  - sniCertificate
- name: Deploys
  tags:
  - deploy
  - deployedBranch
  - deployKey
- name: Builds
  tags:
  - build
  - buildLogMsg
- name: Dev servers
  tags:
  - devServer
- name: Webhooks and notifications
  tags:
  - hook
  - hookType
  - buildHook
  - devServerHook
- name: Services
  tags:
  - service
  - serviceInstance
- name: Functions
  tags:
  - function
- name: Database
  tags:
  - database
- name: Forms
  tags:
  - form
  - submission
- name: Split tests
  tags:
  - splitTest
- name: Large media
  tags:
  - asset
  - assetPublicSignature