Request
POST https://backend.net0.com/v1/customers/profile
This endpoint allows you to invite customers. It takes in an array of emails as shown in the request example.
curl --location --request POST 'https://backend.net0.com/v1/customers/invite' \
--header 'x-api-key: <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"emails": [
"[email protected]"
]
}'
Response
The response is an array containing the details of the customers an invite was sent to.
[
{
"id": "671eb932-13cf-458a-833d-f09d65c8a7d8",
"role": "worker",
"status": "invited",
"avatarUrl": null,
"phone": null,
"firstName": null,
"lastName": null,
"email": "[email protected]",
"verify": false,
"companyId": 2,
"createdAt": "2021-11-24T11:13:59.208Z",
"updatedAt": "2021-11-24T11:13:59.208Z",
"deletedAt": null
}
]