Layerbeat

Capture a referral visit

POST
/v1/referrals/visit

Saves a referral code for a future signup.

Access: Layerbeat browser origin. No sign-in required.

Header Parameters

Origin*string

The exact Layerbeat browser origin.

Formaturi

Request Body

application/json
  1. body
code*string

Eight-character code, case-insensitive. Existing long codes remain accepted as aliases.

Response Body

Successful response.

application/json
  1. response
code*|
Match^[A-HJ-NP-Z2-9]{8}$
expires_at*|
Formatdate-time
curl -X POST 'https://layerbeat.com/v1/referrals/visit' \  -H 'Origin: https://console.layerbeat.com' \  -H 'Content-Type: application/json' \  -d '{  "code": "K7M4Q9TR"}'
{  "code": null,  "expires_at": null}