Submit onramp verification
Changed onSubmits the OTP code to complete verification. On success, marks the verification as verified and returns the same verificationId. The destination does not need to be re-sent. Onramp uses the value captured at initiation time.
The returned verificationId should be stored on the user's device and passed to the Create Onramp Order endpoint. It is valid for 60 days.
Access to this API requires allowlisting. During Onramp Headless API onboarding, contact the Onramp team to enable Onramp-managed verification for your application.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP bearer
Path parameters
A unique identifier for an onramp verification record, in the format onramp_verification_<uuid>.
The verification ID returned by the Initiate Onramp Verification endpoint.
Headers
An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.
Request body
Request body for submitting an OTP code to complete an onramp verification.
The 6-digit OTP code the user received.
Example request
{
"otpCode": "123456"
}Response
Successfully completed onramp verification.
The result of successfully submitting an onramp OTP verification.
The same verification ID. Store on the user's device and pass to the Create Onramp Order endpoint. Valid for 60 days.
The date and time when this verification expires for order placement.
Example response
{
"verificationId": "onramp_verification_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"verificationExpiresAt": "2025-06-23T00:00:00Z"
}Changes
- warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status
4 more changes in this revision
- warning