Skip to main content
The CredentialsResource on figranium.credentials lets you manage output credentials for the Figranium platform. Currently, the only supported provider is Baserow. You can create credentials, update their name or configuration, delete them, and browse Baserow metadata such as databases and tables.
Every method accepts an optional final RequestOptions argument with signal, timeoutMs, and headers. See Request options for details.

Methods

Fetch all stored credentials. Returns an array of Credential objects.
  • HTTP endpoint: GET /api/credentials
list-credentials.ts
Create a new credential. The CredentialInput shape requires a name, provider (currently only "baserow"), and a config object with baseUrl and token.
  • HTTP endpoint: POST /api/credentials
create-credential.ts
Update an existing credential’s name or configuration. Pass only the fields you want to change.
  • HTTP endpoint: PUT /api/credentials/:id
update-credential.ts
Remove a credential by ID. Returns an object with an ok field indicating success.
  • HTTP endpoint: DELETE /api/credentials/:id
delete-credential.ts
List the Baserow databases accessible through a credential. Each entry includes the database id, name, and workspaceName.
  • HTTP endpoint: GET /api/credentials/:id/proxy/baserow/databases
list-databases.ts
List the tables inside a Baserow database. Pass the credential ID and the database ID (from baserowDatabases).
  • HTTP endpoint: GET /api/credentials/:id/proxy/baserow/databases/:databaseId/tables
list-tables.ts

Full Baserow workflow

This example creates a credential, lists databases, and then lists tables for the first database:
baserow-workflow.ts

Types

Credential

CredentialInput