Translation Widgets
List, retrieve, and create translation widget configurations through the Ours Privacy REST API.
List, retrieve, and create translation widget configurations. A translation widget is the on-site language selector that translates your website into a visitor's language; each configuration holds the domains it runs on, its button and modal appearance, the languages it offers, and the terms it never translates.
Use the id from a widget to install it or to query Translation Widget Analytics.
GET/rest/v1/translation-widgets
Authorization
apiKey Ours Privacy API key
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/rest/v1/translation-widgets"{ "entities": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "createdAt": "2026-04-30T18:42:11.219Z", "updatedAt": "string", "whitelistedDomains": [ "www.example.com" ], "position": "bottom-right", "theme": "light", "brandColor": "string", "widgetVariant": "compact", "modalVariant": "standard", "customDomain": "string", "noTranslateTerms": [ "string" ], "enabledLanguages": [ "en", "es", "fr" ] } ]}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}POST/rest/v1/translation-widgets
Authorization
apiKey Ours Privacy API key
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/rest/v1/translation-widgets" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "createdAt": "2026-04-30T18:42:11.219Z", "updatedAt": "string", "whitelistedDomains": [ "www.example.com" ], "position": "bottom-right", "theme": "light", "brandColor": "string", "widgetVariant": "compact", "modalVariant": "standard", "customDomain": "string", "noTranslateTerms": [ "string" ], "enabledLanguages": [ "en", "es", "fr" ]}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}GET/rest/v1/translation-widgets/{id}
Authorization
apiKey Ours Privacy API key
In: header
Path Parameters
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/rest/v1/translation-widgets/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "createdAt": "2026-04-30T18:42:11.219Z", "updatedAt": "string", "whitelistedDomains": [ "www.example.com" ], "position": "bottom-right", "theme": "light", "brandColor": "string", "widgetVariant": "compact", "modalVariant": "standard", "customDomain": "string", "noTranslateTerms": [ "string" ], "enabledLanguages": [ "en", "es", "fr" ]}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}{ "error": "string", "details": "string"}How is this guide?

