Skip to main content
POST
/
api
/
v1
/
auth
/
webhooks
/
post-registration
Sync user after Auth0 registration
curl --request POST \
  --url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/auth/webhooks/post-registration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "email": "jsmith@example.com",
  "name": "<string>",
  "picture": "<string>",
  "connection": "<string>",
  "event": "<string>",
  "metadata": {}
}
'
{
  "success": true,
  "data": {
    "status": "accepted"
  },
  "meta": {
    "timestamp": "2023-11-07T05:31:56Z",
    "requestId": "<string>"
  }
}
Called by Auth0 Actions after signup to create/update the local user profile. Protected by the Auth0 JWT and optionally an x-webhook-secret header.

Authorizations

Authorization
string
header
required

Auth0 access token for registered users.

Headers

x-webhook-secret
string

Shared secret configured on Auth0 Actions for additional verification.

Body

application/json
userId
string

Auth0 user ID (sub).

email
string<email>
name
string
picture
string<uri>
connection
string
event
string

Event type sent by Auth0 Action.

metadata
object

Response

Webhook acknowledged

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required