> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# GET /v0/scan-proxy/ans-entries/by-party/:party

> Lookup ans entry by party

Lookup ans entry by party

OpenAPI

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --request GET \
  --url 'https://example.com/api/validator/v0/scan-proxy/ans-entries/by-party/{party}'
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import json
import requests

url = "https://example.com/api/validator/v0/scan-proxy/ans-entries/by-party/{party}"
response = requests.request("GET", url)

print(response.text)
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch('https://example.com/api/validator/v0/scan-proxy/ans-entries/by-party/{party}', {
  method: 'GET',
});

console.log(await response.text());
```

```php PHP theme={"theme":{"light":"github-light","dark":"github-dark"}}
<?php
$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => 'https://example.com/api/validator/v0/scan-proxy/ans-entries/by-party/{party}',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
]);

$response = curl_exec($curl);
echo $response;
```

```go Go theme={"theme":{"light":"github-light","dark":"github-dark"}}
package main

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

func main() {
  req, _ := http.NewRequest("GET", "https://example.com/api/validator/v0/scan-proxy/ans-entries/by-party/{party}", nil)
  response, _ := http.DefaultClient.Do(req)
  defer response.Body.Close()
  body, _ := io.ReadAll(response.Body)
  fmt.Println(string(body))
}
```

```java Java theme={"theme":{"light":"github-light","dark":"github-dark"}}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://example.com/api/validator/v0/scan-proxy/ans-entries/by-party/{party}"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
var response = HttpClient.newHttpClient().send(
    request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
require 'net/http'
require 'uri'

uri = URI('https://example.com/api/validator/v0/scan-proxy/ans-entries/by-party/{party}')
request = Net::HTTP::Get.new(uri)
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "entry": {
    "contract_id": "<string>",
    "user": "<string>",
    "name": "<string>",
    "url": "<string>",
    "description": "<string>",
    "expires_at": "2026-01-01T00:00:00Z"
  }
}
```

```json 404 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

## Path parameters

**party** `string` *required*

## Responses

### 200

ok

application/json

**entry** `AnsEntry` *required*

**child attributes**

**contract\_id** `string`

If present, Daml contract ID of template `Splice.Ans:AnsEntry`. If absent, this is a DSO-provided entry for either the DSO or an SV.

**user** `string` *required*

Owner party ID of this ANS entry.

**name** `string` *required*

The ANS entry name.

**url** `string` *required*

Either empty, or an http/https URL supplied by the `user`.

**description** `string` *required*

Arbitrary description text supplied by `user`; may be empty.

**expires\_at** `string (date-time)`

Time after which this ANS entry expires; if renewed, it will have a new `contract_id` and `expires_at`. If `null` or absent, does not expire; this is the case only for special entries provided by the DSO.

### 404

not found

application/json

**error** `string` *required*
