Layerbeat

Activate customer referrals

POST
/v1/affiliates

Activates Refer & Earn and returns your workspace's eight-character referral code.

Access: User session: workspace admin or owner. API keys aren't supported.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Request Body

application/json
  1. body

Response Body

Successful response.

application/json
  1. response
id*string
code*string
Match^[A-HJ-NP-Z2-9]{8}$
partner_status*string
Value in"not_applied""pending""approved""rejected""suspended"
website*string
description*string
review_reason*string
created_at*string
Formatdate-time
applied_at*|
Formatdate-time
reviewed_at*|
Formatdate-time
curl -X POST 'https://layerbeat.com/v1/affiliates' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "aff_abcdefghijklmnopqrstuvwxyz",  "code": "K7M4Q9TR",  "partner_status": "not_applied",  "website": "",  "description": "",  "review_reason": "",  "created_at": "2026-10-03T12:00:00Z",  "applied_at": null,  "reviewed_at": null}