Netlify Snippet API

The Snippet API from Netlify — 2 operation(s) for snippet.

Operations 5

GET /sites/{site_id}/snippets #
POST /sites/{site_id}/snippets #
GET /sites/{site_id}/snippets/{snippet_id} #
PUT /sites/{site_id}/snippets/{snippet_id} #
DELETE /sites/{site_id}/snippets/{snippet_id} #

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-snippet-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-snippet-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Netlify Snippet API
  termsOfService: https://www.netlify.com/legal/terms-of-use/
  x-logo:
    url: netlify-logo.png
    href: https://www.netlify.com/docs/
    altText: Netlify
  version: '1.0'
  description: 'Operations tagged snippet across 2 of this provider''s published API definitions: netlify-openapi-2.57.0-swagger.json, netlify-snippet-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.netlify.com/api/v1
security:
- netlifyAuth: []
tags:
- name: snippet
  x-displayName: Snippet
paths:
  /sites/{site_id}/snippets:
    parameters:
    - name: site_id
      in: path
      required: true
      schema:
        type: string
    servers:
    - url: https://api.netlify.com/api/v1
    get:
      operationId: listSiteSnippets
      tags:
      - snippet
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                      format: int32
                    site_id:
                      type: string
                    title:
                      type: string
                    general:
                      type: string
                    general_position:
                      type: string
                    goal:
                      type: string
                    goal_position:
                      type: string
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
    post:
      operationId: createSiteSnippet
      tags:
      - snippet
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    format: int32
                  site_id:
                    type: string
                  title:
                    type: string
                  general:
                    type: string
                  general_position:
                    type: string
                  goal:
                    type: string
                  goal_position:
                    type: string
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  format: int32
                site_id:
                  type: string
                title:
                  type: string
                general:
                  type: string
                general_position:
                  type: string
                goal:
                  type: string
                goal_position:
                  type: string
        required: true
  /sites/{site_id}/snippets/{snippet_id}:
    parameters:
    - name: site_id
      in: path
      required: true
      schema:
        type: string
    - name: snippet_id
      in: path
      required: true
      schema:
        type: string
    servers:
    - url: https://api.netlify.com/api/v1
    get:
      operationId: getSiteSnippet
      tags:
      - snippet
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    format: int32
                  site_id:
                    type: string
                  title:
                    type: string
                  general:
                    type: string
                  general_position:
                    type: string
                  goal:
                    type: string
                  goal_position:
                    type: string
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
    put:
      operationId: updateSiteSnippet
      tags:
      - snippet
      responses:
        '204':
          description: No content
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  format: int32
                site_id:
                  type: string
                title:
                  type: string
                general:
                  type: string
                general_position:
                  type: string
                goal:
                  type: string
                goal_position:
                  type: string
        required: true
    delete:
      operationId: deleteSiteSnippet
      tags:
      - snippet
      responses:
        '204':
          description: No content
        default:
          description: error
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  code:
                    type: integer
                    format: int64
                  message:
                    type: string
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-refined-from:
- netlify-openapi-2.57.0-swagger.json
- netlify-snippet-api-openapi.yml
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: Forms
  tags:
  - form
  - submission
- name: Split tests
  tags:
  - splitTest
- name: Large media
  tags:
  - asset
  - assetPublicSignature
x-original-swagger-version: '2.0'