Skip to content

Confirm a contact method with the code sent to it.

POST
/user/{user_id}/contact_method/{contact_method_id}/verification/confirm
curl --request POST \
--url https://api.siteqwality.com/user/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/contact_method/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/verification/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'
user_id
required
string format: uuid

User identifier

contact_method_id
required
string format: uuid

Contact method identifier

Media type application/json
object
code
required
string
Example generated
{
"code": "example"
}

Verified. Default high and low rules are added for urgencies the user has none for.

Media type application/json
object
id
required
string format: uuid
user_id
required
string format: uuid
type
required
string
Allowed values: email sms phone_call slack_dm mobile_push
details
required

Stored details with a Slack DM token masked.

verified
required
boolean
created_at
required
string format: date-time
integration_id

A Slack DM linked from /oncall sends through this Slack integration; no token is stored.

string | null format: uuid
linked_via

The linked Slack integration’s name, while it is connected.

string | null
Example
{
"type": "email"
}

Wrong code (code_invalid)

Missing or invalid authentication

Only the user or an admin may change a user’s contact methods

Contact method not found

Too many wrong codes (code_locked), or no unexpired code was sent (verification_not_pending)

Internal server error