Get Credentials
Fetch the list of stored credentials for a given integration entity. The entity name is automatically uppercased by the SDK.
Function Signature
client.workflow.getCredentials(params: GetCredentialsParams): Promise<BolticSuccessResponse<CredentialsListData> | BolticErrorResponse>
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
entity | string | ✅ | — | Integration name (e.g., "asana", "freshsales"). Automatically uppercased. |
current_page | number | ❌ | 1 | Page number for pagination |
page_size | number | ❌ | 999 | Number of items per page |
Basic Usage
import { createClient } from "@boltic/sdk";
const client = createClient("your-api-key");
const result = await client.workflow.getCredentials({
entity: "asana",
});
if (result.error) {
console.error("Failed:", result.error.message);
} else {
console.log("Credentials:", result.data);
}
With Pagination
const result = await client.workflow.getCredentials({
entity: "freshsales",
current_page: 1,
page_size: 10,
});
if (!result.error) {
console.log("Credentials:", result.data);
}
Return Value
Success Response
{
data: {
// Credentials list data
[key: string]: unknown;
},
message?: string;
}