Skip to navigation

Get the partner the key belongs to

Partner key only. Your name, kind, approved, whiteLabelEnabled, the key’s environment (TEST or LIVE), restaurantCount (restaurants in that environment that are not archived), and brand, profile and senderDomain as the endpoints below return them. Never a key or a secret. No role needed.

Authentication

AuthorizationBearer

The partner key (lbp_test_… or lbp_live_…), sent as Authorization: Bearer lbp_… and created in LettBestilt Partner under Partner key. It belongs to the whole partner, not to a restaurant, and only works against /api/v1/partner. Server to server only: a request with an Origin header is rejected with 403 FORBIDDEN, and the key must never be in a browser. A TEST key sees and creates only sandboxes; LIVE keys work once LettBestilt Partner is open. A suspended or archived partner, a revoked key and a restaurant key (lbs_…) here give 401 UNAUTHORIZED; an expired key gives 401 KEY_EXPIRED.

Response

The partner.
dataobject

Errors

401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error