get_code_sample
Retrieve ready-to-use AgeKey code samples for redirect or callback flows in TypeScript, Python, Go, Java, or Rust, optionally pre-filled with your app credentials.
Instructions
Get integration code samples for AgeKey in various languages. Optionally pre-fill with your app credentials.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"flow": "<flow>",
"step": "<step>",
"language": "<language>"
},
"name": "get_code_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | 'use' for age verification, 'create' for storing verification | |
| step | Yes | 'redirect' for initiating the flow, 'callback' for handling the response | |
| appId | No | Optional application ID to pre-fill in the code sample | |
| language | Yes | Programming language for the code sample |