Authentication
Protect partner keys, request only the scopes you need, and send the headers required by the API.
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
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