Skip to content
Status

List strings

GEThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/strings

GET
/strings

Returns every string that can be changed, with the wording that currently applies for the language requested.

Strings that have not been translated into the language return the wording they inherit, so listing a language you have not used yet returns the full set ready to translate. A string that has its own wording in this language carries overriding, the wording it would otherwise inherit.

This list does not take criteria, order or expand, and is not paginated: it always returns the complete set.

language
string
default "default"
e.g. "ar"

Lowercase two-letter ISO 639-1 language code (e.g. ar), or default for the base wording. Defaults to default.

branding
string

Enterprise field, for accounts with more than one branding. Leave out to use your own branding.

All strings for the language

Media typeapplication/json
object
strings
Array<object>

A customer-facing string and the wording that applies for one language

object
id
string

String id, <set>.<key>

text
string

The wording that currently applies

language
string

Language the wording applies to

branding
string

Enterprise field. The branding the wording applies to

overriding
string

Present only when the string has its own wording for this language. Holds the wording it would otherwise inherit, which is what it goes back to if reset

Example
{
"strings": [
{
"id": "web.payment_form.card_number",
"text": "رقم البطاقة",
"branding": "brd_123",
"language": "ar",
"overriding": "Card Number"
},
{
"id": "web.payment_processing.error",
"text": "There was a problem processing the payment.",
"branding": "brd_123",
"language": "ar"
}
]
}

Authentication required

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Example
{
"code": "UNAUTHORIZED",
"message": "Unauthorised"
}

Was this page helpful?