Contact Channels
Create a contact channel
Changed onAdd a new contact channel for a user.
post/contact-channels
Request
- Base URLhttps://api.hexclave.com/api/v1
- URLhttps://api.hexclave.com/api/v1/contact-channels
- Authnone declared
Query parameters
user_idstring
The ID of the user, or the special value me for the currently authenticated user
Example:3241a285-8329-4d69-8f3d-316e08cf140c
contact_channel_idstring
Request body
Example request
{
"is_verified": true,
"user_id": "3241a285-8329-4d69-8f3d-316e08cf140c",
"value": "johndoe@example.com",
"type": "email",
"used_for_auth": true,
"is_primary": true
}Response
Successful response
Example response
{
"user_id": "3241a285-8329-4d69-8f3d-316e08cf140c",
"id": "b3d396b8-c574-4c80-97b3-50031675ceb2",
"value": "johndoe@example.com",
"type": "email",
"used_for_auth": true,
"is_verified": true,
"is_primary": true
}Changes
- breaking
request property
was restricted to a list of enum values - warning
added the new
emailenum value to theresponse property for the response status - info
added the new
emailenum value to the request property
- breaking