Skip to content
OpenTrain AIOpenTrain AIOpenTrain AIDocs

Ask OpenTrain

Answers from the documentation, with sources.

What would you like to do with OpenTrain?

AI answers can be mistaken. Check the linked sources. Don’t include private account information.

Open app

DEVELOPER DOCUMENTATION

Get Current Install

Retrieve the install your platform token is scoped to: status, granted scopes, PII consent, and the platform app it belongs to.

GET/api/partner/v1/installs/current

Returns the install the calling token belongs to. Use it as a connectivity check after the customer pastes in their token, and to confirm which scopes and PII consent you actually hold before relying on them.

Requirements: any valid platform token — no specific scope. (Like every Platform API call, it still requires a live token, an ACTIVE install, an ACTIVE platform app, and the annotation-platform feature on the granting employer.)

No parameters.

installobject

The current install.

Install fields
idstring

Install ID. Also delivered as opentrain_install_id on the consent return redirect.

statusstring

ACTIVE or REVOKED. A revoked install’s tokens stop authenticating, so in practice you only ever see ACTIVE here.

scopesstring[]

The scopes the customer granted — see the scope table.

organizationIdstring | null

The granting employer’s organization ID.

createdAtstring

ISO 8601 timestamp of the grant.

partnerAppobject

Your app: {id, slug, name}.

tokenobject

The token used for this request: {id, name, scopes}.

StatuscodeMeaning
401UNAUTHORIZEDMissing, invalid, or revoked token
403FORBIDDENInstall or platform app no longer active, or annotation-platform feature disabled for the granting employer