# getTransparenceSanteBeneficiaryLinks

**Identifier:** `transparencesante_getTransparenceSanteBeneficiaryLinks`

**Provider:** [TransparenceSante](https://kirha.com/providers/transparencesante.md)

Get all declared links of interest for one French beneficiary (by beneficiaryId or RPPS) in Transparence Santé: amounts per company, year and link type (benefit, agreement, remuneration), plus the latest declarations with purpose, event and linked agreement. Use for KOL profiling and conflict-of-interest checks.

## Run it with the CLI

```bash
kirha tools run transparencesante_getTransparenceSanteBeneficiaryLinks \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "transparencesante_getTransparenceSanteBeneficiaryLinks",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "beneficiaryId": {
      "description": "From searchTransparenceSanteBeneficiaries",
      "pattern": "^\\d+$",
      "type": "string"
    },
    "rpps": {
      "description": "11-digit RPPS number",
      "pattern": "^\\d{11}$",
      "type": "string"
    },
    "year": {
      "description": "Declaration year",
      "maximum": 2100,
      "minimum": 2012,
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "beneficiaryId": {
      "type": "string"
    },
    "byCompanyAndYear": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "type": "number"
          },
          "companyName": {
            "type": "string"
          },
          "declarations": {
            "type": "number"
          },
          "linkType": {
            "type": "string"
          },
          "siren": {
            "type": "string"
          },
          "year": {
            "type": "number"
          }
        },
        "required": [
          "companyName",
          "linkType",
          "declarations",
          "amount"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "category": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "currency": {
      "const": "eur",
      "type": "string"
    },
    "fullName": {
      "type": "string"
    },
    "identifier": {
      "type": "string"
    },
    "identifierType": {
      "type": "string"
    },
    "latestDeclarations": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "type": "number"
          },
          "companyName": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "declarationId": {
            "type": "string"
          },
          "endDate": {
            "type": "string"
          },
          "eventInfo": {
            "type": "string"
          },
          "linkType": {
            "type": "string"
          },
          "linkedAgreement": {
            "description": "Reference of the agreement this payment was made under",
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "siren": {
            "type": "string"
          },
          "startDate": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "profession": {
      "type": "string"
    },
    "rpps": {
      "type": "string"
    },
    "sirens": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "workplace": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "currency",
    "byCompanyAndYear",
    "latestDeclarations",
    "sirens"
  ],
  "type": "object"
}
```

## Related tools

Other TransparenceSante tools that this tool refers to, or that refer to it.

- [`searchTransparenceSanteBeneficiaries`](https://kirha.com/providers/transparencesante/searchTransparenceSanteBeneficiaries.md)

-----

[All TransparenceSante tools](https://kirha.com/providers/transparencesante.md) · [< Back to tools list](https://kirha.com/tools.md)