Onramp

Submit onramp verification

Changed on

Submits 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.

post/v2/onramp/verifications/{verificationId}/submit

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

verificationId, string required

A unique identifier for an onramp verification record, in the format onramp_verification_<uuid>.

Example:onramp_verification_a1b2c3d4-e5f6-7890-abcd-ef1234567890

The verification ID returned by the Initiate Onramp Verification endpoint.

Headers

X-Idempotency-Key, string

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

SubmitOnrampVerificationRequest required

Request body for submitting an OTP code to complete an onramp verification.

otpCode, string required

The 6-digit OTP code the user received.

Example request

{
  "otpCode": "123456"
}

Response

Successfully completed onramp verification.

OnrampVerificationConfirmation required

The result of successfully submitting an onramp OTP verification.

verificationId, string required

The same verification ID. Store on the user's device and pass to the Create Onramp Order endpoint. Valid for 60 days.

verificationExpiresAt, string date-time required

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_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    4 more changes in this revision