> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://fern-docs.skyflow.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://fern-docs.skyflow.dev/_mcp/server.

# Get Record By ID

GET https://%7B%7Bvault_url_identifier%7D%7D.vault.skyflowapis.com/v1/vaults/{vaultID}/{tableName}/{ID}

Returns the specified record from a table.

Reference: https://fern-docs.skyflow.dev/api/data/records/get-record

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://%7B%7Bvault_url_identifier%7D%7D.vault.skyflowapis.com` (Production, default)
- `https://%7B%7Bvault_url_identifier%7D%7D.vault.skyflowapis-preview.com` (Sandbox)

## Request

### Path parameters

- `vaultID` (string, required) — ID of the vault.
- `tableName` (string, required) — Name of the table.
- `ID` (string, required) — `skyflow_id` of the record.

### Query parameters

- `redaction` (enum, optional, default: DEFAULT) — Redaction level to enforce for the returned record. Subject to policies assigned to the API caller.
  - Allowed values: `DEFAULT`, `MASKED`, `PLAIN_TEXT`, `REDACTED`
- `tokenization` (boolean, optional) — If `true`, this operation returns tokens for fields with tokenization enabled. Only applicable if `skyflow_id` values are specified.
- `fields` (list of string, optional) — Fields to return for the record, with one value per `fields` URL parameter. For example, `?fields=abc&fields=123`.If not specified, returns all fields.
- `downloadURL` (boolean, optional) — If `true`, returns download URLs for fields with a file data type. URLs are valid for 15 minutes. If virus scanning is enabled, only returns if the file is clean.

## Response

### 200

A successful response.

- `fields` (map from string to any, optional) — Fields and values for the record. For example, `{'field_1':'value_1', 'field_2':'value_2'}`.
- `tokens` (map from string to any, optional) — Fields and tokens for the record. For example, `{'field_1':'token_1', 'field_2':'token_2'}`.

## Errors

### 400 Bad Request Error

Returned when the request doesn't match the schema, such as not including required fields.

- `error` (ErrorResponseError, required)

### 401 Unauthorized Error

Returned when the request doesn't match the schema, such as not including required fields.

- `string`

### 404 Not Found Error

Returned when the resource doesn't exist.

- `error` (ErrorResponseError, required)

### 500 Internal Server Error

An unexpected error response.

- `error` (ErrorResponseError, required)

## Types

### ErrorResponseError

- `grpc_code` (integer, required) — gRPC status codes. See https://grpc.io/docs/guides/status-codes.
- `http_code` (integer, required) — HTTP status codes. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status.
- `http_status` (string, required) — HTTP status message.
- `message` (string, required)
- `details` (list of map from string to any, optional)

## Examples

**Response**

```json
{
  "fields": {
    "id_proof": "https://<aws-url>/f244fg04bgh876qemk6c3a32256e2k90/record_file/cd1d815aa09b4cbfbb803bd20349f202/c2d1debe468923c08f32470a9dh789f9/f1dbc55c-7c9b-495d-9a36-72bb2b619202/8fa99367cf58h5w296eaf15d6f42a4d237cbab65?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=<aws-credential>&X-Amz-Date=20230622T100910Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=<aws-signature>",
    "name": "Brook",
    "ssn": "167-45-7645"
  }
}
```

**SDK Code**

```python
import requests

url = "https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://{{vault_url_identifier}}.vault.skyflowapis.com/v1/vaults/d4410ea01d83473ca09a24c6b03096d4/persons/d4410ea0-1d83-473c-a09a-24c6b03096d4")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```