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

# Get available promotions

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"AI Backend","description":"API endpoints for AI Backend (base: /core)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_backend__handler.SuccessRespond":{"type":"object","properties":{"code":{"type":"integer"},"data":{},"message":{"type":"string"}}},"ai_backend__models.Promo":{"type":"object","properties":{"amount_type":{"description":"fixed, percent","type":"string"},"amount_value":{"type":"integer"},"b2b":{"type":"boolean"},"b2c":{"type":"boolean"},"created_at":{"type":"string"},"deletedAt":{"type":"string"},"description":{"type":"string"},"end_date":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"postpaid":{"type":"boolean"},"prepaid":{"type":"boolean"},"start_date":{"type":"string"},"type":{"description":"voucher_credits, voucher_discounts","type":"string"},"updated_at":{"type":"string"},"voucher_id":{"type":"string"}}},"ai_backend__handler.BaseError":{"type":"object","properties":{"code":{"type":"string"},"error":{}}}}},"paths":{"/core/user/promo/available":{"get":{"tags":["AI Backend","Promo"],"summary":"Get available promotions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ai_backend__handler.SuccessRespond"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__models.Promo"}}}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__handler.BaseError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__handler.BaseError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__handler.BaseError"}}}}}}}}}
```
