<turbo-stream action="update" target="wiki_card"><template>

<h1>REST API Link Storage Values Get Link Storage Values</h1>
<div class="trix-content"><p>Below you see an example of how to get a list of Link Storage values. Examples both in JSON and JSONAPI are provided.

</p>
<p>NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id and your own link storage id instead of "1".</p>
<p></p>
<p></p><h2>JSON:</h2>
<p></p>
<pre class="card">curl
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X GET
  https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values
</pre>
<p>The output for this example would be:</p>
<p></p>
<pre class="card">[
  {
    "id": "10",
    "key_1": "10000",
    "key_2": "00120000008igKE"
  },
   {
    "id": "11",
    "key_1": "20000",
    "key_2": "00120000009NSH1"
  },
   {
    "id": "12",
    "key_1": "30000",
    "key_2": "001D000001j9dnq"
  },
   {
    "id": "13",
    "key_1": "40000",
    "key_2": "0012000000bngWE1"
  },
   {
    "id": "14",
    "key_1": "50000",
    "key_2": "UYUYT87686876asda1"
  }
]
</pre>
<p></p>
<p></p><h2>JSONAPI:
</h2><p></p>
<p>Get list of Link Storage Values:</p>
<p></p><h2></h2><p></p>
<pre class="card">curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X GET
  https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values
</pre>
<p>The output for this example would be:</p>
<p></p>
<pre class="card">{
  "data": [
    {
      "id": "10",  
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "10000",
        "key_2": "00120000008igKE"
      }  
    },
    {
      "id": "11",
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "20000",
        "key_2": "00120000009NSH1"
      }
    },
    {
      "id": "12",
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "30000",
        "key_2": "001D000001j9dnq"
      }
    },
    {
      "id": "13",
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "40000",
        "key_2": "00120000008igKE"
      }
    },
    {
      "id": "14",
      "type": "cdb_link_storage_values",
      "attributes": {
        "key_1": "50000",
        "key_2": "UYUYT87686876asda"
      }
    }
  ]
}
</pre></div>
</template></turbo-stream>

