# Felo जनरेशन परिणाम

POST /api/v1/data/tasks/{task_id}/historical

एक प्रस्तुति को asynchronously generate करें, फिर एक PPTX file export करें। Generation और export steps को अलग रखें: created task अभी finished file नहीं होती।

सभी examples [overview](https://openapi.felo.ai/hi/docs/data-api/guides/felo-overview.md) से `FELO_API_KEY` का उपयोग करते हैं। Calls **platform balance** का उपयोग करती हैं, Felo Pro credits का नहीं। Response examples केवल illustrative हैं; live content और optional fields बदलते रहते हैं।



Task बनाते समय लौटाए गए identifiers का उपयोग करें। `TASK_ID` को `task_id` और `PPT_ID` को `ppt_business_id` पर सेट करें; `{business_id}` का अर्थ भी `ppt_business_id` है।

```bash
TASK_ID="YOUR_TASK_ID"
PPT_ID="YOUR_PPT_BUSINESS_ID"
```



## 3. जनरेशन परिणाम पढ़ें

`POST /api/v1/data/tasks/{task_id}/historical`

यह एक **POST** है, जिसमें किसी JSON body की आवश्यकता नहीं है।

```bash
curl -sS --request POST "https://openapi.felo.ai/api/v1/data/tasks/$TASK_ID/historical" \
  -H "Authorization: Bearer $FELO_API_KEY"
```

```json
{
  "task_id":"example-task-id",
  "task_status":"COMPLETED",
  "history_data":{},
  "error_message":null
}
```

`history_data` का उपयोग करने से पहले `task_status` पढ़ें। History payload task के अनुसार बदल सकती है और null भी हो सकती है। `ai_page_html` और `thread_short_id` optional हैं। यह response guaranteed PPTX download URL नहीं है; अगला step export है।



## अवधि, स्वामित्व और बिलिंग

- प्रस्तुतियाँ **creation के सात दिन बाद** expire हो जाती हैं। Queries और exports इस अवधि को extend नहीं करते। Presentation `expires_at` और signed download URL `expires_at` अलग lifetimes का वर्णन करते हैं।
- केवल बनाने वाला API account ही अपनी tasks और presentations access कर सकता है। Missing या inaccessible resource पर 404 लौट सकता है; expired या deleted resource पर 410, या cleanup के बाद 404 लौट सकता है।
- Generation का बिल प्रति generated page (`ppt.generate`) लगता है। Page pricing के अंतर्गत, creation दस pages की कीमत reserve करती है, फिर actual successful output के अनुसार settlement करती है और unused reservation release करती है। यदि prompt में कम pages माँगे गए हों तब भी आपके account में reservation के लिए पर्याप्त available balance होना चाहिए।
- Export की अलग request price (`ppt.export`) है। Status queries, result queries, export-status queries और deletion कोई नया charge create नहीं करते।
- Timeout के बाद, दूसरी प्रस्तुति बनाने के बजाय saved task को query करें। [Billing and Errors](https://openapi.felo.ai/hi/docs/data-api/guides/felo-billing.md) देखें।
