SitesPlaced Connection API

For plugins that connect another platform's shop. Connection key only, except the code exchange.

GitHub OpenAPI

Operations 8

POST /external-products/batch Send up to 100 of a connected shop's products #
DELETE /external-products/{external_id} Remove one copied product #
POST /connect/exchange Swap a one-time code for the plugin's key #
POST /connect/disconnect Close the connection #
GET /connection The connection's status #
PUT /connection Report the plugin's version and push address #
GET /connection/updates Updates waiting to go back to the shop #
POST /connection/updates/ack Report which updates were applied #

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/sitesplaced-com:sitesplaced-com-connection-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sitesplaced-com-connection-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SitesPlaced Developer Connection API
  version: v1
  summary: Catalogue, checkout, orders, tracking and webhooks for one SitesPlaced store.
  description: 'Two uses. **Headless:** a custom website with no backend of its own uses SitesPlaced for its catalogue, checkout and orders.

    **Connected:** a seller who already runs WooCommerce or Shopify keeps that shop, and a plugin copies every order into SitesPlaced. The other platform stays in charge of payment, stock and cancellation; SitesPlaced sends back only the shipping status and the tracking details.


    **Keys.** Send the key in a header: `Authorization: Bearer ` (`X-Api-Key: ` is also accepted). A key in the URL is refused. A secret key (`sp_live_sk_…`) is for servers only; sent from a web browser it is refused with 403. A publishable key (`sp_live_pk_…`) may sit in browser code: it can hold only `products:read`, `checkout:write` and `tracking:read`, and works only from the websites on its allowed list. A connection key is the secret key a plugin receives when a shop connects; routes marked "connection key" accept only such a key.


    **Conventions.** JSON in, JSON out, UTF-8, bodies up to 1 MB. Dates are ISO 8601 in UTC. Money is a plain number in the order''s currency (`1499.5`). Lists are paged with a cursor and come newest first. Every response carries `X-Request-Id`, the `X-RateLimit-*` headers and `Cache-Control: no-store`.


    **Rate limits.** 60 requests a minute per secret key on the free plan, 300 on a paid store plan. Publishable keys: 600 / 3000 a minute per key and 30 / 60 per visitor IP. Over the limit: 429 with `Retry-After` (seconds).


    Human-readable reference: https://sitesplaced.com/developers/api'
  contact:
    name: SitesPlaced
    url: https://sitesplaced.com/contact
servers:
- url: https://sitesplaced.com/api/v1
  description: Always the apex host, never www.
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: Connection
  description: For plugins that connect another platform's shop. Connection key only, except the code exchange.
paths:
  /external-products/batch:
    post:
      operationId: upsertExternalProducts
      tags:
      - Connection
      summary: Send up to 100 of a connected shop's products
      description: Connection key only. Permission `products:write`. These products are kept apart from the store's own products and can never be sold on a SitesPlaced storefront.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalProductBatchRequest'
      responses:
        '200':
          description: One result per product.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalProductBatchResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
  /external-products/{external_id}:
    parameters:
    - name: external_id
      in: path
      required: true
      description: The product's id on the other platform.
      schema:
        type: string
    delete:
      operationId: deleteExternalProduct
      tags:
      - Connection
      summary: Remove one copied product
      description: Connection key only. Permission `products:write`.
      responses:
        '200':
          description: Removed.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalProductDeleted'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
  /connect/exchange:
    post:
      operationId: exchangeConnectCode
      tags:
      - Connection
      summary: Swap a one-time code for the plugin's key
      description: 'No key: the plugin does not have one yet. The code works once, for 10 minutes, and only when the host of `site_url` matches the shop that was approved. Any failure gives 400.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectExchangeRequest'
      responses:
        '200':
          description: The plugin's key and signing secret.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectExchangeResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '429':
          $ref: '#/components/responses/RateLimited'
  /connect/disconnect:
    post:
      operationId: disconnect
      tags:
      - Connection
      summary: Close the connection
      description: Connection key only. Permission `connection:manage`. The key stops working immediately afterwards.
      responses:
        '200':
          description: Disconnected.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ok'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
  /connection:
    get:
      operationId: getConnection
      tags:
      - Connection
      summary: The connection's status
      description: Connection key only. Permission `connection:manage`.
      responses:
        '200':
          description: The connection and its store.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionStatus'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
    put:
      operationId: putConnection
      tags:
      - Connection
      summary: Report the plugin's version and push address
      description: 'Connection key only. Permission `connection:manage`. A `site_url` whose host differs from the connected one gives 409 and the plugin must pause: this is how a staging copy of a site is stopped from sending orders to the live store.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectionHeartbeat'
      responses:
        '200':
          description: The connection and its store.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionStatus'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
  /connection/updates:
    get:
      operationId: listConnectionUpdates
      tags:
      - Connection
      summary: Updates waiting to go back to the shop
      description: Connection key only. Permission `connection:manage`. The pull fallback a plugin runs every 15 minutes.
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          default: 50
      responses:
        '200':
          description: Waiting updates.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
  /connection/updates/ack:
    post:
      operationId: acknowledgeConnectionUpdates
      tags:
      - Connection
      summary: Report which updates were applied
      description: Connection key only. Permission `connection:manage`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAck'
      responses:
        '200':
          description: How many were acknowledged.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateAckResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    UpdateList:
      type: object
      required:
      - updates
      properties:
        updates:
          type: array
          items:
            $ref: '#/components/schemas/Update'
    ConnectionHeartbeat:
      type: object
      properties:
        plugin_version:
          type: string
          examples:
          - 1.0.0
        platform_version:
          type: string
        site_url:
          type: string
          format: uri
          description: A host that differs from the connected one gives 409.
        push_url:
          type:
          - string
          - 'null'
          description: Where SitesPlaced pushes updates. Null when the shop's REST API cannot be reached.
          examples:
          - https://shop.example.com/wp-json/sitesplaced/v1/updates
        shop_name:
          type: string
        currency:
          type: string
          examples:
          - INR
    ExternalProductDeleted:
      type: object
      required:
      - external_id
      - deleted
      properties:
        external_id:
          type: string
        deleted:
          type: boolean
    UpdateAckResult:
      type: object
      required:
      - acknowledged
      properties:
        acknowledged:
          type: integer
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - request_id
          properties:
            code:
              type: string
              enum:
              - invalid_request
              - unauthorized
              - forbidden
              - not_found
              - conflict
              - payload_too_large
              - unprocessable
              - rate_limited
              - internal_error
              - unavailable
            message:
              type: string
              description: Plain words, for a person.
            param:
              type: string
              description: The field at fault, when there is one.
              examples:
              - totals.total
            request_id:
              type: string
              examples:
              - req_…
    ExternalProductBatchResult:
      type: object
      required:
      - results
      properties:
        results:
          type: array
          items:
            type: object
            required:
            - external_id
            - ok
            properties:
              external_id:
                type:
                - string
                - 'null'
              ok:
                type: boolean
              error:
                type: string
    Connection:
      type: object
      required:
      - id
      - platform
      - status
      properties:
        id:
          type: string
          format: uuid
        platform:
          type: string
          examples:
          - woocommerce
        status:
          type: string
        status_detail:
          type:
          - string
          - 'null'
        shop_url:
          type:
          - string
          - 'null'
        orders_synced:
          type: integer
        last_order_at:
          type:
          - string
          - 'null'
          format: date-time
    ConnectExchangeRequest:
      type: object
      required:
      - code
      - site_url
      properties:
        code:
          type: string
          examples:
          - spc_…
        site_url:
          type: string
          format: uri
          examples:
          - https://shop.example.com
    ExternalProductInput:
      type: object
      required:
      - external_id
      - name
      properties:
        external_id:
          type: string
        name:
          type: string
        sku:
          type: string
        price:
          type: number
        currency:
          type: string
        image_url:
          type: string
          format: uri
        images:
          type: array
          items:
            type: string
            format: uri
        url:
          type: string
          format: uri
        category:
          type: string
        description:
          type: string
        stock:
          type: number
        status:
          type: string
        updated_at:
          type: string
          format: date-time
          description: ISO 8601, in UTC.
    ConnectExchangeResult:
      type: object
      required:
      - api_key
      - webhook_secret
      - connection_id
      - store
      properties:
        api_key:
          type: string
          examples:
          - sp_live_sk_…
        webhook_secret:
          type: string
          description: Signs the updates pushed back to the shop.
          examples:
          - whsec_…
        connection_id:
          type: string
          format: uuid
        store:
          $ref: '#/components/schemas/ConnectedStore'
    ExternalProductBatchRequest:
      type: object
      required:
      - products
      properties:
        products:
          type: array
          minItems: 1
          maxItems: 100
          items:
            $ref: '#/components/schemas/ExternalProductInput'
    ConnectionStatus:
      type: object
      required:
      - connection
      - store
      properties:
        connection:
          $ref: '#/components/schemas/Connection'
        store:
          $ref: '#/components/schemas/ConnectedStore'
    Update:
      type: object
      description: '"This order shipped / is out for delivery / was delivered, and here is the tracking."'
      required:
      - id
      - order_id
      - external_id
      properties:
        id:
          type: string
          format: uuid
        order_id:
          type: string
          format: uuid
        external_id:
          type: string
        number:
          type:
          - string
          - 'null'
        status:
          type:
          - string
          - 'null'
          enum:
          - shipped
          - out_for_delivery
          - completed
          - null
          description: Null means tracking only.
        tracking:
          type: object
          properties:
            number:
              type:
              - string
              - 'null'
            courier:
              type:
              - string
              - 'null'
            url:
              type:
              - string
              - 'null'
        tracking_page_url:
          type: string
          format: uri
        comment:
          type:
          - string
          - 'null'
        updated_at:
          type: string
          format: date-time
          description: ISO 8601, in UTC.
    ConnectedStore:
      type: object
      required:
      - id
      - name
      - slug
      - tracking_url
      - dashboard_url
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        slug:
          type: string
        tracking_url:
          type: string
          format: uri
        dashboard_url:
          type: string
          format: uri
    Ok:
      type: object
      required:
      - ok
      properties:
        ok:
          type: boolean
          const: true
    UpdateAck:
      type: object
      properties:
        applied:
          type: array
          items:
            type: string
        failed:
          type: array
          items:
            type: object
            required:
            - id
            properties:
              id:
                type: string
              error:
                type: string
  responses:
    RateLimited:
      description: '`rate_limited`. Wait for `Retry-After` seconds.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Plain words.
              request_id: req_…
    Forbidden:
      description: '`forbidden`. The key may not do this: a secret key sent from a browser, a publishable key from a website not on its list, the wrong kind of key, or a missing permission.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: forbidden
              message: Plain words.
              request_id: req_…
    Conflict:
      description: '`conflict`.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: conflict
              message: Plain words.
              request_id: req_…
    PayloadTooLarge:
      description: '`payload_too_large`. Bodies can be up to 1 MB.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: payload_too_large
              message: Plain words.
              request_id: req_…
    Unavailable:
      description: '`unavailable`.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unavailable
              message: Plain words.
              request_id: req_…
    BadRequest:
      description: '`invalid_request`. The request is malformed or a field has a bad value; `param` names the field.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request
              message: Plain words.
              request_id: req_…
    Unauthorized:
      description: '`unauthorized`. The key is missing, wrong or revoked.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Plain words.
              request_id: req_…
    InternalError:
      description: '`internal_error`.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Plain words.
              request_id: req_…
  headers:
    X-RateLimit-Reset:
      description: When the limit resets, in unix seconds.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests left in the current minute.
      schema:
        type: integer
    X-Request-Id:
      description: Identifies this call. Quote it when asking for help.
      schema:
        type: string
        examples:
        - req_…
    X-RateLimit-Limit:
      description: Requests allowed per minute for this key.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before trying again.
      schema:
        type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer sp_live_sk_…` (or `sp_live_pk_…` on routes that accept a publishable key). A key in the URL is refused.'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: The same key, in `X-Api-Key`. Also accepted.
externalDocs:
  description: API reference
  url: https://sitesplaced.com/developers/api