User creation

As explained before, it's essential to link Users in your backend to your abstraction of a User or Client. When you create a user with our API, you can add an external_user_id in the body as an additional reference.

curl 'https://api.bridgeapi.io/v2/users' \
	-X POST \
	-H 'Bridge-Version: 2021-06-01' \
	-H 'Content-Type: application/json' \
	-H 'Client-Id: MY_CLIENT_ID' \
	-H 'Client-Secret: MY_CLIENT_SECRET'
curl 'https://api.bridgeapi.io/v2/users' \
	-X POST \
	-H 'Bridge-Version: 2021-06-01' \
	-H 'Content-Type: application/json' \
	-H 'Client-Id: MY_CLIENT_ID' \
	-H 'Client-Secret: MY_CLIENT_SECRET' \
	-d $'{
  	"external_user_id": "SUIDHIUHDS8838UD"
	}'

If you create a user with an external_user_id, you can also authenticate himself with this field and also to resarch users in our dashboard with this reference.

If you create users with an external_user_id, you can both authenticate them and search for users with this reference in our dashboard.

⚠️

User lifecycle management

Don't forget to delete the Bridge users associated to your customers when they delete their account on your service.

📘

User creation and authentication

Since 23/10/2023, we have updated the user creation and authentication methods. If you have integrated our API before this update, please refer to this page.