Skip to content

Identify this instance

GET
/instance
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/instance

Public document an app reads before anyone signs in: it marks the address as a Chelsea instance, names the organization it belongs to, says whether setup is complete, and gives the API major version, the oldest app version per platform and the sign-in issuer and resource. No auth; rate limited by address. The answer may be reused for 60 seconds (Cache-Control: public, max-age=60). It carries neither the server version nor the sign-in methods.

The instance document.

Media typeapplication/json
object
data
required

Identifies an address as a Chelsea instance and says whose it is, whether it is set up, which API it speaks and where to sign in. Carries neither the server version nor the sign-in methods.

object
api
required
object
minimumClientVersion
required

Oldest app version the server serves, keyed by platform. The object may gain keys, so a client reads only the key for its own platform.

object
android

Oldest Android app version the server serves, as a dotted version number. A server from before the Android app omits it, and that server cannot sign the app in.

string
cli

Oldest command-line tool version the server serves, as a dotted version number. A server from before the command-line tool omits it, and that server cannot sign it in.

string
desktop
required

Oldest desktop app version the server serves, as a dotted version number.

string
extension

Oldest browser extension version the server serves, as a dotted version number. A server from before the extension signed in through the browser omits it, and that server cannot sign it in.

string
ios

Oldest iPhone app version the server serves, as a dotted version number. A server from before the iPhone app omits it, and that server cannot sign the app in.

string
version
required

Major version of the REST API, the number in the path (/api/v1 is 1). Not the version of the server.

integer
>= -9007199254740991 <= 9007199254740991
audience

team on the instance’s own address, clients on a client portal domain, which serves only the client portal. Absent on a server older than this field; an app reads that as team.

string
Allowed values: team clients
auth
required
object
issuer
required

The sign-in issuer of this instance. It can differ from the address the document was fetched from when the instance has more than one address; an app compares the iss it later receives with this value.

string
resource
required

The REST API resource a token for this instance is issued for. Shares its origin with issuer.

string
logoUrl
required

Signed URL of the organization’s logo, stable for a window of time so a client can cache the image; null when it has none.

string | null
name
required

The organization’s name, the way its sign-in pages show it.

string
product
required

Always chelsea. An app checks it before it trusts anything else in the document.

string
Allowed value: chelsea
status
required

ready once the first person has been created, not_set_up before. An app that reads a value it does not know treats the instance as not ready.

string
Allowed values: ready not_set_up

Example

{
"data": {
"audience": "team",
"product": "chelsea",
"status": "ready"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.