Textarea value from api

Hello devs, how can I make it happen I get the textarea populated with value from an api resource?
Textarea::make('public-key')
  ->live()
 ->default(function (Get $get) {
    if ($get('credential_id') !== null) {
        ...
        return $client?->getSshKeys()?->first()['public_key'];
    }
})

The textarea does not populate with the returned value.
Was this page helpful?