Authentication
Protect partner keys, request only the scopes you need, and send the headers the Lahjty Partner API requires on every request.
Bearer authentication
Send the partner key in the Authorization header from a trusted backend. Keys are shown once, stored by Lahjty as one-way hashes, and can be revoked.
Required headers
Authorization: Bearer lhj_live_...— all private endpointsContent-Type: application/json— all POST requestsIdempotency-Key— all billable POST requests
Scopes
copy:writeCopy and headlines
campaigns:writeComplete campaigns
images:writeImages and campaign images
speech:writeSpeech and campaign speech
templates:writeWhatsApp drafts and outcomes
usage:readUsage and stored requests
ad-library:readAd Library search and details
ad-library:writeAd preparation and reference uploads
GET
/capabilitiesTest connectivity without spending credits
Capabilities is public and free, so it is useful for checking the base URL and live contract.
Example response