Skip to content
Status

Get a string

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

GET
/strings/{string_id}

Returns one string with the wording that currently applies for the language requested. An id that does not exist returns 200 with no string field.

string_id
required
string

The string’s id, e.g. web.payment_form.card_number.

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.

The string

Media typeapplication/json
object
string
object

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

object
id
string
e.g. "web.payment_form.card_number"

String id, <set>.<key>

text
string
e.g. "رقم البطاقة"

The wording that currently applies

language
string
e.g. "ar"

Language the wording applies to

branding
string

Enterprise field. The branding the wording applies to

overriding
string
e.g. "Card Number"

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

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?