> ## 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

**id** `string` *required*

Site id

### Response

`object`

**ok** `boolean` *required*

**method** `string`

**scriptTagId** `integer`

**note** `string`

**error** `string`

On failure (`ok: false`): `unsafe_domain`, `unsafe_address`, `shopify_unreachable`, or the Shopify API error

### Status codes

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

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

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.