/access/useVerificationCode

Uses a verification code to set a time field to the current time. Any particular verification code can only be used once. This is often used for items like email verification.

This endpoint supports the following methods:

  • GET

GET

Base URL

The base URL for this endpoint is your Janrain Capture domain; for example:

https://educationcenter.us-dev.janraincapture.com

Your Capture domains (also known as Registration domains) can be found in the Janrain Console on the Manage Application page:

Examples

Example Request


curl --data-urlencode verification_code=12345678912345678912345678912345 \
   https://my-app.janraincapture.com/access/useVerificationCode
                                                   

Running Code Samples Using Postman

The Janrain REST API code samples are written using Curl, but they can easily be run from within Postman. To use one of our code samples in Postman:

  1. Click the Copy to Clipboard button located directly beneath the code sample
  2. In Postman, click Import to display the Import dialog box.
  3. In the Import dialog box, click Paste Raw Text, and then paste in the copied code. The Import dialog box should look similar to this:

  4. Click Import, and the Curl command will be converted to a format that can be run from within Postman. All you need to do now is configure the command to work with your Janrain implementation.

Authorized Clients

no-auth-required

Security

  •  janrain-signed
  •  basic-auth

Query Parameters

Parameter Type Required Description
verification_code string Yes Verification code obtained in a prior call to the access/getVerificationCode endpoint.
 

Responses

200 OK

Example Error Response


{
    "argument_name": "verification_code",
    "request_id": "fvdfxwpxew2qe76p",
    "code": 200,
    "error_description": "verification code not recognized",
    "error": "invalid_argument",
    "stat": "error"
}
                                                   

Response Example (application/json)


{
  "stat": "ok",
  "uuid": "7d19b6f2-bba2-48ba-9442-19d396427d77"
}