/config/{app}/flows/{flow}/locales/{locale}

This endpoint includes the following methods:

  • GET

GET

Description

Returns the translation values for a locale.

Authentication

This endpoint supports Basic authentication. 

How to Create an Authentication String

Base URL

The base URL for this endpoint is your Janrain Configuration API domain followed by /config/ followed by your application ID. For example, if you are in the US region and your application ID is htb8fuhxnf8e38jrzub3c7pfrr, then your base URL would be:


https://v1.api.us.janrain.com/config/htb8fuhxnf8e38jrzub3c7pfrr

Allowed regions are:

  • us 
  • eu 
  • au 
  • sa 
  • cn
  • sg

URI Parameters

Parameter Type Required Description
locale string Yes ISO language code for the locale. For example:
 
en-US

Sample Request (curl)

This command returns information about the US English locale (en-US) associated with the documentation flow:


curl -X GET \
  https://v1.api.us.janrain.com/config/htb8fuhxnf8e38jrzub3c7pfrr/flows/documentation/locales/en-US \
  -H 'Authorization: Basic aW1fYV...NfbXk=' 


      Running this command in Postman

Responses

200 OK

Response Example (application/json)


{
    "1ab1f15d-2555-49af-bd88-cf984ad40a13": "Come se scrive?",
    "a8670648-f9f7-4c0b-92cd-e477fe67b617": "Come se dice.",
    "991a5781-cbe1-4770-bbf1-395168a11d59": "Olio di gomito."
}
                                                            

404 Not Found

Locale could not be found. Please check the value and try again.

Response Example (application/json)


{
  "errors": "Flow not found."
}