Get your API Key
Login to your Perso Platform account and create an API Key.
1
List the Resources
You’ll need a valid Example response:Note the
tts_type (voice) name and model_style (avatar) name for the next step. Replace PersoPlatform-APIKey with your own API Key.Fetch the list of options your account is allowed to use:name values for the voice and avatar you want — use them when creating a context.2
Create a Context
A Example Response:Note:
context is the session template for your avatar agent. Replace PersoPlatform-APIKey with your own API Key.context_id is the public token you put on your website.context_id is the public token you put on your website.3
Get the Embed Snippet
Instead of building the HTML yourself, ask the Example response:Copy
embed endpoint for ready-to-paste code. Use the context’s id (the UUID from the previous step) in the path — not the context_id.iframe_snippet or script_snippet straight into your page.
