> For the complete documentation index, see [llms.txt](https://docs.shoplift.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shoplift.ai/test/javascript-api.md).

# JavaScript API Testing

Shoplift's JavaScript API enables you to create sophisticated A/B tests directly in your theme code, giving you complete control over test logic and visitor experiences.

{% hint style="info" %}
API tests require developer involvement. Most merchants will need their developer or agency to write the JavaScript and (for manual API tests) implement the trigger logic.
{% endhint %}

To learn more about API testing, explore the documentation below.

{% hint style="info" %}
This guide covers basic usage of the JavaScript API for API testing purposes. For a full API reference, see [Broken mention](broken://spaces/oHLmrXEftH3xhn1oPwUH/pages/hTGpjUb0Ptx9JVMpjHgt).
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Overview</td><td><a href="https://314821113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDg2m2UmvTCMjmBjnzBKA%2Fuploads%2FptQa4j5irrHIyXLrAbt0%2FDocs%20Icons%20(3).png?alt=media&amp;token=eace3a48-36c6-427e-843d-8edfe8c28a23">Docs Icons (3).png</a></td><td><a href="/test/javascript-api/overview.md">Overview</a></td></tr><tr><td>Use Cases</td><td><a href="https://314821113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDg2m2UmvTCMjmBjnzBKA%2Fuploads%2FZ9pi9uC5zVfB8eyTaW8X%2FDocs%20Icons%20(7).png?alt=media&amp;token=cea7e5b9-9904-4f7e-a4e1-8bca1599efa3">Docs Icons (7).png</a></td><td><a href="/test/javascript-api/use-cases.md">Use Cases</a></td></tr><tr><td>Create an API Test</td><td><a href="https://314821113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDg2m2UmvTCMjmBjnzBKA%2Fuploads%2FZHkG5D6m0xagjlabla4f%2F3.png?alt=media&amp;token=d189e6b4-c403-4702-852d-d19a433c53fd">3.png</a></td><td><a href="/test/javascript-api/create-an-api-test.md">Create an API Test</a></td></tr><tr><td>Previewing an API Test</td><td><a href="https://314821113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDg2m2UmvTCMjmBjnzBKA%2Fuploads%2FrzumDJFtDnU9Pk8KoDm4%2FDocs%20Icons%20(2).png?alt=media&amp;token=718b83f5-0f99-4ac7-a4fe-82f0ef1c9796">Docs Icons (2).png</a></td><td><a href="/test/javascript-api/previewing-an-api-test.md">Previewing an API Test</a></td></tr><tr><td>Ending an API Test</td><td><a href="https://314821113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDg2m2UmvTCMjmBjnzBKA%2Fuploads%2FocNtDQPQEnaepYTzBdRV%2FDocs%20Icons%20(4).png?alt=media&amp;token=3b57a1ea-5c34-4f4b-bf72-6a6ac0ac34ae">Docs Icons (4).png</a></td><td><a href="/test/javascript-api/ending-an-api-test.md">Ending an API Test</a></td></tr></tbody></table>
