Skip to Content
Xeonr Developer Docs

Resolve resource integrations

POST
/uplim.api.v1.IntegrationsService/ResolveResourceIntegrations

Resolves renderer and open-with options for an upload or folder by matching against integration content types, or for the bucket itself when no target is given. integration_id makes one installed integration the renderer for the call (its archive, its tokens) without recording a default; at bucket scope that is its bucket-scoped renderer. An integration that is not installed on the bucket, or has no renderer for the target, is refused with FailedPrecondition.

Required scopes: upl:bucket:read

Authorization

OAuth2 upl:bucket:read
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:bucket:read

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketRef?|&|
integrationId?|

Makes this integration the resolved renderer for this call only: the response's renderer, renderer_integration and both access tokens are for its archive and its client. No default is recorded (SetDefaultOpenWith does that), and open_with, default_application and default_unset are as without it.

With a target, the renderer is the integration's highest-priority content type that matches the resource and has a renderer. With no target (the bucket itself), it is the integration's bucket-scoped renderer: the bucket type's when the integration is this bucket's type, otherwise the first of its bucket types with a renderer; the integration access token then reaches the whole bucket, as a bucket type renderer's does.

The integration must be installed on the bucket (an active installation), be the bucket's own type or the target's owning integration, or be the system Default; otherwise FailedPrecondition. FailedPrecondition too when it has no renderer for the target, or none at bucket scope.

Formatuuid
folderRef?|&|

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.IntegrationsService/ResolveResourceIntegrations" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "rendererIntegration": "map[integrationId:6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f mode:INTEGRATION_MODE_APPLICATION name:Markdown Studio slug:markdown-studio]",
  "renderer": "map[archiveUploadId:4d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a0f enabled:true entryPath:index.html]",
  "openWith": [
    "map[bestMatch:true contentType:map[displayLabel:Markdown document id:9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d name:markdown openWith:map[callbackUrl:https://markdown.example.com/open enabled:true]] enabledForUser:true integration:map[integrationId:6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f mode:INTEGRATION_MODE_APPLICATION name:Markdown Studio slug:markdown-studio] launchUrl:https://markdown.example.com/open?upl_open_with_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJleGFtcGxlIn0.c2lnbmF0dXJlLXBsYWNlaG9sZGVy]"
  ],
  "rendererAccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJleGFtcGxlIn0.c2lnbmF0dXJlLXBsYWNlaG9sZGVy",
  "rendererAccessTokenExpiresAt": "2026-10-22T10:30:00Z",
  "integrationAccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJleGFtcGxlIn0.c2lnbmF0dXJlLXBsYWNlaG9sZGVy",
  "integrationAccessTokenExpiresAt": "2026-10-22T10:30:00Z",
  "defaultApplication": "map[bestMatch:true contentType:map[displayLabel:Markdown document id:9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d name:markdown openWith:map[callbackUrl:https://markdown.example.com/open enabled:true]] enabledForUser:true integration:map[integrationId:6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f mode:INTEGRATION_MODE_APPLICATION name:Markdown Studio slug:markdown-studio] launchUrl:https://markdown.example.com/open?upl_open_with_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJleGFtcGxlIn0.c2lnbmF0dXJlLXBsYWNlaG9sZGVy]",
  "defaultUnset": "false",
  "rendererContentTypeId": "9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
}