*.onsleek.io
API endpoints to the new *.onsleek.ai
endpoints for cashback offers, coupons, promotions, and transactions.
The migration primarily involves:
https://api.onsleek.ai/
instead of https://api.onsleek.io/
.
/deals/
prefix to all endpoints/v1/deals/
namespace./v1/cashback-offers/
becomes /v1/deals/cashback-offers/
.
?couponId=abc123
./v1/deals/coupons/{id}/activate
.
GET
activation endpoints still perform a 302
redirect to the affiliate URL.POST
activation endpoints still return the affiliate URL, but instead of a plain string,{ "url": "https://affiliate.example.com" }
*.onsleek.io
endpoints will be deprecatedAll https://api.onsleek.io/
endpoints will no longer be supported starting June 1, 2025.Please migrate to https://api.onsleek.ai/
and update your integrations accordingly before this date.https://api.onsleek.ai/
{id}
in the path for activation endpoints instead of query parameters/v1/deals/...
POST
+ 302
redirect) remains the sameMethod | Old Endpoint | New Endpoint |
---|---|---|
GET | /v1/cashback-offers/activate?cashbackOfferId={id}&orgId=... | /v1/deals/cashback-offers/{id}/activate?orgId=... |
POST | /v1/cashback-offers/activate?cashbackOfferId={id}&orgId=... | /v1/deals/cashback-offers/{id}/activate?orgId=... |
GET | /v1/cashback-offers/ | /v1/deals/cashback-offers/ |
GET | /v1/cashback-offers/{id} | /v1/deals/cashback-offers/{id} |
{id}
instead of the cashbackOfferId
query param./deals/
.GET
activation endpoint triggers a 302 redirect (same behavior), but POST
now returns a structured JSON response: { url: string }
(previously a raw string).GET
: 302 redirect to affiliate URLPOST
: Returns { url: "https://..." }
Method | Old Endpoint | New Endpoint |
---|---|---|
GET | /v1/coupons/activate?couponId={id}&orgId=... | /v1/deals/coupons/{id}/activate?orgId=... |
POST | /v1/coupons/activate?couponId={id}&orgId=... | /v1/deals/coupons/{id}/activate?orgId=... |
GET | /v1/coupons/ | /v1/deals/coupons/ |
GET | /v1/coupons/{id} | /v1/deals/coupons/{id} |
{id}
instead of the couponId
query param./deals/
.GET
activation endpoint triggers a 302 redirect (same behavior), but POST
now returns a structured JSON response: { url: string }
(previously a raw string).GET
: 302 redirect to affiliate URLPOST
: Returns { url: "https://..." }
Method | Old Endpoint | New Endpoint |
---|---|---|
GET | /v1/promotions/activate?promotionId={id}&orgId=... | /v1/deals/promotions/{id}/activate?orgId=... |
POST | /v1/promotions/activate?promotionId={id}&orgId=... | /v1/deals/promotions/{id}/activate?orgId=... |
GET | /v1/promotions/ | /v1/deals/promotions/ |
GET | /v1/promotions/{id} | /v1/deals/promotions/{id} |
{id}
instead of the promotionId
query param./deals/
.GET
activation endpoint triggers a 302 redirect (same behavior), but POST
now returns a structured JSON response: { url: string }
(previously a raw string).GET
: 302 redirect to affiliate URLPOST
: Returns { url: "https://..." }
Method | Old Endpoint | New Endpoint |
---|---|---|
GET | /v1/transactions/ | /v1/deals/transactions/ |
/deals/
.