---
updatedAt: 2025-04-03T21:39:54.000Z
agentTools:
  projectIndex: https://api.pushcrew.com/llms.txt
---

# Introduction to JS API

This API allows fine grain control over subscriptions of individual subscribers. It can be used to:

1. Get current subscriber details (including unique subscriberID)
2. Manually trigger opt-in boxes for subscribing to push notifications
3. Add/remove subscribers from segments.

You must first put our smart code onto your website before you can do anything else.

You can use the queue **\_pcq** to push events to the API.

**Syntax:**\
window.\_pcq = window.\_pcq || \[ ];