/langs endpoint returns all available languages that can be used in your verification sessions.
Supported languages
Language object
Get supported languages
GET /langs
Returns a list of all languages supported by FaceSign. Use these language codes when creating sessions to specify which languages should be available to users.
- cURL
- JavaScript
- Python
Request
Response
Using languages in sessions
Basic language configuration
When creating a session, you can specify which languages should be available and set a default language:Configure session languages
Best practices
FaceSign provides an endpoint to fetch the list of currently supported languages. It is recommended to retrieve this list from the API and store it locally — for example, in your database or an in-memory cache. To keep your local list up to date, listen for thesettings.langs webhook event, which notifies your application of any changes to the supported languages. When this event is received, fetch the updated languages list from the API and update your local storage.
This approach ensures your application always has the most current set of available languages, minimizing API calls and keeping your user experience consistent even as available languages change.
Next steps
Sessions
Use languages in sessions
Avatars
Multi-language avatars
Customization
Customize UI text