Use the Sites API

You can use the Sites API to retrieve metadata about Square Online sites. The Sites API is used with the Snippets API to add and manage snippets on a Square Online site. For more information, see Snippets API Overview.

Note

Square Online APIs are publicly available as part of an early access program. For more information, see Early access program for Square Online APIs.

Link to section

List sites

The ListSites endpoint retrieves the Square Online sites for a seller account. The following is an example request:

List sites

If successful, this endpoint returns a 200 OK status code and a JSON response.

  • If the associated account has one or more sites, the response contains the sites. Sites are listed in descending order by the created_at date:

  • If the associated account has no sites, the response contains an empty object:

    {}
Link to section

See also

On this page