Create or send a customer-access magic link
Resolves or guarded-creates customer/contact records, ensures Clerk org/user membership, creates a Clerk sign-in token, and either sends or returns the link.
POST
https://api.caretlegal.net/integrations/external-clients/magic-linkAuthorization
Header parameters
Request body JSON required
Example requests
{
"provider": "netsuite",
"externalCustomerId": "12345",
"externalContactId": "67890",
"email": "ap@example.com",
"firstName": "Ava",
"lastName": "Parker",
"customerName": "Example Law",
"mode": "send",
"createIfMissing": true
}{
"provider": "salesforce",
"externalCustomerId": "001xx000003DGbYAAW",
"externalContactId": "003xx000004TmiYAAS",
"email": "owner@example.com",
"customerName": "Example Law",
"mode": "return_link",
"createIfMissing": true,
"tokenExpiresInSeconds": 604800
}