Prismy Public API
The Public API provides access to Prismy’s translation engine and glossary management features.Generate Translations API
Generate AI-powered translations for your text content using Prismy’s translation engine.Endpoint
Authentication
This endpoint requires API token authentication. You need to:- Generate an API token from your organization settings in the Prismy dashboard
- Include the token in the
Authorization
header of your requests
Headers
Header | Value | Description |
---|---|---|
Authorization | Bearer {your-api-token} | Your organization’s API token |
Content-Type | application/json | Required for JSON request body |
Request Body
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
targetLanguage | string | ✅ | - | The language code to translate to (e.g., “fr-FR”, “es-ES”, “de-DE”) |
sourceLanguage | string | ✅ | - | The language code of the source text (e.g., “en-US”, “fr-FR”, “es-ES”) |
textsToTranslate | string[] | ✅ | - | Array of text strings to translate |
useOrgDescription | boolean | ❌ | true | Use organization description for context |
useGlossary | boolean | ❌ | true | Use organization glossary for consistent terminology |
useSimilarity | boolean | ❌ | true | Use similarity matching for better translations |
useCustomInstructions | boolean | ❌ | true | Use custom translation instructions |
instructionsSource | string | ❌ | "github" | Source of custom instructions |
instructionsBundle | string | ❌ | "" | Bundle name for instructions |
instructionsRepository | string | ❌ | "" | Repository name for instructions |
additionalInstructions | string | ❌ | "" | Additional custom instructions |
Example Request
Request Body Only
Response
Success Response (200)
Returns an array of translated strings in the same order as the input:Error Responses
Rate Limited (429)
Features
Organization Description
WhenuseOrgDescription
is enabled, the translation engine uses your organization’s description to provide better context and maintain brand consistency.
Glossary Integration
WhenuseGlossary
is enabled, the system automatically extracts terms from your source texts and applies consistent translations based on your organization’s glossary.
Similarity Learning
WhenuseSimilarity
is enabled, the system leverages previously translated similar content to improve translation quality and consistency.
Custom Instructions
WhenuseCustomInstructions
is enabled, you can specify:
- Instructions Source: Where to pull instructions from (e.g., “github”)
- Repository: Specific repository for instructions
- Bundle: Specific bundle/project within the repository
- Additional Instructions: Extra context or requirements for the translation
Glossary Public API
Overview
The Glossary API provides access to translation glossary terms and their descriptions.Endpoint
Authentication
This endpoint requires API token authentication. You need to:- Generate an API token from your organization settings in the Prismy dashboard
- Include the token in the
Authorization
header of your requests
Headers
Header | Value | Required | Description |
---|---|---|---|
Content-Type | application/json | Yes | Required content type |
Authorization | Bearer {your-api-token} | Yes | Your organization’s API token |
Example Request
Response
Success Response (200)
The API returns a JSON array of glossary terms, where each term contains:- glossarytermsrowid: Unique identifier for the glossary term row
- description: Optional description of the term
- terms: Object containing translations for different languages
Response Fields
Field | Type | Description | |
---|---|---|---|
glossarytermsrowid | integer | Unique identifier for the glossary term row | |
description | string | null | Optional description of the term |
terms | object | Object containing translations for different languages |
Terms Object Structure
Each language in theterms
object contains:
Field | Type | Description |
---|---|---|
glossaryTermID | integer | Unique identifier for the specific term |
value | string | The translated term value |