/api/v1/admin/community/addExternalUsers| Name | Type | Required | Description |
|---|---|---|---|
| x-api-key | String | β Yes | API key provided by the Networked Team. |
| Name | Type | Required | Description |
|---|---|---|---|
| String | β Yes | Email of the user to register. | |
| name | String | β Yes | Name of the user. |
| password | String | β No | Password to set if using the Direct Add method (method = 2). |
| roleId | String | β Yes | Role to assign to the user (Admin, Moderator, Member, etc.). |
| planId | String | β No | ID of the plan to associate the user with (if applicable). |
| method | Number | β Yes | Indicates how the user is added to the community (1 = Invite, 2 = Direct). |
| Value | Description |
|---|---|
| 1 | An invite is sent to the userβs email. |
| 2 | Directly adds the user to the community with an optional password + An email with credentials is sent to the added User. |
{
"error": false,
"message": "Operation completed successfully"
}
{
"data": {
"email": "example3@yopmail.com",
"inviteId": "68874e4e81110b2a6ca6b54a",
"timeStamp": 1753697870638
},
"error": false,
"message": "Operation completed successfully"
}
interface RegisterExternalUserResponse {
error: boolean;
message: string;
}
interface RegisterExternalUserInviteResponse {
data: {
email: string;
inviteId: string;
timeStamp: number;
};
error: boolean;
message: string;
}
| Field | Type | Description |
|---|---|---|
| error | Boolean | Indicates if the operation was successful or failed. |
| message | String | Descriptive message for the API outcome. |
| data.email | String | Email to which the invite was sent (only in method = 1). |
| data.inviteId | String | Unique ID representing the invite created. |
| data.timeStamp | Number | Timestamp when the invite was generated. |
x-api-key authorized for community owner operations.planId is not applicable, you may skip it or pass it as undefined.method field governs how the user is treated post-registration.method = 2 with caution, especially if setting a default password.curl --location 'https://backend.networked.co/api/v1/admin/community/addExternalUsers' \
--header 'x-api-key: <your-api-key>' \
--data-urlencode 'email=example9@yopmail.com' \
--data-urlencode 'name=Example User 9' \
--data-urlencode 'password=Aa1235678@' \
--data-urlencode 'roleId=69baa36beddb9f0012fdf102' \
--data-urlencode 'method=1'{
"data": {
"email": "example3@yopmail.com",
"inviteId": "68874e4e81110b2a6ca6b54a",
"timeStamp": 1753697870638
},
"error": false,
"message": "Operation completed successfully"
}