# Snippets API: The first API for Square Online

DevFeed: [Snippets API: The first API for Square Online](<https://devfeed.tech/articles/snippets-api-the-first-api-for-square-online-15858.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/snippets-api-the-first-api-for-square-online>)

Author: John Elliott

Published: 2021-05-17T10:00:00Z

Content type: release

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [CSS](<https://devfeed.tech/topics/css.md>), [HTML](<https://devfeed.tech/topics/html.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [OAuth](<https://devfeed.tech/topics/oauth.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [css](<https://devfeed.tech/tags/css.md>), [developer-community](<https://devfeed.tech/tags/developer-community.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [html](<https://devfeed.tech/tags/html.md>), [integrations](<https://devfeed.tech/tags/integrations.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [oauth](<https://devfeed.tech/tags/oauth.md>)

## AI overview

Square announced the Snippets API, an early-access API for Square Online that lets developers add JavaScript, HTML, or CSS directly to a seller's website. It requires OAuth and the Sites API to identify the site where a snippet will be installed.

## Source excerpt

Insert code directly into the tag of a Square Online site