> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install on a Shopify store

> Uses the site's stored accessToken.

Uses the site's stored `accessToken`.

### Path parameters

<ParamField path="id" type="string" required>
  Site id
</ParamField>

### Response

`object`

<ResponseField name="ok" type="boolean" required />

<ResponseField name="method" type="string" />

<ResponseField name="scriptTagId" type="integer" />

<ResponseField name="note" type="string" />

<ResponseField name="error" type="string">
  On failure (`ok: false`): `unsafe_domain`, `unsafe_address`, `shopify_unreachable`, or the Shopify API error
</ResponseField>

### Status codes

| Code  | Meaning        |
| ----- | -------------- |
| `200` | Install result |
| `401` | Error          |
| `404` | Error          |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.example.com/api/admin/sites/{id}/install/shopify' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "ok": true,
    "method": "script_tag",
    "scriptTagId": 1,
    "note": "Two-person tent, green — replacement for damaged pole set.",
    "error": "string"
  }
  ```
</ResponseExample>
