---
schema_version: "1"
id: 1a34199c0e93629bbe8b2cd075410d558dc2ccdc52440ad3aeaeba434551b8e6
title: Get Insurance Policy Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/actions_obj_get_insurance_policy.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/actions_obj_get_insurance_policy.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e061773e89e3d607a812431b1a3f8eced1734a1b7d2ea7ced9d4f931356b4dbf
description: Get the details of an insurance policy.
---
# Get Insurance Policy Action

Get the details of an insurance policy.

This action is available in API version 63.0 and later.

## Supported REST HTTP Methods

**URI**: /services/data/vXX.X/actions/standard/getInsurancePolicy

Where XX.X is the latest API version.

**Formats**: JSON

**HTTP Methods**: POST

**Authentication**: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

## Inputs

<table class="featureTable sort_table" summary="">


          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d461268e96">Input</th>

              <th class="featureTableHeader  " id="d461268e99">Details</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d461268e96" data-title="Input"><samp class="codeph nolang">insurancePolicyId</samp></td>

              <td class="entry" headers="d461268e99" data-title="Details">
                <strong class="ph b">Type</strong>
                <p class="p">String</p>
                <p class="p"><strong class="ph b">Description</strong></p>
                <p class="p">ID of the insurance policy
                  to be retrieved.</p>
              </td>

            </tr>

          </tbody>

        </table>

## Outputs

<table class="featureTable sort_table" summary="">


          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d461268e145">Output</th>

              <th class="featureTableHeader  " id="d461268e148">Details</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d461268e145" data-title="Output"><samp class="codeph nolang">contextId</samp></td>

              <td class="entry" headers="d461268e148" data-title="Details">
                <strong class="ph b">Type</strong>
                <p class="p">String</p>
                <strong class="ph b">Description</strong>
                <p class="p">Context ID of the retrieved
                  insurance policy.</p>
              </td>

            </tr>

          </tbody>

        </table>

## Example

Sample Request

{
"inputs": \[
       {
           "policyId": "0YTxx00000001H3GAI"
       }
   \]
}

Sample Response

\[
  {
    "actionName": "getInsurancePolicy",
    "errors": null,
    "invocationId": null,
    "isSuccess": true,
    "outcome": null,
    "outputValues": {
      "contextId": "0000000i18tq18g00291753332964253e35d47202c0c428785435cdfa2f44ae8"
    },
    "sortOrder": -1,
    "version": 1
  }
\]