Get a specific intent
LegacyAPI v1 is the older API. It still works and is supported, but new integrations should use API v2. Migrating from v1 to v2
const url = 'https://app.stoqapp.com/api/v1/external/intents/example';const options = {method: 'GET', headers: {'X-Auth-Token': '<X-Auth-Token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.stoqapp.com/api/v1/external/intents/example \ --header 'X-Auth-Token: <X-Auth-Token>'Retrieve a single back-in-stock intent (signup) by its STOQ ID. Returns the full intent record — the customer contact details, channel, requested quantity, and notification status. Returns 404 if no intent with that ID exists for the authenticated shop.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Intent ID
Header Parameters
Section titled “Header Parameters”API key for authentication
Responses
Section titled “Responses”Intent details
object
Unique identifier for the intent
Timestamp when the intent was blocked from sending
Communication channel used for notifications (e.g., Email, SMS)
Customer’s email address for notifications
Timestamp of the notification sent
Whether the customer has confirmed their GDPR opt-in for notifications
Customer’s phone number for SMS notifications
Requested quantity of the product when back in stock
Number of notifications sent for this intent
Type of the intent (e.g., restock, wishlist_reminder)
Timestamp when the customer unsubscribed from notifications
Timestamp when the intent was created
Timestamp when the intent was last updated
Unique identifier for the customer
Identifier for the trigger that created this intent
Internal product variant identifier
Unique identifier for the shop
Shopify’s inventory item identifier
Shopify’s market identifier for multi-market stores
Shopify’s product identifier
Shopify’s variant identifier
Customer’s full name
Customer’s contact information
Timestamp when the customer unsubscribed from all notifications
Whether the customer has opted in to receive marketing communications
Total number of notifications sent for this intent
Example
{ "id": "8f3c2b1a-7d4e-4c2a-9f10-2b3c4d5e6f70", "channel": "email", "email": "shopper@example.com", "phone": null, "quantity": 1, "notified_at": null, "optin_confirmed": true, "source": "api", "type": "restock", "sent_notifications_count": 0, "created_at": "2026-06-20T14:30:00Z", "updated_at": "2026-06-20T14:30:00Z", "customer_id": "c1d2e3f4-5a6b-7c8d-9e0f-1a2b3c4d5e6f", "shop_id": "a1b2c3d4-5e6f-7081-92a3-b4c5d6e7f809", "shopify_product_id": 7891234567890, "shopify_variant_id": 43900910010503, "accepts_marketing": true}Unauthorized
Intent not found
Thanks for letting us know.
Still stuck? Ask Quinn or chat with support