HostMentor Docs

Retrieve your catalog ID

GEThttps://wa.hostmentor.com/v3/fetchcatalogId

Returns the ID of the product catalog connected to your WhatsApp number. Send the number in the wanumber header.

When no catalog is connected, the answer is still 200 with the same success message, but catlogid is null. Check catlogid, not message.

Authorization

apiKey
apikey<token>

Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.

In: header

Header Parameters

wanumber*string

Your WhatsApp number with country code, such as 919876500000.

Response Body

application/json

application/json

application/json

curl -X GET "https://wa.hostmentor.com/v3/fetchcatalogId" \  -H "apikey: YOUR_API_KEY" \  -H "wanumber: 919876500000"

{  "code": 200,  "status": "SUCCESS",  "message": "Catalog data fetch successfully",  "data": {    "catlogid": "801262455316921"  }}