Start social sign-in or connect a provider
Starts Google or GitHub sign-in, or connects a provider to your existing account.
Access: Layerbeat browser. Linking requires a user session and a sign-in within the last 15 minutes.
- Open the returned
authorization_urlin the same browser. - Use
action: signinto sign in or register, andaction: linkto connect an existing account. Linking needsX-CSRF-Token. - An email that already belongs to an account requires that account's login and explicit linking.
- Workspace, referral and currency choices apply only to new registrations.
provider*stringThe fixed supported identity provider.
"google""github"Origin*stringExact configured Layerbeat browser origin.
uriapplication/json- body
action*string"signin""link"onboarding?booleanDefault false. Binds deferred setup to a new signup through this protected flow. Cannot be combined with organization, billing or referral fields, or action link. Existing accounts keep their settings and completed setup.
org_name?stringOnly for a new social signup.
length <= 100billing_currency?stringOnly for a new social signup. Browser-bound to the original flow; existing account login never changes preferences. Forbidden with action link.
"USD""IDR"referral_code?stringOptional eight-character code, case-insensitive; legacy codes remain accepted. A valid first-touch cookie takes precedence.
length <= 30An authorization URL and browser-bound ten-minute flow. The raw verifier is only in an HttpOnly cookie.
application/json- response
authorization_url*stringuriexpires_at*stringdate-timecurl -X POST 'https://layerbeat.com/v1/auth/social/google/start' \ -H 'Origin: https://app.layerbeat.com' \ -H 'Content-Type: application/json' \ -d '{ "action": "signin"}'{ "authorization_url": "https://accounts.google.com/o/oauth2/v2/auth?client_id=public-client-id&response_type=code&state=example-state&code_challenge_method=S256", "expires_at": "2026-10-04T01:10:00Z"}