API by router
Customer auth
POST
application/json- body
email*EmailFormat
emailtenant_slug*Tenant SlugLength
1 <= length <= 100Successful Response
application/json- response
curl -X POST 'https://example.com/v1/customer-auth/login' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com", "tenant_slug": "string"}'Example Response
{}POST
application/json- body
refresh_token?Refresh TokenDefault
""Successful Response
curl -X POST 'https://example.com/v1/customer-auth/logout' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
Empty
POST
application/json- body
refresh_token?Refresh TokenDefault
""Successful Response
application/json- response
access_token*Access Tokencustomer_id*Customer IdFormat
uuidexpires_in?Expires InDefault
3600refresh_token*Refresh Tokentenant_id*Tenant IdFormat
uuidtoken_type?Token TypeDefault
"bearer"curl -X POST 'https://example.com/v1/customer-auth/refresh' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "access_token": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "expires_in": 3600, "refresh_token": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "token_type": "bearer"}POST
application/json- body
Body for /v1/customer-auth/token — exchange magic-link code for tokens, no cookies.
code*CodeLength
6 <= length <= 6email*EmailFormat
emailtenant_slug*Tenant SlugLength
1 <= length <= 100Successful Response
application/json- response
access_token*Access Tokencustomer_id*Customer IdFormat
uuidexpires_in?Expires InDefault
3600refresh_token*Refresh Tokentenant_id*Tenant IdFormat
uuidtoken_type?Token TypeDefault
"bearer"curl -X POST 'https://example.com/v1/customer-auth/token' \ -H 'Content-Type: application/json' \ -d '{ "code": "string", "email": "user@example.com", "tenant_slug": "string"}'Example Response
{ "access_token": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "expires_in": 3600, "refresh_token": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "token_type": "bearer"}POST
application/json- body
code*CodeLength
6 <= length <= 6email*EmailFormat
emailtenant_slug*Tenant SlugLength
1 <= length <= 100Successful Response
application/json- response
access_token*Access Tokencustomer_id*Customer IdFormat
uuidexpires_in?Expires InDefault
3600refresh_token*Refresh Tokentenant_id*Tenant IdFormat
uuidtoken_type?Token TypeDefault
"bearer"curl -X POST 'https://example.com/v1/customer-auth/verify' \ -H 'Content-Type: application/json' \ -d '{ "code": "string", "email": "user@example.com", "tenant_slug": "string"}'Example Response
{ "access_token": "string", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "expires_in": 3600, "refresh_token": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "token_type": "bearer"}