Skip to main content

Verify verification code by ID

POST 
/verifications/:verification_id/actions/verify

Verify verification code by ID

Request

Path Parameters

    verification_id uuidrequired

    The identifier of the verification to retrieve.

Body

required

    code string

    This is the code the user submits for verification.

    status string

    Possible values: [accepted, rejected]

    Identifies if the verification code has been accepted or rejected. Only permitted if custom_code was used for the verification.

Responses

200: Expected verify response to a valid request.

400: Bad Request

Request samples


curl -L 'https://api.telnyx.com/v2/verifications/:verification_id/actions/verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"code": "17686",
"status": "accepted"
}'

Response samples


{
"data": {
"phone_number": "+13035551234",
"response_code": "accepted"
}
}