---
updatedAt: 2026-07-29T13:29:15.000Z
agentTools:
  projectIndex: https://docs.striga.com/llms.txt
---

# Confirm Consent (UI)

Confirm the user's request to view sensitive PAN/PCI data, with an SMS or E-Mail OTP and a challengeId

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "striga-v1",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://www.sandbox.striga.com/api/v1"
    }
  ],
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "paths": {
    "/card/confirm-consent": {
      "post": {
        "summary": "Confirm Consent (UI)",
        "description": "Confirm the user's request to view sensitive PAN/PCI data, with an SMS or E-Mail OTP and a challengeId",
        "operationId": "confirm-consent-ui",
        "parameters": [
          {
            "name": "api-key",
            "in": "header",
            "description": "api-key is available on the dashboard",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "description": "The Id of the user for which to confirm the consent request"
                  },
                  "challengeId": {
                    "type": "string",
                    "description": "The challengeId which was received when initiating the consent flow"
                  },
                  "verificationCode": {
                    "type": "string",
                    "description": "6 characters code. Default code for sandbox \"123456\".",
                    "default": "123456"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"cardAuthToken\": \"<cardAuthToken>\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "cardAuthToken": {
                      "type": "string",
                      "example": "<cardAuthToken>"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"Invalid fields\",\n    \"errorCode\": \"00002\",\n}"
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"USER_INACCESSIBLE\",\n    \"errorCode\": \"30043\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "USER_INACCESSIBLE"
                    },
                    "errorCode": {
                      "type": "string",
                      "example": "30043"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key",
        "x-default": "Your Striga API key"
      },
      "sec1": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-default": "Your HMAC Signature"
      }
    }
  }
}
```