Skip to Content
OhMyGPT
Clients

Get app remote configuration

GET
/v1/clients/{client}/config

Returns the remote configuration that one of OhMyGPT's own apps reads at launch: the oldest version that may still run, the version to suggest updating to, mirror addresses, and feature switches. Responses are cached for five minutes.

Path Parameters

client*string

The app. ios-console is the iOS app OhMyGPT API Console.

Response Body

Successful response

application/json
  1. response
features*

Switches for features that are not on by default, keyed by feature name.

minimumVersion*string

Versions below this one must update before the app can be used.

Match^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
mirrors*

Interchangeable addresses for each service, in order of preference. The first one is the default. Apps measure latency and use the fastest one that answers.

notice*

An announcement to show in the app. Null when there is none.

recommendedVersion*string

Versions below this one are offered an update that the user can dismiss.

Match^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
regions*

The network route each mirror takes, keyed by mirror URL.

storeUrl*string

The app's App Store page. Null until the app is listed.

Formaturi
updateMessage*

Text keyed by language tag, such as en and zh-Hans.

Example Request
curl -X GET 'https://api.ohmygpt.com/v1/clients/string/config'
Example Response
{  "features": {    "property1": true,    "property2": true  },  "minimumVersion": "string",  "mirrors": {    "attachment": [      "http://example.com"    ],    "backend": [      "http://example.com"    ],    "chat": [      "http://example.com"    ],    "chatSite": [      "http://example.com"    ],    "consoleSite": [      "http://example.com"    ]  },  "notice": {    "property1": "string",    "property2": "string"  },  "recommendedVersion": "string",  "regions": {    "property1": "us",    "property2": "us"  },  "storeUrl": "http://example.com",  "updateMessage": {    "property1": "string",    "property2": "string"  }}

Was this page helpful?

Still stuck? Live chat · [email protected] · Telegram group