# Retrieve a VerificationSession

Retrieves the details of a VerificationSession that was previously created.

When the session status is `requires_input`, you can use this method to retrieve a valid `client_secret` or `url` to allow re-submission.

## Prerequisites

Before you can run the following code snippet, you need to call these APIs with the provided parameters to set up the prerequisite API object(s).

1. createIdentityVerificationSession
POST /v1/identity/verification_sessions {"type":"document"}

## Request

```java
StripeClient client = new StripeClient("<<YOUR_SECRET_KEY>>");

VerificationSessionRetrieveParams params =
  VerificationSessionRetrieveParams.builder().build();

VerificationSession verificationSession =
  client.v1().identity().verificationSessions().retrieve(
    "{{VERIFICATION_SESSION_ID}}",
    params
  );
```

### Response

```json
{
  "id": "vs_1NuNAILkdIwHu7ixh7OtGMLw",
  "object": "identity.verification_session",
  "client_secret": "...",
  "created": 1695680526,
  "last_error": null,
  "last_verification_report": null,
  "livemode": false,
  "metadata": {},
  "options": {
    "document": {
      "require_matching_selfie": true
    }
  },
  "redaction": null,
  "status": "requires_input",
  "type": "document",
  "url": "..."
}
```

## Parameters

- `id` (string, required)
  Unique identifier for the object.

## Returns

Returns a VerificationSession object
