Connect data
Custom integrations
A custom integration pulls data from a REST API that has no built-in integration, such as an internal API or a tool Resplendent doesn’t support yet. You describe the request and how to read the response, and Resplendent handles the syncing. This page is the reference for the editor.
Custom integrations need the Staff or Admin role.
Open the editor
Section titled “Open the editor”- Open Settings → Custom Integrations.
- Click Add to start a new integration, or Edit on an existing one.
- Work through the four steps: Basics, Request, Endpoints and Sync. Use Next and Previous, or the step tabs.
- Click Save Integration, or Review and save on the last step.
The Setup guide panel beside the editor shows how many steps are ready and lists each step’s issues. Errors block saving; warnings are suggestions. On the Request step it also shows a request preview and a box for sample JSON, so you can check your response settings against a real reply.
To delete an integration, click Delete in the editor or the list. You can only delete it after every connection that uses it has been deleted.
Step 1: Basics
Section titled “Step 1: Basics”Integration Information
Section titled “Integration Information”| Field | What it’s for |
|---|---|
| Integration Name | The name people see when they create a connection |
| Description | Optional. What data this integration provides |
User Inputs
Section titled “User Inputs”User inputs are the fields someone fills in when they connect, such as an API key, account ID or base URL. Click Add Input for each one.
| Property | What it does |
|---|---|
| Input Name | The label shown when connecting |
| Type | Text, Number or Boolean |
| Default Value | Optional value filled in ahead of time |
| Placeholder | Optional hint text in the empty field |
| Secret (encrypted per connection) | Stores the value encrypted on each connection and leaves it out of template exports |
You can use an input’s value in the URL, headers, body and parameters with the User Input Value part.
Authentication
Section titled “Authentication”Choose an Auth Type:
| Auth Type | How it works |
|---|---|
| None | Adds no authentication. Use request headers if the API needs something else |
| Basic | Builds an HTTP Basic header from the inputs you pick for Username and Password |
| Bearer | Builds a Bearer token header from the input you pick for Bearer Token |
| Custom | Encrypts the input you pick for Secret Key without adding a header. Add it to a request header, URL parameter or body yourself as a User Input Value. Prefer headers, because URLs can be logged |
| Renewable bearer token | Gets a token with an HTTPS request you configure, and renews it by repeating the exchange or with a refresh token |
| OAuth 2.0 | Connects an account with the authorization code flow and PKCE, client credentials, or a supplied refresh token, and renews tokens automatically |
Renewable bearer token and OAuth 2.0
Section titled “Renewable bearer token and OAuth 2.0”Both types need Allowed API origins: one HTTPS origin per line. Tokens are only ever sent to these hosts. Mark every credential input Secret in User Inputs.
For a Renewable bearer token, configure the token request, then:
| Setting | What to enter |
|---|---|
| Path to access token | Where the token sits in the response |
| Expiry | Response lifetime in seconds, Response expiry timestamp or Explicit documented lifetime |
| Expiry response path | Where the expiry sits in the response, for the first two options |
| Expiry timestamp format | Unix seconds or ISO 8601 with timezone, for a response expiry timestamp |
| Lifetime (seconds) | The documented token lifetime, for an explicit lifetime |
| Renewal method | Repeat credential exchange or Use refresh token |
| Path to returned refresh token | With a refresh token, where it sits in the response |
| Initial refresh token input (optional) | A secret input that holds a starting refresh token, if the API doesn’t return one |
| Refresh request | With a refresh token, the request that renews it |
For OAuth 2.0:
| Setting | What to enter |
|---|---|
| OAuth flow | Connect account (authorization code with PKCE), Client credentials or Supplied refresh token |
| Token endpoint | The provider’s token URL |
| Authorization endpoint | For connect account, the provider’s sign-in URL |
| Authorization server identity (issuer URL) | For connect account, the provider’s issuer |
| Audience (optional) | An audience value, if the provider needs one |
| Client ID | The application’s public client ID, or pick a non-secret input in Or use a client ID connection input |
| Client authentication at token endpoint | Public client (no secret), Client secret in Basic header or Client secret in form body |
| Client secret input | A secret input that holds the client secret. Its value is entered only when connecting |
| Initial refresh token input | For a supplied refresh token, the secret input that holds it |
| Scopes | Space-separated scopes, such as read offline_access |
| Resource URLs (optional) | Resource indicators, one per line |
| Documented lifetime when expires_in is omitted (seconds) | A fallback token lifetime |
| Additional authorization and token parameters | Extra name and value pairs the provider asks for |
For connect account, the provider must publish OAuth or OpenID metadata, and the issuer and endpoints you enter must match it exactly. Providers without it can’t use connect account. Register the callback URI shown in the connection dialog on the provider’s application. When connecting, sign in with the provider and give consent, then click Save & Test. If the provider doesn’t issue a refresh token, turn on its offline access setting or reconnect when access expires.
Never paste secrets or sign-in codes into Eric or another chat.
Step 2: Request
Section titled “Step 2: Request”Shared Request Defaults
Section titled “Shared Request Defaults”The shared request is used for every endpoint unless the endpoint overrides it. Set the base URL here.
| Setting | What it does |
|---|---|
| Request Method | GET or POST |
| URL | Built from parts: static text, user inputs and Dataset values |
| Request options | Tabs for URL parameters, Headers and JSON body, each built from the same parts |
Each part is a Static Value, a User Input Value or a Dataset Value. Dataset values are filled in at sync time and include the Dataset name, selected columns, primary and sorting columns, page number and size, and the last update value.
Shared Response Defaults
Section titled “Shared Response Defaults”The shared response settings read the reply into rows unless an endpoint overrides them.
| Setting | What it does |
|---|---|
| Response Type | JSON. CSV isn’t supported; older integrations set to CSV must switch to JSON to save |
| Path to Tabular Data | The dot-separated path to the array of records, such as data.results |
| Flatten Values | Spreads nested objects in each row into their own columns |
| Flatten Depth | How many levels to flatten, from 1 to 10 |
Paste a sample reply into the sample JSON box in the Setup guide to check that your path finds the rows.
Step 3: Endpoints
Section titled “Step 3: Endpoints”Endpoints are the Datasets this integration offers. Under How endpoints are defined, choose one.
Discover via request
Section titled “Discover via request”The integration calls the API to get the list of Datasets when someone adds one. Turn on Prefill with shared base URL to start from the shared URL, then build the request and read its reply:
| Setting | What it does |
|---|---|
| Response Type | JSON |
| Path to Tabular Data | The path to the list of endpoints |
| Dataset Name/ID Path | The field that identifies each endpoint. Use $key when it’s the key of a key-value pair |
| Use Separate Label | Turn on when the display name differs from the ID |
| Path to Dataset Label | The readable name, when Use Separate Label is on |
These settings only read the endpoint list. When the integration fetches an endpoint’s data, it uses the shared response settings.
Static list
Section titled “Static list”Click Add endpoint for each Dataset.
| Setting | What it does |
|---|---|
| Dataset / Endpoint Name | The Dataset’s name |
| Use shared request | On: inherit the shared method, URL and options. Off: set a Request override for this endpoint |
| Use shared response | On: inherit the shared parsing. Off: set a Response override for this endpoint |
Connection test request
Section titled “Connection test request”Open Connection test request to set the request that checks a connection works when someone clicks Save & Test. By default it uses the shared request and response. Turn off Use shared request or Use shared response to give it its own.
Step 4: Sync
Section titled “Step 4: Sync”Turn on only the behaviors the API supports. Each one takes URL parameters, Headers and JSON body parts.
| Switch | What it does | Dataset values you can use |
|---|---|---|
| Supports Pagination | Walks paged replies. Set Max Page Size, then send the page, such as page = page number |
page_size, page_number |
| Supports Incremental Updates | Fetches only records changed since the last sync, such as since = last update value |
last_update_value, sorting_column |
| Uses Sorting | Keeps results in a stable order across pages and syncs, such as sort = column |
sorting_column, unique_key |
Connect and sync
Section titled “Connect and sync”Once saved, the integration appears as a card in Settings → Integrations.
- Click Connect on its card.
- Fill in the user inputs you defined, and a Connection Title.
- Click Save & Test.
- Click Sync Dataset and choose the endpoints to sync.
The synced data becomes ordinary Datasets you can use in widgets, Modified Datasets and Joined Datasets. Saving a template doesn’t connect an account or start a sync on its own.