> For the complete documentation index, see [llms.txt](https://docs.stoqapp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoqapp.com/back-in-stock-api/get-a-specific-intent.md).

# Get a specific Intent

## GET /intents/{id}

> Get a specific intent

```json
{"openapi":"3.0.3","info":{"title":"Back in Stock Intents API","version":"1.0.0"},"servers":[{"url":"https://app.stoqapp.com/api/v1/external","description":"Production server"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Auth-Token"}},"schemas":{"Intent":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the intent"},"blocked_at":{"type":"string","format":"date-time","nullable":true,"description":"Timestamp when the intent was blocked from sending"},"channel":{"type":"string","description":"Communication channel used for notifications (e.g., Email, SMS)"},"email":{"type":"string","description":"Customer's email address for notifications"},"notified_at":{"type":"string","format":"date-time","nullable":true,"description":"Timestamp of the notification sent"},"optin_confirmed":{"type":"boolean","description":"Whether the customer has confirmed their GDPR opt-in for notifications"},"phone":{"type":"string","description":"Customer's phone number for SMS notifications"},"quantity":{"type":"integer","description":"Requested quantity of the product when back in stock"},"sent_notifications_count":{"type":"integer","description":"Number of notifications sent for this intent"},"source":{"type":"string"},"type":{"type":"string","description":"Type of the intent (e.g., restock, wishlist_reminder)"},"unsubscribed_at":{"type":"string","format":"date-time","nullable":true,"description":"Timestamp when the customer unsubscribed from notifications"},"created_at":{"type":"string","format":"date-time","description":"Timestamp when the intent was created"},"updated_at":{"type":"string","format":"date-time","description":"Timestamp when the intent was last updated"},"customer_id":{"type":"string","description":"Unique identifier for the customer"},"intent_trigger_id":{"type":"string","nullable":true,"description":"Identifier for the trigger that created this intent"},"product_variant_id":{"type":"string","nullable":true,"description":"Internal product variant identifier"},"shop_id":{"type":"string","description":"Unique identifier for the shop"},"shopify_inventory_item_id":{"type":"integer","nullable":true,"description":"Shopify's inventory item identifier"},"shopify_market_id":{"type":"integer","nullable":true,"description":"Shopify's market identifier for multi-market stores"},"shopify_product_id":{"type":"integer","nullable":true,"description":"Shopify's product identifier"},"shopify_variant_id":{"type":"integer","nullable":true,"description":"Shopify's variant identifier"},"customer_name":{"type":"string","nullable":true,"description":"Customer's full name"},"contact":{"type":"string","nullable":true,"description":"Customer's contact information"},"customer_unsubscribed_at":{"type":"string","format":"date-time","nullable":true,"description":"Timestamp when the customer unsubscribed from all notifications"},"accepts_marketing":{"type":"boolean","nullable":true,"description":"Whether the customer has opted in to receive marketing communications"},"notifications_count":{"type":"integer","nullable":true,"description":"Total number of notifications sent for this intent"}}}}},"paths":{"/intents/{id}":{"get":{"summary":"Get a specific intent","tags":["Intents"],"parameters":[{"in":"header","name":"X-Auth-Token","required":true,"schema":{"type":"string"},"description":"API key for authentication"},{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Intent ID"}],"responses":{"200":{"description":"Intent details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Intent"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Intent not found"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.stoqapp.com/back-in-stock-api/get-a-specific-intent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
