Create user profile
This API enables you to create a user profile within Fyno, which you can then use to send out notifications.<br/><br/>Before creating your first user profile, you should obtain the following values needed for authentication:<br/>- API Key<br/>- Workspace ID
Path parameters
Enter your workspace ID. You can obtain this value from the API Keys page within your Fyno account.
Specify the version for which you would like to manage the user profile.
Request body
Enter the distinct ID that you use to identify the user.
(Optional) Enter the full name of the user.
(Optional) Enter 1 to specify that the user is active and should receive notifications. Enter 0 to specify that the user in inactive and should not receive any notifications. If null, the default value is 1.
(Optional) Enter the timezone of the user. For a list of possible values, please <a href="https://content.fyno.io/docs/files/timezones.json" target="_blank">click here</a>.
Example request
{
"channel": {
"discord": "101XXXXXXXXXX7XXXXX",
"email": "abcde@fghi.com",
"inapp": [
{
"integration_id": "IXXXXXXX",
"token": "XXXXXXXX"
}
],
"push": [
{
"integration_id": "IXXXXXXX",
"token": "ExponentPushToken[XXXXX]"
}
],
"slack": "CXXXXXXXXXX",
"sms": "+919879XXXXXX",
"teams": "General",
"voice": "+919879XXXXXX",
"whatsapp": "+919879XXXXXX"
},
"distinct_id": "XXXXXXXX",
"name": "John Doe",
"timezone": "Asia/Kolkata"
}Response
Profile created successfully
Example response
{
"_message": "Profile created successfully",
"status": "ok"
}